| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private static final ObjectPool |
| Access | Constructor and Description |
|---|---|
| private | PooledUnsafeDirectByteBuf(ObjectPool.
|
| 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 | |
| private long | |
| 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.
|
| 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.
|
| pack-priv void | init(PoolChunk<ByteBuffer> chunk, ByteBuffer nioBuffer, long handle, int offset, int length, int maxLength, PoolThreadCache cache)
Overrides io. |
| private void | |
| pack-priv void | initUnpooled(PoolChunk<ByteBuffer> chunk, int length)
Overrides io. |
| 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 PooledUnsafeDirectByteBuf | |
| protected ByteBuffer | newInternalNioBuffer(ByteBuffer memory)
Implements abstract io. |
| protected SwappedByteBuf | newSwappedByteBuf()
Overrides io.
Deprecated
as a consequence of
Creates a new SwappedByteBuf being deprecated.
SwappedByteBuf for this ByteBuf instance.
|
| 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.
|
| public ByteBuf | setZero(int index, int
the number of NULs to write to the buffer length)Overrides io. index.
|
| public ByteBuf | writeZero(int
the number of NULs to write to the buffer length)Overrides io. writerIndex and increases the writerIndex by the
specified length.
|
| memoryAddress | back to summary |
|---|---|
| private long memoryAddress | |
| RECYCLER | back to summary |
|---|---|
| private static final ObjectPool<PooledUnsafeDirectByteBuf> RECYCLER | |
| PooledUnsafeDirectByteBuf | back to summary |
|---|---|
| private PooledUnsafeDirectByteBuf(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.
| |
| addr | back to summary |
|---|---|
| private long addr(int index) | |
| 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
| |
| 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
| |
| init | back to summary |
|---|---|
| pack-priv void init(PoolChunk<ByteBuffer> chunk, ByteBuffer nioBuffer, long handle, int offset, int length, int maxLength, PoolThreadCache cache) Overrides io.
| |
| initMemoryAddress | back to summary |
|---|---|
| private void initMemoryAddress() | |
| initUnpooled | back to summary |
|---|---|
| pack-priv void initUnpooled(PoolChunk<ByteBuffer> chunk, int length) Overrides io.
| |
| 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 PooledUnsafeDirectByteBuf newInstance(int maxCapacity) | |
| newInternalNioBuffer | back to summary |
|---|---|
| protected ByteBuffer newInternalNioBuffer(ByteBuffer memory) Implements abstract io.
| |
| newSwappedByteBuf | back to summary |
|---|---|
| protected SwappedByteBuf newSwappedByteBuf() Overrides io. Doc from io. Deprecated as a consequence of Creates a new
| |
| 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
| |
| setZero | back to summary |
|---|---|
| public ByteBuf setZero(int index, int length) Overrides io. Doc from io. Fills this buffer with NUL (0x00) starting at the specified
absolute
| |
| writeZero | back to summary |
|---|---|
| public ByteBuf writeZero(int length) Overrides io. Doc from io. Fills this buffer with NUL (0x00) starting at the current
| |