| Modifier and Type | Field and Description |
|---|---|
| private static final ObjectPool |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected byte | |
| protected int | |
| protected int | |
| protected long | |
| protected long | |
| protected short | |
| protected short | |
| protected int | _getUnsignedMedium(int index)
Implements abstract io. |
| protected int | _getUnsignedMediumLE(int index)
Implements abstract io. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public final byte[] | array()
Implements abstract io. |
| public final int | arrayOffset()
Implements abstract io. |
| public final ByteBuf | copy(int index, int length)
Implements abstract io. |
| pack-priv final ByteBuffer | duplicateInternalNioBuffer(int index, int length)
Overrides io. |
| public final ByteBuf | getBytes(int index, ByteBuf dst, int
the first index of the destination dstIndex, int the number of bytes to transfer length)Implements abstract io. index.
|
| public final ByteBuf | getBytes(int index, byte[] dst, int
the first index of the destination dstIndex, int the number of bytes to transfer length)Implements abstract io. index.
|
| public final ByteBuf | getBytes(int index, ByteBuffer dst)
Implements abstract io. index until the destination's position
reaches its limit.
|
| public final ByteBuf | getBytes(int index, OutputStream out, int
the number of bytes to transfer length)Implements abstract io. index.
|
| public final boolean | hasArray()
Implements abstract io. true if and only if this buffer has a backing byte array.
|
| public final boolean | hasMemoryAddress()
Implements abstract io. true if and only if this buffer has a reference to the low-level memory address that points
to the backing data.
|
| public final boolean | isDirect()
Implements abstract io. true if and only if this buffer is backed by an
NIO direct buffer.
|
| public final long | memoryAddress()
Implements abstract io. |
| pack-priv static PooledHeapByteBuf | |
| protected final ByteBuffer | newInternalNioBuffer(byte[] memory)
Implements abstract io. |
| public final ByteBuf | setBytes(int index, ByteBuf src, int
the first index of the source srcIndex, int the number of bytes to transfer length)Implements abstract io. index.
|
| public final ByteBuf | setBytes(int index, byte[] src, int srcIndex, int length)
Implements abstract io. index.
|
| public final ByteBuf | setBytes(int index, ByteBuffer src)
Implements abstract io. index until the source buffer's position
reaches its limit.
|
| public final int | setBytes(int index, InputStream in, int
the number of bytes to transfer length)Implements abstract io. index.
|
| RECYCLER | back to summary |
|---|---|
| private static final ObjectPool<PooledHeapByteBuf> RECYCLER | |
| PooledHeapByteBuf | back to summary |
|---|---|
| pack-priv PooledHeapByteBuf(ObjectPool. | |
| _getByte | back to summary |
|---|---|
| protected byte _getByte(int index) Implements abstract io.
| |
| _getInt | back to summary |
|---|---|
| protected int _getInt(int index) Implements abstract io.
| |
| _getIntLE | back to summary |
|---|---|
| protected int _getIntLE(int index) Implements abstract io.
| |
| _getLong | back to summary |
|---|---|
| protected long _getLong(int index) Implements abstract io.
| |
| _getLongLE | back to summary |
|---|---|
| protected long _getLongLE(int index) Implements abstract io.
| |
| _getShort | back to summary |
|---|---|
| protected short _getShort(int index) Implements abstract io.
| |
| _getShortLE | back to summary |
|---|---|
| protected short _getShortLE(int index) Implements abstract io.
| |
| _getUnsignedMedium | back to summary |
|---|---|
| protected int _getUnsignedMedium(int index) Implements abstract io.
| |
| _getUnsignedMediumLE | back to summary |
|---|---|
| protected int _getUnsignedMediumLE(int index) Implements abstract io.
| |
| _setByte | back to summary |
|---|---|
| protected void _setByte(int index, int value) Implements abstract io.
| |
| _setInt | back to summary |
|---|---|
| protected void _setInt(int index, int value) Implements abstract io.
| |
| _setIntLE | back to summary |
|---|---|
| protected void _setIntLE(int index, int value) Implements abstract io.
| |
| _setLong | back to summary |
|---|---|
| protected void _setLong(int index, long value) Implements abstract io.
| |
| _setLongLE | back to summary |
|---|---|
| protected void _setLongLE(int index, long value) Implements abstract io.
| |
| _setMedium | back to summary |
|---|---|
| protected void _setMedium(int index, int value) Implements abstract io.
| |
| _setMediumLE | back to summary |
|---|---|
| protected void _setMediumLE(int index, int value) Implements abstract io.
| |
| _setShort | back to summary |
|---|---|
| protected void _setShort(int index, int value) Implements abstract io.
| |
| _setShortLE | back to summary |
|---|---|
| protected void _setShortLE(int index, int value) Implements abstract io.
| |
| array | back to summary |
|---|---|
| public final byte[] array() Implements abstract io. Doc from io. Returns the backing byte array of this buffer.
| |
| arrayOffset | back to summary |
|---|---|
| public final int arrayOffset() Implements abstract io. Doc from io. Returns the offset of the first byte within the backing byte array of this buffer.
| |
| copy | back to summary |
|---|---|
| public final ByteBuf copy(int index, int length) Implements abstract io. Doc from io. Returns a copy of this buffer's sub-region. Modifying the content of
the returned buffer or this buffer does not affect each other at all.
This method does not modify
| |
| duplicateInternalNioBuffer | back to summary |
|---|---|
| pack-priv final ByteBuffer duplicateInternalNioBuffer(int index, int length) Overrides io.
| |
| getBytes | back to summary |
|---|---|
| public final ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length) Implements abstract io. Doc from io. Transfers this buffer's data to the specified destination starting at
the specified absolute
| |
| getBytes | back to summary |
|---|---|
| public final ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length) Implements abstract io. Doc from io. Transfers this buffer's data to the specified destination starting at
the specified absolute
| |
| getBytes | back to summary |
|---|---|
| public final ByteBuf getBytes(int index, ByteBuffer dst) Implements abstract io. Doc from io. Transfers this buffer's data to the specified destination starting at
the specified absolute
| |
| getBytes | back to summary |
|---|---|
| public final ByteBuf getBytes(int index, OutputStream out, int length) throws IOException Implements abstract io. Doc from io. Transfers this buffer's data to the specified stream starting at the
specified absolute
| |
| hasArray | back to summary |
|---|---|
| public final boolean hasArray() Implements abstract io. Doc from io. Returns
| |
| hasMemoryAddress | back to summary |
|---|---|
| public final boolean hasMemoryAddress() Implements abstract io. Doc from io. Returns
| |
| isDirect | back to summary |
|---|---|
| public final boolean isDirect() Implements abstract io. Doc from io. Returns
| |
| memoryAddress | back to summary |
|---|---|
| public final long memoryAddress() Implements abstract io. Doc from io. Returns the low-level memory address that point to the first byte of ths backing data.
| |
| newInstance | back to summary |
|---|---|
| pack-priv static PooledHeapByteBuf newInstance(int maxCapacity) | |
| newInternalNioBuffer | back to summary |
|---|---|
| protected final ByteBuffer newInternalNioBuffer(byte[] memory) Implements abstract io.
| |
| setBytes | back to summary |
|---|---|
| public final ByteBuf setBytes(int index, ByteBuf src, int srcIndex, int length) Implements abstract io. Doc from io. Transfers the specified source buffer's data to this buffer starting at
the specified absolute
| |
| setBytes | back to summary |
|---|---|
| public final ByteBuf setBytes(int index, byte[] src, int srcIndex, int length) Implements abstract io. Doc from io. Transfers the specified source array's data to this buffer starting at
the specified absolute
| |
| setBytes | back to summary |
|---|---|
| public final ByteBuf setBytes(int index, ByteBuffer src) Implements abstract io. Doc from io. Transfers the specified source buffer's data to this buffer starting at
the specified absolute
| |
| setBytes | back to summary |
|---|---|
| public final int setBytes(int index, InputStream in, int length) throws IOException Implements abstract io. Doc from io. Transfers the content of the specified source stream to this buffer
starting at the specified absolute
| |