| Modifier and Type | Field and Description |
|---|---|
| private static final ObjectPool |
| Access | Constructor and Description |
|---|---|
| private |
| 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 byte[] | array()
Implements abstract io. |
| public int | arrayOffset()
Implements abstract io. |
| public ByteBuf | copy(int index, int length)
Implements abstract io. |
| public 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 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 ByteBuf | getBytes(int index, ByteBuffer dst)
Implements abstract io. index until the destination's position
reaches its limit.
|
| public ByteBuf | getBytes(int index, OutputStream out, int
the number of bytes to transfer length)Implements abstract io. index.
|
| private void | |
| public boolean | hasArray()
Implements abstract io. true if and only if this buffer has a backing byte array.
|
| public 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 boolean | isDirect()
Implements abstract io. true if and only if this buffer is backed by an
NIO direct buffer.
|
| public long | memoryAddress()
Implements abstract io. |
| pack-priv static PooledDirectByteBuf | |
| protected ByteBuffer | newInternalNioBuffer(ByteBuffer memory)
Implements abstract io. |
| public ByteBuf | readBytes(byte[] dst, int
the first index of the destination dstIndex, int the number of bytes to transfer length)Overrides io. readerIndex and increases the readerIndex
by the number of the transferred bytes (= length).
|
| public ByteBuf | readBytes(ByteBuffer dst)
Overrides io. readerIndex until the destination's position
reaches its limit, and increases the readerIndex by the
number of the transferred bytes.
|
| public ByteBuf | readBytes(OutputStream out, int
the number of bytes to transfer length)Overrides io. readerIndex.
|
| public 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 ByteBuf | setBytes(int index, byte[] src, int srcIndex, int length)
Implements abstract io. index.
|
| public ByteBuf | setBytes(int index, ByteBuffer src)
Implements abstract io. index until the source buffer's position
reaches its limit.
|
| public 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<PooledDirectByteBuf> RECYCLER | |
| PooledDirectByteBuf | back to summary |
|---|---|
| private PooledDirectByteBuf(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 byte[] array() Implements abstract io. Doc from io. Returns the backing byte array of this buffer.
| |
| arrayOffset | back to summary |
|---|---|
| public 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 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
| |
| getBytes | back to summary |
|---|---|
| public 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 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 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 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
| |
| getBytes | back to summary |
|---|---|
| private void getBytes(int index, OutputStream out, int length, boolean internal) throws IOException | |
| hasArray | back to summary |
|---|---|
| public boolean hasArray() Implements abstract io. Doc from io. Returns
| |
| hasMemoryAddress | back to summary |
|---|---|
| public boolean hasMemoryAddress() Implements abstract io. Doc from io. Returns
| |
| isDirect | back to summary |
|---|---|
| public boolean isDirect() Implements abstract io. Doc from io. Returns
| |
| memoryAddress | back to summary |
|---|---|
| public 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 PooledDirectByteBuf newInstance(int maxCapacity) | |
| newInternalNioBuffer | back to summary |
|---|---|
| protected ByteBuffer newInternalNioBuffer(ByteBuffer memory) Implements abstract io.
| |
| readBytes | back to summary |
|---|---|
| public ByteBuf readBytes(byte[] dst, int dstIndex, int length) Overrides io. Doc from io. Transfers this buffer's data to the specified destination starting at
the current
| |
| readBytes | back to summary |
|---|---|
| public ByteBuf readBytes(ByteBuffer dst) Overrides io. Doc from io. Transfers this buffer's data to the specified destination starting at
the current
| |
| readBytes | back to summary |
|---|---|
| public ByteBuf readBytes(OutputStream out, int length) throws IOException Overrides io. Doc from io. Transfers this buffer's data to the specified stream starting at the
current
| |
| setBytes | back to summary |
|---|---|
| public 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 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 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 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
| |