| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final InternalLogger | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | AdvancedLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leak)
|
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | asReadOnly()
Overrides io. |
| public int | bytesBefore(byte value)
Overrides io. value in this
buffer.
|
| public int | bytesBefore(int length, byte value)
Overrides io. value in this
buffer.
|
| public int | bytesBefore(int index, int length, byte value)
Overrides io. value in this
buffer.
|
| public ByteBuf | capacity(int newCapacity)
Overrides io. |
| public ByteBuf | copy()
Overrides io. |
| public ByteBuf | copy(int index, int length)
Overrides io. |
| public ByteBuf | discardReadBytes()
Overrides io. readerIndex.
|
| public ByteBuf | discardSomeReadBytes()
Overrides io. ByteBuf#discardReadBytes() except that this method might discard
some, all, or none of read bytes depending on its internal implementation to reduce
overall memory bandwidth consumption at the cost of potentially additional memory
consumption.
|
| public ByteBuf | duplicate()
Returns a buffer which shares the whole region of this buffer.
|
| public ByteBuf | ensureWritable(int
the expected minimum number of writable bytes minWritableBytes)Overrides io. capacity() to make sure the number of
writable bytes is equal to or greater than the
specified value.
|
| public int | ensureWritable(int
the expected minimum number of writable bytes minWritableBytes, boolean When force)writerIndex() + minWritableBytes > maxCapacity():
Overrides io. capacity() to make sure the number of
writable bytes is equal to or greater than the
specified value.
|
| public int | forEachByte(ByteProcessor processor)
Overrides io. processor in ascending order.
|
| public int | forEachByte(int index, int length, ByteProcessor processor)
Overrides io. processor in ascending order.
|
| public int | forEachByteDesc(ByteProcessor processor)
Overrides io. processor in descending order.
|
| public int | forEachByteDesc(int index, int length, ByteProcessor processor)
Overrides io. processor in descending order.
|
| public boolean | getBoolean(int index)
Overrides io. |
| public byte | getByte(int index)
Overrides io. index in this buffer.
|
| public ByteBuf | getBytes(int index, ByteBuf dst)
Overrides io. index until the destination becomes
non-writable.
|
| public ByteBuf | getBytes(int index, ByteBuf dst, int
the number of bytes to transfer length)Overrides io. index.
|
| public ByteBuf | getBytes(int index, ByteBuf dst, int
the first index of the destination dstIndex, int the number of bytes to transfer length)Overrides io. index.
|
| public ByteBuf | getBytes(int index, byte[] dst)
Overrides 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)Overrides io. index.
|
| public ByteBuf | getBytes(int index, ByteBuffer dst)
Overrides 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)Overrides io. index.
|
| public int | getBytes(int index, GatheringByteChannel out, int
the maximum number of bytes to transfer length)Overrides io. index.
|
| public int | getBytes(int index, FileChannel out, long
the file position at which the transfer is to begin position, int the maximum number of bytes to transfer length)Overrides io. index
to the specified channel starting at the given file position.
|
| public char | getChar(int index)
Overrides io. index in this buffer.
|
| public CharSequence | getCharSequence(int index, int
the length to read length, Charset that should be used charset)Overrides io. CharSequence with the given length at the given index.
|
| public double | getDouble(int index)
Overrides io. index in this buffer.
|
| public float | getFloat(int index)
Overrides io. index in this buffer.
|
| public int | getInt(int index)
Overrides io. index in
this buffer.
|
| public int | getIntLE(int index)
Overrides io. index in
this buffer with Little Endian Byte Order.
|
| public long | getLong(int index)
Overrides io. index in
this buffer.
|
| public long | getLongLE(int index)
Overrides io. index in
this buffer in Little Endian Byte Order.
|
| public int | getMedium(int index)
Overrides io. index in
this buffer.
|
| public int | getMediumLE(int index)
Overrides io. index in
this buffer in the Little Endian Byte Order.
|
| public short | getShort(int index)
Overrides io. index in
this buffer.
|
| public short | getShortLE(int index)
Overrides io. index in
this buffer in Little Endian Byte Order.
|
| public short | getUnsignedByte(int index)
Overrides io. index in this
buffer.
|
| public long | getUnsignedInt(int index)
Overrides io. index
in this buffer.
|
| public long | getUnsignedIntLE(int index)
Overrides io. index
in this buffer in Little Endian Byte Order.
|
| public int | getUnsignedMedium(int index)
Overrides io. index in this buffer.
|
| public int | getUnsignedMediumLE(int index)
Overrides io. index in this buffer in Little Endian Byte Order.
|
| public int | getUnsignedShort(int index)
Overrides io. index in this buffer.
|
| public int | getUnsignedShortLE(int index)
Overrides io. index in this buffer in Little Endian Byte Order.
|
| public int | indexOf(int fromIndex, int toIndex, byte value)
Overrides io. value in this
buffer.
|
| public ByteBuffer | internalNioBuffer(int index, int length)
Internal use only: Exposes the internal NIO buffer.
|
| protected AdvancedLeakAwareByteBuf | newLeakAwareByteBuf(ByteBuf buf, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
Overrides io. |
| public ByteBuffer | nioBuffer()
Overrides io. ByteBuffer.
|
| public ByteBuffer | nioBuffer(int index, int length)
Overrides io. ByteBuffer.
|
| public int | nioBufferCount()
Overrides io. ByteBuffers that consist this buffer.
|
| public ByteBuffer[] | nioBuffers()
Overrides io. ByteBuffer's.
|
| public ByteBuffer[] | nioBuffers(int index, int length)
Overrides io. ByteBuffer's for the specified index and length
The returned buffer either share or contains the copied content of this buffer, while changing
the position and limit of the returned NIO buffer does not affect the indexes and marks of this buffer.
|
| public ByteBuf | order(ByteOrder endianness)
Overrides io. endianness which shares the whole region,
indexes, and marks of this buffer.
|
| public boolean | readBoolean()
Overrides io. readerIndex and increases
the readerIndex by 1 in this buffer.
|
| public byte | readByte()
Overrides io. readerIndex and increases
the readerIndex by 1 in this buffer.
|
| public ByteBuf | readBytes(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(ByteBuf dst)
Overrides io. readerIndex until the destination becomes
non-writable, and increases the readerIndex by the number of the
transferred bytes.
|
| public ByteBuf | readBytes(ByteBuf dst, int length)
Overrides io. readerIndex and increases the readerIndex
by the number of the transferred bytes (= length).
|
| public ByteBuf | readBytes(ByteBuf 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(byte[] dst)
Overrides io. readerIndex and increases the readerIndex
by the number of the transferred bytes (= dst.length).
|
| 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 int | readBytes(GatheringByteChannel out, int
the maximum number of bytes to transfer length)Overrides io. readerIndex.
|
| public int | readBytes(FileChannel out, long
the file position at which the transfer is to begin position, int the maximum number of bytes to transfer length)Overrides io. readerIndex
to the specified channel starting at the given file position.
|
| public char | readChar()
Overrides io. readerIndex
and increases the readerIndex by 2 in this buffer.
|
| public CharSequence | readCharSequence(int
the length to read length, Charset that should be used charset)Overrides io. CharSequence with the given length at the current readerIndex
and increases the readerIndex by the given length.
|
| public double | readDouble()
Overrides io. readerIndex
and increases the readerIndex by 8 in this buffer.
|
| public float | readFloat()
Overrides io. readerIndex
and increases the readerIndex by 4 in this buffer.
|
| public int | readInt()
Overrides io. readerIndex
and increases the readerIndex by 4 in this buffer.
|
| public int | readIntLE()
Overrides io. readerIndex
in the Little Endian Byte Order and increases the readerIndex
by 4 in this buffer.
|
| public long | readLong()
Overrides io. readerIndex
and increases the readerIndex by 8 in this buffer.
|
| public long | readLongLE()
Overrides io. readerIndex
in the Little Endian Byte Order and increases the readerIndex
by 8 in this buffer.
|
| public int | readMedium()
Overrides io. readerIndex
and increases the readerIndex by 3 in this buffer.
|
| public int | readMediumLE()
Overrides io. readerIndex
in the Little Endian Byte Order and increases the
readerIndex by 3 in this buffer.
|
| public ByteBuf | readRetainedSlice(int
the size of the new slice length)Overrides io. readerIndex and increases the readerIndex by the size
of the new slice (= length).
|
| public short | readShort()
Overrides io. readerIndex
and increases the readerIndex by 2 in this buffer.
|
| public short | readShortLE()
Overrides io. readerIndex
in the Little Endian Byte Order and increases the readerIndex
by 2 in this buffer.
|
| public ByteBuf | readSlice(int
the size of the new slice length)Overrides io. readerIndex and increases the readerIndex by the size
of the new slice (= length).
|
| public short | readUnsignedByte()
Overrides io. readerIndex and increases
the readerIndex by 1 in this buffer.
|
| public long | readUnsignedInt()
Overrides io. readerIndex
and increases the readerIndex by 4 in this buffer.
|
| public long | readUnsignedIntLE()
Overrides io. readerIndex
in the Little Endian Byte Order and increases the readerIndex
by 4 in this buffer.
|
| public int | readUnsignedMedium()
Overrides io. readerIndex
and increases the readerIndex by 3 in this buffer.
|
| public int | readUnsignedMediumLE()
Overrides io. readerIndex
in the Little Endian Byte Order and increases the readerIndex
by 3 in this buffer.
|
| public int | readUnsignedShort()
Overrides io. readerIndex
and increases the readerIndex by 2 in this buffer.
|
| public int | readUnsignedShortLE()
Overrides io. readerIndex
in the Little Endian Byte Order and increases the readerIndex
by 2 in this buffer.
|
| pack-priv static void | |
| public boolean | release()
Overrides io. Implements io. 1 and deallocates this object if the reference count reaches at
0.
|
| public boolean | release(int decrement)
Overrides io. Implements io. decrement and deallocates this object if the reference
count reaches at 0.
|
| public ByteBuf | retain()
Overrides io. Implements io. 1.
|
| public ByteBuf | retain(int increment)
Overrides io. Implements io. increment.
|
| public ByteBuf | retainedDuplicate()
Overrides io. |
| public ByteBuf | retainedSlice()
Overrides io. |
| public ByteBuf | retainedSlice(int index, int length)
Overrides io. |
| public ByteBuf | setBoolean(int index, boolean value)
Overrides io. index in this
buffer.
|
| public ByteBuf | setByte(int index, int value)
Overrides io. index in this
buffer.
|
| public ByteBuf | setBytes(int index, ByteBuf src)
Overrides io. index until the source buffer becomes
unreadable.
|
| public ByteBuf | setBytes(int index, ByteBuf src, int
the number of bytes to transfer length)Overrides io. index.
|
| public ByteBuf | setBytes(int index, ByteBuf src, int
the first index of the source srcIndex, int the number of bytes to transfer length)Overrides io. index.
|
| public ByteBuf | setBytes(int index, byte[] src)
Overrides io. index.
|
| public ByteBuf | setBytes(int index, byte[] src, int srcIndex, int length)
Overrides io. index.
|
| public ByteBuf | setBytes(int index, ByteBuffer src)
Overrides 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)Overrides io. index.
|
| public int | setBytes(int index, ScatteringByteChannel in, int
the maximum number of bytes to transfer length)Overrides io. index.
|
| public int | setBytes(int index, FileChannel in, long
the file position at which the transfer is to begin position, int the maximum number of bytes to transfer length)Overrides io. index.
|
| public ByteBuf | setChar(int index, int value)
Overrides io. index in this buffer.
|
| public int | setCharSequence(int
on which the sequence should be written index, CharSequence to write sequence, Charset that should be used. charset)Overrides io. CharSequence at the given index.
|
| public ByteBuf | setDouble(int index, double value)
Overrides io. index in this buffer.
|
| public ByteBuf | setFloat(int index, float value)
Overrides io. index in this buffer.
|
| public ByteBuf | setInt(int index, int value)
Overrides io. index in this buffer.
|
| public ByteBuf | setIntLE(int index, int value)
Overrides io. index in this buffer with Little Endian byte order
.
|
| public ByteBuf | setLong(int index, long value)
Overrides io. index in this buffer.
|
| public ByteBuf | setLongLE(int index, long value)
Overrides io. index in this buffer in Little Endian Byte Order.
|
| public ByteBuf | setMedium(int index, int value)
Overrides io. index in this buffer.
|
| public ByteBuf | setMediumLE(int index, int value)
Overrides io. index in this buffer in the Little Endian Byte Order.
|
| public ByteBuf | setShort(int index, int value)
Overrides io. index in this buffer.
|
| public ByteBuf | setShortLE(int index, int value)
Overrides io. index in this buffer with the Little Endian Byte Order.
|
| public ByteBuf | setZero(int index, int
the number of NULs to write to the buffer length)Overrides io. index.
|
| public ByteBuf | skipBytes(int length)
Overrides io. readerIndex by the specified
length in this buffer.
|
| public ByteBuf | slice()
Overrides io. |
| public ByteBuf | slice(int index, int length)
Overrides io. |
| public String | toString(Charset charset)
Overrides io. |
| public String | toString(int index, int length, Charset charset)
Overrides io. |
| public ByteBuf | touch()
Overrides io. Implements io. |
| public ByteBuf | touch(Object hint)
Overrides io. Implements io. |
| public ByteBuf | writeBoolean(boolean value)
Overrides io. writerIndex
and increases the writerIndex by 1 in this buffer.
|
| public ByteBuf | writeByte(int value)
Overrides io. writerIndex
and increases the writerIndex by 1 in this buffer.
|
| public ByteBuf | writeBytes(ByteBuf src)
Overrides io. writerIndex until the source buffer becomes
unreadable, and increases the writerIndex by the number of
the transferred bytes.
|
| public ByteBuf | writeBytes(ByteBuf src, int
the number of bytes to transfer length)Overrides io. writerIndex and increases the writerIndex
by the number of the transferred bytes (= length).
|
| public ByteBuf | writeBytes(ByteBuf src, int
the first index of the source srcIndex, int the number of bytes to transfer length)Overrides io. writerIndex and increases the writerIndex
by the number of the transferred bytes (= length).
|
| public ByteBuf | writeBytes(byte[] src)
Overrides io. writerIndex and increases the writerIndex
by the number of the transferred bytes (= src.length).
|
| public ByteBuf | writeBytes(byte[] src, int
the first index of the source srcIndex, int the number of bytes to transfer length)Overrides io. writerIndex and increases the writerIndex
by the number of the transferred bytes (= length).
|
| public ByteBuf | writeBytes(ByteBuffer src)
Overrides io. writerIndex until the source buffer's position
reaches its limit, and increases the writerIndex by the
number of the transferred bytes.
|
| public int | writeBytes(InputStream in, int
the number of bytes to transfer length)Overrides io. writerIndex and increases the
writerIndex by the number of the transferred bytes.
|
| public int | writeBytes(ScatteringByteChannel in, int
the maximum number of bytes to transfer length)Overrides io. writerIndex and increases the
writerIndex by the number of the transferred bytes.
|
| public int | writeBytes(FileChannel in, long
the file position at which the transfer is to begin position, int the maximum number of bytes to transfer length)Overrides io. writerIndex and increases the
writerIndex by the number of the transferred bytes.
|
| public ByteBuf | writeChar(int value)
Overrides io. writerIndex and increases the writerIndex by 2
in this buffer.
|
| public int | writeCharSequence(CharSequence
to write sequence, Charset that should be used charset)Overrides io. CharSequence at the current writerIndex and increases
the writerIndex by the written bytes.
|
| public ByteBuf | writeDouble(double value)
Overrides io. writerIndex and increases the writerIndex by 8
in this buffer.
|
| public ByteBuf | writeFloat(float value)
Overrides io. writerIndex and increases the writerIndex by 4
in this buffer.
|
| public ByteBuf | writeInt(int value)
Overrides io. writerIndex
and increases the writerIndex by 4 in this buffer.
|
| public ByteBuf | writeIntLE(int value)
Overrides io. writerIndex
in the Little Endian Byte Order and increases the writerIndex
by 4 in this buffer.
|
| public ByteBuf | writeLong(long value)
Overrides io. writerIndex and increases the writerIndex by 8
in this buffer.
|
| public ByteBuf | writeLongLE(long value)
Overrides io. writerIndex in the Little Endian Byte Order and
increases the writerIndex by 8
in this buffer.
|
| public ByteBuf | writeMedium(int value)
Overrides io. writerIndex and increases the writerIndex by 3
in this buffer.
|
| public ByteBuf | writeMediumLE(int value)
Overrides io. writerIndex in the Little Endian Byte Order and
increases the writerIndex by 3 in this
buffer.
|
| public ByteBuf | writeShort(int value)
Overrides io. writerIndex and increases the writerIndex by 2
in this buffer.
|
| public ByteBuf | writeShortLE(int value)
Overrides io. writerIndex and increases the
writerIndex by 2 in this buffer.
|
| 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.
|