Top Fields Constructors Methods
io.netty.buffer

pack-priv final Class AdvancedLeakAwareCompositeByteBuf

extends SimpleLeakAwareCompositeByteBuf
Class Inheritance
Imports
io.netty.util.ByteProcessor, .ResourceLeakTracker, java.io.IOException, .InputStream, .OutputStream, java.nio.ByteBuffer, .ByteOrder, java.nio.channels.FileChannel, .GatheringByteChannel, .ScatteringByteChannel, java.nio.charset.Charset, java.util.Iterator, .List

Field Summary

Inherited from io.netty.buffer.SimpleLeakAwareCompositeByteBuf:
leak

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public CompositeByteBuf
addComponent(ByteBuf
the ByteBuf to add. ByteBuf#release() ownership is transferred to this CompositeByteBuf.
buffer
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponent.

Add the given ByteBuf.
public CompositeByteBuf
addComponent(int
the index on which the ByteBuf will be added.
cIndex
,
ByteBuf
the ByteBuf to add. ByteBuf#release() ownership is transferred to this CompositeByteBuf.
buffer
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponent.

Add the given ByteBuf on the specific index.
public CompositeByteBuf
addComponent(boolean increaseWriterIndex, ByteBuf
the ByteBuf to add. ByteBuf#release() ownership is transferred to this CompositeByteBuf.
buffer
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponent.

Add the given ByteBuf and increase the writerIndex if increaseWriterIndex is true.
public CompositeByteBuf
addComponent(boolean increaseWriterIndex, int
the index on which the ByteBuf will be added.
cIndex
,
ByteBuf
the ByteBuf to add. ByteBuf#release() ownership is transferred to this CompositeByteBuf.
buffer
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponent.

Add the given ByteBuf on the specific index and increase the writerIndex if increaseWriterIndex is true.
public CompositeByteBuf
addComponents(ByteBuf...
the ByteBufs to add. ByteBuf#release() ownership of all ByteBuf#release() ownership of all ByteBuf objects is transferred to this CompositeByteBuf.
buffers
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponents.

Add the given ByteBufs.
public CompositeByteBuf
addComponents(Iterable<ByteBuf>
the ByteBufs to add. ByteBuf#release() ownership of all ByteBuf#release() ownership of all ByteBuf objects is transferred to this CompositeByteBuf.
buffers
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponents.

Add the given ByteBufs.
public CompositeByteBuf
addComponents(int
the index on which the ByteBuf will be added. ByteBuf#release() ownership of all ByteBuf#release() ownership of all ByteBuf objects is transferred to this CompositeByteBuf.
cIndex
,
ByteBuf...
the ByteBufs to add. ByteBuf#release() ownership of all ByteBuf#release() ownership of all ByteBuf objects is transferred to this CompositeByteBuf.
buffers
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponents.

Add the given ByteBufs on the specific index

Be aware that this method does not increase the writerIndex of the CompositeByteBuf.

public CompositeByteBuf
addComponents(int
the index on which the ByteBuf will be added.
cIndex
,
Iterable<ByteBuf>
the ByteBufs to add. ByteBuf#release() ownership of all ByteBuf#release() ownership of all ByteBuf objects is transferred to this CompositeByteBuf.
buffers
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponents.

Add the given ByteBufs on the specific index Be aware that this method does not increase the writerIndex of the CompositeByteBuf.
public CompositeByteBuf
addComponents(boolean increaseWriterIndex, ByteBuf...
the ByteBufs to add. ByteBuf#release() ownership of all ByteBuf#release() ownership of all ByteBuf objects is transferred to this CompositeByteBuf.
buffers
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponents.

Add the given ByteBufs and increase the writerIndex if increaseWriterIndex is true.
public CompositeByteBuf
addComponents(boolean increaseWriterIndex, Iterable<ByteBuf>
the ByteBufs to add. ByteBuf#release() ownership of all ByteBuf#release() ownership of all ByteBuf objects is transferred to this CompositeByteBuf.
buffers
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addComponents.

Add the given ByteBufs and increase the writerIndex if increaseWriterIndex is true.
public CompositeByteBuf
addFlattenedComponents(boolean increaseWriterIndex, ByteBuf
the ByteBuf to add. ByteBuf#release() ownership is transferred to this CompositeByteBuf.
buffer
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.addFlattenedComponents.

Add the given ByteBuf and increase the writerIndex if increaseWriterIndex is true.
public ByteBuf
asReadOnly()

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.asReadOnly.

Returns a read-only version of this buffer.
public int
bytesBefore(byte value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.bytesBefore.

Locates the first occurrence of the specified value in this buffer.
public int
bytesBefore(int length, byte value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.bytesBefore.

Locates the first occurrence of the specified value in this buffer.
public int
bytesBefore(int index, int length, byte value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.bytesBefore.

Locates the first occurrence of the specified value in this buffer.
public CompositeByteBuf
capacity(int newCapacity)

Overrides io.netty.buffer.WrappedCompositeByteBuf.capacity.

Adjusts the capacity of this buffer.
public CompositeByteBuf
public CompositeByteBuf
consolidate(int
the index on which to start to compose
cIndex
,
int
the number of components to compose
numComponents
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.consolidate.

Consolidate the composed ByteBufs
public ByteBuf
copy()

Overrides io.netty.buffer.WrappedCompositeByteBuf.copy.

Returns a copy of this buffer's readable bytes.
public ByteBuf
copy(int index, int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.copy.

Returns a copy of this buffer's sub-region.
public List<ByteBuf>
decompose(int offset, int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.decompose.

Same with slice(int, int) except that this method returns a list.
public CompositeByteBuf
discardReadBytes()

Overrides io.netty.buffer.WrappedCompositeByteBuf.discardReadBytes.

Discards the bytes between the 0th index and readerIndex.
public CompositeByteBuf
public CompositeByteBuf
discardSomeReadBytes()

Overrides io.netty.buffer.WrappedCompositeByteBuf.discardSomeReadBytes.

Similar to 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()

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.duplicate.

Returns a buffer which shares the whole region of this buffer.
public CompositeByteBuf
ensureWritable(int
the expected minimum number of writable bytes
minWritableBytes
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.ensureWritable.

Expands the buffer 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 writerIndex() + minWritableBytes > maxCapacity():
  • true - the capacity of the buffer is expanded to maxCapacity()
  • false - the capacity of the buffer is unchanged
force
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.ensureWritable.

Expands the buffer 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.netty.buffer.WrappedCompositeByteBuf.forEachByte.

Iterates over the readable bytes of this buffer with the specified processor in ascending order.
public int
forEachByte(int index, int length, ByteProcessor processor)

Overrides io.netty.buffer.WrappedCompositeByteBuf.forEachByte.

Iterates over the specified area of this buffer with the specified processor in ascending order.
public int
forEachByteDesc(ByteProcessor processor)

Overrides io.netty.buffer.WrappedCompositeByteBuf.forEachByteDesc.

Iterates over the readable bytes of this buffer with the specified processor in descending order.
public int
forEachByteDesc(int index, int length, ByteProcessor processor)

Overrides io.netty.buffer.WrappedCompositeByteBuf.forEachByteDesc.

Iterates over the specified area of this buffer with the specified processor in descending order.
public boolean
getBoolean(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBoolean.

Gets a boolean at the specified absolute (@code index) in this buffer.
public byte
getByte(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getByte.

Gets a byte at the specified absolute index in this buffer.
public CompositeByteBuf
getBytes(int index, ByteBuf dst)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination starting at the specified absolute index until the destination becomes non-writable.
public CompositeByteBuf
getBytes(int index, ByteBuf dst, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination starting at the specified absolute index.
public CompositeByteBuf
getBytes(int index, ByteBuf dst, int
the first index of the destination
dstIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination starting at the specified absolute index.
public CompositeByteBuf
getBytes(int index, byte[] dst)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination starting at the specified absolute index.
public CompositeByteBuf
getBytes(int index, byte[] dst, int
the first index of the destination
dstIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination starting at the specified absolute index.
public CompositeByteBuf
getBytes(int index, ByteBuffer dst)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination starting at the specified absolute index until the destination's position reaches its limit.
public CompositeByteBuf
getBytes(int index, OutputStream out, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified stream starting at the specified absolute index.
public int
getBytes(int index, GatheringByteChannel out, int
the maximum number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data to the specified channel starting at the specified absolute 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.netty.buffer.WrappedCompositeByteBuf.getBytes.

Transfers this buffer's data starting at the specified absolute index to the specified channel starting at the given file position.
public char
getChar(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getChar.

Gets a 2-byte UTF-16 character at the specified absolute index in this buffer.
public CharSequence
getCharSequence(int index, int
the length to read
length
,
Charset
that should be used
charset
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getCharSequence.

Gets a CharSequence with the given length at the given index.
public double
getDouble(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getDouble.

Gets a 64-bit floating point number at the specified absolute index in this buffer.
public float
getFloat(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getFloat.

Gets a 32-bit floating point number at the specified absolute index in this buffer.
public int
getInt(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getInt.

Gets a 32-bit integer at the specified absolute index in this buffer.
public int
getIntLE(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getIntLE.

Gets a 32-bit integer at the specified absolute index in this buffer with Little Endian Byte Order.
public long
getLong(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getLong.

Gets a 64-bit long integer at the specified absolute index in this buffer.
public long
getLongLE(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getLongLE.

Gets a 64-bit long integer at the specified absolute index in this buffer in Little Endian Byte Order.
public int
getMedium(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getMedium.

Gets a 24-bit medium integer at the specified absolute index in this buffer.
public int
getMediumLE(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getMediumLE.

Gets a 24-bit medium integer at the specified absolute index in this buffer in the Little Endian Byte Order.
public short
getShort(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getShort.

Gets a 16-bit short integer at the specified absolute index in this buffer.
public short
getShortLE(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getShortLE.

Gets a 16-bit short integer at the specified absolute index in this buffer in Little Endian Byte Order.
public short
getUnsignedByte(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getUnsignedByte.

Gets an unsigned byte at the specified absolute index in this buffer.
public long
getUnsignedInt(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getUnsignedInt.

Gets an unsigned 32-bit integer at the specified absolute index in this buffer.
public long
getUnsignedIntLE(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getUnsignedIntLE.

Gets an unsigned 32-bit integer at the specified absolute index in this buffer in Little Endian Byte Order.
public int
getUnsignedMedium(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getUnsignedMedium.

Gets an unsigned 24-bit medium integer at the specified absolute index in this buffer.
public int
getUnsignedMediumLE(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getUnsignedMediumLE.

Gets an unsigned 24-bit medium integer at the specified absolute index in this buffer in Little Endian Byte Order.
public int
getUnsignedShort(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getUnsignedShort.

Gets an unsigned 16-bit short integer at the specified absolute index in this buffer.
public int
getUnsignedShortLE(int index)

Overrides io.netty.buffer.WrappedCompositeByteBuf.getUnsignedShortLE.

Gets an unsigned 16-bit short integer at the specified absolute index in this buffer in Little Endian Byte Order.
public int
indexOf(int fromIndex, int toIndex, byte value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.indexOf.

Locates the first occurrence of the specified value in this buffer.
public ByteBuffer
internalNioBuffer(int index, int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.internalNioBuffer.

Internal use only: Exposes the internal NIO buffer.
public boolean
isReadOnly()

Overrides io.netty.buffer.WrappedCompositeByteBuf.isReadOnly.

Returns true if and only if this buffer is read-only.
public Iterator<ByteBuf>
iterator()

Overrides io.netty.buffer.WrappedCompositeByteBuf.iterator.

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
protected AdvancedLeakAwareByteBuf
public ByteBuffer
nioBuffer()

Overrides io.netty.buffer.WrappedCompositeByteBuf.nioBuffer.

Exposes this buffer's readable bytes as an NIO ByteBuffer.
public ByteBuffer
nioBuffer(int index, int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.nioBuffer.

Exposes this buffer's sub-region as an NIO ByteBuffer.
public int
nioBufferCount()

Overrides io.netty.buffer.WrappedCompositeByteBuf.nioBufferCount.

Returns the maximum number of NIO ByteBuffers that consist this buffer.
public ByteBuffer[]
nioBuffers()

Overrides io.netty.buffer.WrappedCompositeByteBuf.nioBuffers.

Exposes this buffer's readable bytes as an NIO ByteBuffer's.
public ByteBuffer[]
nioBuffers(int index, int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.nioBuffers.

Exposes this buffer's bytes as an NIO 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.netty.buffer.SimpleLeakAwareCompositeByteBuf.order.

Returns a buffer with the specified endianness which shares the whole region, indexes, and marks of this buffer.
public boolean
readBoolean()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBoolean.

Gets a boolean at the current readerIndex and increases the readerIndex by 1 in this buffer.
public byte
readByte()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readByte.

Gets a byte at the current readerIndex and increases the readerIndex by 1 in this buffer.
public ByteBuf
readBytes(int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to a newly created buffer starting at the current readerIndex and increases the readerIndex by the number of the transferred bytes (= length).
public CompositeByteBuf
readBytes(ByteBuf dst)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified destination starting at the current readerIndex until the destination becomes non-writable, and increases the readerIndex by the number of the transferred bytes.
public CompositeByteBuf
readBytes(ByteBuf dst, int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified destination starting at the current readerIndex and increases the readerIndex by the number of the transferred bytes (= length).
public CompositeByteBuf
readBytes(ByteBuf dst, int
the first index of the destination
dstIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified destination starting at the current readerIndex and increases the readerIndex by the number of the transferred bytes (= length).
public CompositeByteBuf
readBytes(byte[] dst)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified destination starting at the current readerIndex and increases the readerIndex by the number of the transferred bytes (= dst.length).
public CompositeByteBuf
readBytes(byte[] dst, int
the first index of the destination
dstIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified destination starting at the current readerIndex and increases the readerIndex by the number of the transferred bytes (= length).
public CompositeByteBuf
readBytes(ByteBuffer dst)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified destination starting at the current readerIndex until the destination's position reaches its limit, and increases the readerIndex by the number of the transferred bytes.
public CompositeByteBuf
readBytes(OutputStream out, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified stream starting at the current readerIndex.
public int
readBytes(GatheringByteChannel out, int
the maximum number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data to the specified stream starting at the current 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.netty.buffer.WrappedCompositeByteBuf.readBytes.

Transfers this buffer's data starting at the current readerIndex to the specified channel starting at the given file position.
public char
readChar()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readChar.

Gets a 2-byte UTF-16 character at the current 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.netty.buffer.WrappedCompositeByteBuf.readCharSequence.

Gets a CharSequence with the given length at the current readerIndex and increases the readerIndex by the given length.
public double
readDouble()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readDouble.

Gets a 64-bit floating point number at the current readerIndex and increases the readerIndex by 8 in this buffer.
public float
readFloat()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readFloat.

Gets a 32-bit floating point number at the current readerIndex and increases the readerIndex by 4 in this buffer.
public int
readInt()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readInt.

Gets a 32-bit integer at the current readerIndex and increases the readerIndex by 4 in this buffer.
public int
readIntLE()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readIntLE.

Gets a 32-bit integer at the current readerIndex in the Little Endian Byte Order and increases the readerIndex by 4 in this buffer.
public long
readLong()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readLong.

Gets a 64-bit integer at the current readerIndex and increases the readerIndex by 8 in this buffer.
public long
readLongLE()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readLongLE.

Gets a 64-bit integer at the current readerIndex in the Little Endian Byte Order and increases the readerIndex by 8 in this buffer.
public int
readMedium()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readMedium.

Gets a 24-bit medium integer at the current readerIndex and increases the readerIndex by 3 in this buffer.
public int
readMediumLE()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readMediumLE.

Gets a 24-bit medium integer at the current 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.netty.buffer.SimpleLeakAwareCompositeByteBuf.readRetainedSlice.

Returns a new retained slice of this buffer's sub-region starting at the current readerIndex and increases the readerIndex by the size of the new slice (= length).
public short
readShort()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readShort.

Gets a 16-bit short integer at the current readerIndex and increases the readerIndex by 2 in this buffer.
public short
readShortLE()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readShortLE.

Gets a 16-bit short integer at the current 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.netty.buffer.SimpleLeakAwareCompositeByteBuf.readSlice.

Returns a new slice of this buffer's sub-region starting at the current readerIndex and increases the readerIndex by the size of the new slice (= length).
public short
readUnsignedByte()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readUnsignedByte.

Gets an unsigned byte at the current readerIndex and increases the readerIndex by 1 in this buffer.
public long
readUnsignedInt()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readUnsignedInt.

Gets an unsigned 32-bit integer at the current readerIndex and increases the readerIndex by 4 in this buffer.
public long
readUnsignedIntLE()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readUnsignedIntLE.

Gets an unsigned 32-bit integer at the current readerIndex in the Little Endian Byte Order and increases the readerIndex by 4 in this buffer.
public int
readUnsignedMedium()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readUnsignedMedium.

Gets an unsigned 24-bit medium integer at the current readerIndex and increases the readerIndex by 3 in this buffer.
public int
readUnsignedMediumLE()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readUnsignedMediumLE.

Gets an unsigned 24-bit medium integer at the current readerIndex in the Little Endian Byte Order and increases the readerIndex by 3 in this buffer.
public int
readUnsignedShort()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readUnsignedShort.

Gets an unsigned 16-bit short integer at the current readerIndex and increases the readerIndex by 2 in this buffer.
public int
readUnsignedShortLE()

Overrides io.netty.buffer.WrappedCompositeByteBuf.readUnsignedShortLE.

Gets an unsigned 16-bit short integer at the current readerIndex in the Little Endian Byte Order and increases the readerIndex by 2 in this buffer.
public boolean
release()

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.release.

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
public boolean
release(int decrement)

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.release.

Implements io.netty.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
public CompositeByteBuf
removeComponent(int
the index on from which the ByteBuf will be remove
cIndex
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.removeComponent.

Remove the ByteBuf from the given index.
public CompositeByteBuf
removeComponents(int
the index on which the ByteBufs will be started to removed
cIndex
,
int
the number of components to remove
numComponents
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.removeComponents.

Remove the number of ByteBufs starting from the given index.
public CompositeByteBuf
retain()

Overrides io.netty.buffer.WrappedCompositeByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.
public CompositeByteBuf
retain(int increment)

Overrides io.netty.buffer.WrappedCompositeByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.
public ByteBuf
retainedDuplicate()

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.retainedDuplicate.

Returns a retained buffer which shares the whole region of this buffer.
public ByteBuf
retainedSlice()

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.retainedSlice.

Returns a retained slice of this buffer's readable bytes.
public ByteBuf
retainedSlice(int index, int length)

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.retainedSlice.

Returns a retained slice of this buffer's sub-region.
public CompositeByteBuf
setBoolean(int index, boolean value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBoolean.

Sets the specified boolean at the specified absolute index in this buffer.
public CompositeByteBuf
setByte(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setByte.

Sets the specified byte at the specified absolute index in this buffer.
public CompositeByteBuf
setBytes(int index, ByteBuf src)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the specified source buffer's data to this buffer starting at the specified absolute index until the source buffer becomes unreadable.
public CompositeByteBuf
setBytes(int index, ByteBuf src, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the specified source buffer's data to this buffer starting at the specified absolute index.
public CompositeByteBuf
setBytes(int index, ByteBuf src, int
the first index of the source
srcIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the specified source buffer's data to this buffer starting at the specified absolute index.
public CompositeByteBuf
setBytes(int index, byte[] src)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the specified source array's data to this buffer starting at the specified absolute index.
public CompositeByteBuf
setBytes(int index, byte[] src, int srcIndex, int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the specified source array's data to this buffer starting at the specified absolute index.
public CompositeByteBuf
setBytes(int index, ByteBuffer src)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the specified source buffer's data to this buffer starting at the specified absolute 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.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the content of the specified source stream to this buffer starting at the specified absolute index.
public int
setBytes(int index, ScatteringByteChannel in, int
the maximum number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the content of the specified source channel to this buffer starting at the specified absolute 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.netty.buffer.WrappedCompositeByteBuf.setBytes.

Transfers the content of the specified source channel starting at the given file position to this buffer starting at the specified absolute index.
public CompositeByteBuf
setChar(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setChar.

Sets the specified 2-byte UTF-16 character at the specified absolute 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.netty.buffer.WrappedCompositeByteBuf.setCharSequence.

Writes the specified CharSequence at the given index.
public CompositeByteBuf
setDouble(int index, double value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setDouble.

Sets the specified 64-bit floating-point number at the specified absolute index in this buffer.
public CompositeByteBuf
setFloat(int index, float value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setFloat.

Sets the specified 32-bit floating-point number at the specified absolute index in this buffer.
public CompositeByteBuf
setInt(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setInt.

Sets the specified 32-bit integer at the specified absolute index in this buffer.
public ByteBuf
setIntLE(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setIntLE.

Sets the specified 32-bit integer at the specified absolute index in this buffer with Little Endian byte order .
public CompositeByteBuf
setLong(int index, long value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setLong.

Sets the specified 64-bit long integer at the specified absolute index in this buffer.
public ByteBuf
setLongLE(int index, long value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setLongLE.

Sets the specified 64-bit long integer at the specified absolute index in this buffer in Little Endian Byte Order.
public CompositeByteBuf
setMedium(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setMedium.

Sets the specified 24-bit medium integer at the specified absolute index in this buffer.
public ByteBuf
setMediumLE(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setMediumLE.

Sets the specified 24-bit medium integer at the specified absolute index in this buffer in the Little Endian Byte Order.
public CompositeByteBuf
setShort(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setShort.

Sets the specified 16-bit short integer at the specified absolute index in this buffer.
public ByteBuf
setShortLE(int index, int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setShortLE.

Sets the specified 16-bit short integer at the specified absolute index in this buffer with the Little Endian Byte Order.
public CompositeByteBuf
setZero(int index, int
the number of NULs to write to the buffer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.setZero.

Fills this buffer with NUL (0x00) starting at the specified absolute index.
public CompositeByteBuf
skipBytes(int length)

Overrides io.netty.buffer.WrappedCompositeByteBuf.skipBytes.

Increases the current readerIndex by the specified length in this buffer.
public ByteBuf
slice()

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.slice.

Returns a slice of this buffer's readable bytes.
public ByteBuf
slice(int index, int length)

Overrides io.netty.buffer.SimpleLeakAwareCompositeByteBuf.slice.

Returns a slice of this buffer's sub-region.
public String
toString(Charset charset)

Overrides io.netty.buffer.WrappedCompositeByteBuf.toString.

Decodes this buffer's readable bytes into a string with the specified character set name.
public String
toString(int index, int length, Charset charset)

Overrides io.netty.buffer.WrappedCompositeByteBuf.toString.

Decodes this buffer's sub-region into a string with the specified character set.
public CompositeByteBuf
touch()

Overrides io.netty.buffer.WrappedCompositeByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes.
public CompositeByteBuf
touch(Object hint)

Overrides io.netty.buffer.WrappedCompositeByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
public CompositeByteBuf
writeBoolean(boolean value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeBoolean.

Sets the specified boolean at the current writerIndex and increases the writerIndex by 1 in this buffer.
public CompositeByteBuf
writeByte(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeByte.

Sets the specified byte at the current writerIndex and increases the writerIndex by 1 in this buffer.
public CompositeByteBuf
writeBytes(ByteBuf src)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the specified source buffer's data to this buffer starting at the current writerIndex until the source buffer becomes unreadable, and increases the writerIndex by the number of the transferred bytes.
public CompositeByteBuf
writeBytes(ByteBuf src, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the specified source buffer's data to this buffer starting at the current writerIndex and increases the writerIndex by the number of the transferred bytes (= length).
public CompositeByteBuf
writeBytes(ByteBuf src, int
the first index of the source
srcIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the specified source buffer's data to this buffer starting at the current writerIndex and increases the writerIndex by the number of the transferred bytes (= length).
public CompositeByteBuf
writeBytes(byte[] src)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the specified source array's data to this buffer starting at the current writerIndex and increases the writerIndex by the number of the transferred bytes (= src.length).
public CompositeByteBuf
writeBytes(byte[] src, int
the first index of the source
srcIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the specified source array's data to this buffer starting at the current writerIndex and increases the writerIndex by the number of the transferred bytes (= length).
public CompositeByteBuf
writeBytes(ByteBuffer src)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the specified source buffer's data to this buffer starting at the current 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.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the content of the specified stream to this buffer starting at the current 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.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the content of the specified channel to this buffer starting at the current 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.netty.buffer.WrappedCompositeByteBuf.writeBytes.

Transfers the content of the specified channel starting at the given file position to this buffer starting at the current writerIndex and increases the writerIndex by the number of the transferred bytes.
public CompositeByteBuf
writeChar(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeChar.

Sets the specified 2-byte UTF-16 character at the current 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.netty.buffer.WrappedCompositeByteBuf.writeCharSequence.

Writes the specified CharSequence at the current writerIndex and increases the writerIndex by the written bytes.
public CompositeByteBuf
writeDouble(double value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeDouble.

Sets the specified 64-bit floating point number at the current writerIndex and increases the writerIndex by 8 in this buffer.
public CompositeByteBuf
writeFloat(float value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeFloat.

Sets the specified 32-bit floating point number at the current writerIndex and increases the writerIndex by 4 in this buffer.
public CompositeByteBuf
writeInt(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeInt.

Sets the specified 32-bit integer at the current writerIndex and increases the writerIndex by 4 in this buffer.
public ByteBuf
writeIntLE(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeIntLE.

Sets the specified 32-bit integer at the current writerIndex in the Little Endian Byte Order and increases the writerIndex by 4 in this buffer.
public CompositeByteBuf
writeLong(long value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeLong.

Sets the specified 64-bit long integer at the current writerIndex and increases the writerIndex by 8 in this buffer.
public ByteBuf
writeLongLE(long value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeLongLE.

Sets the specified 64-bit long integer at the current writerIndex in the Little Endian Byte Order and increases the writerIndex by 8 in this buffer.
public CompositeByteBuf
writeMedium(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeMedium.

Sets the specified 24-bit medium integer at the current writerIndex and increases the writerIndex by 3 in this buffer.
public ByteBuf
writeMediumLE(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeMediumLE.

Sets the specified 24-bit medium integer at the current writerIndex in the Little Endian Byte Order and increases the writerIndex by 3 in this buffer.
public CompositeByteBuf
writeShort(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeShort.

Sets the specified 16-bit short integer at the current writerIndex and increases the writerIndex by 2 in this buffer.
public ByteBuf
writeShortLE(int value)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeShortLE.

Sets the specified 16-bit short integer in the Little Endian Byte Order at the current writerIndex and increases the writerIndex by 2 in this buffer.
public CompositeByteBuf
writeZero(int
the number of NULs to write to the buffer
length
)

Overrides io.netty.buffer.WrappedCompositeByteBuf.writeZero.

Fills this buffer with NUL (0x00) starting at the current writerIndex and increases the writerIndex by the specified length.