Top Fields Constructors Methods
io.netty.buffer

pack-priv Class WrappedCompositeByteBuf

extends CompositeByteBuf
Class Inheritance
Known Direct Subclasses
io.netty.buffer.SimpleLeakAwareCompositeByteBuf
Imports
io.netty.util.ByteProcessor, 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

Modifier and TypeField and Description
private final CompositeByteBuf
Inherited from io.netty.buffer.CompositeByteBuf:
BYTE_ARRAY_WRAPPERBYTE_BUFFER_WRAPPER

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected final byte
protected final int
protected final int
protected final long
protected final long
protected final short
protected final short
protected final int
protected final int
protected final void
_setByte(int index, int value)

Overrides io.netty.buffer.CompositeByteBuf._setByte.

protected final void
_setInt(int index, int value)

Overrides io.netty.buffer.CompositeByteBuf._setInt.

protected final void
_setIntLE(int index, int value)

Overrides io.netty.buffer.CompositeByteBuf._setIntLE.

protected final void
_setLong(int index, long value)

Overrides io.netty.buffer.CompositeByteBuf._setLong.

protected final void
protected final void
protected final void
protected final void
_setShort(int index, int value)

Overrides io.netty.buffer.CompositeByteBuf._setShort.

protected final void
public CompositeByteBuf
addComponent(ByteBuf
the ByteBuf to add. ByteBuf#release() ownership is transferred to this CompositeByteBuf.
buffer
)

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.addFlattenedComponents.

Add the given ByteBuf and increase the writerIndex if increaseWriterIndex is true.
public final ByteBufAllocator
alloc()

Overrides io.netty.buffer.CompositeByteBuf.alloc.

Returns the ByteBufAllocator which created this buffer.
public final byte[]
array()

Overrides io.netty.buffer.CompositeByteBuf.array.

Returns the backing byte array of this buffer.
public final int
arrayOffset()

Overrides io.netty.buffer.CompositeByteBuf.arrayOffset.

Returns the offset of the first byte within the backing byte array of this buffer.
public ByteBuf
asReadOnly()

Overrides io.netty.buffer.AbstractByteBuf.asReadOnly.

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

Overrides io.netty.buffer.AbstractByteBuf.bytesBefore.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.bytesBefore.

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

Overrides io.netty.buffer.CompositeByteBuf.capacity.

Returns the number of bytes (octets) this buffer can contain.
public CompositeByteBuf
capacity(int newCapacity)

Overrides io.netty.buffer.CompositeByteBuf.capacity.

Adjusts the capacity of this buffer.
public final CompositeByteBuf
clear()

Overrides io.netty.buffer.CompositeByteBuf.clear.

Sets the readerIndex and writerIndex of this buffer to 0.
public final int
compareTo(ByteBuf
the object to be compared.
that
)

Overrides io.netty.buffer.AbstractByteBuf.compareTo.

Implements java.lang.Comparable.compareTo.

Compares the content of the specified buffer to the content of this buffer.
public final ByteBuf
component(int
the index for which the ByteBuf should be returned
cIndex
)

Overrides io.netty.buffer.CompositeByteBuf.component.

Return the ByteBuf on the specified index
public final ByteBuf
componentAtOffset(int
the offset for which the ByteBuf should be returned
offset
)

Overrides io.netty.buffer.CompositeByteBuf.componentAtOffset.

Return the ByteBuf on the specified index
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.CompositeByteBuf.consolidate.

Consolidate the composed ByteBufs
public ByteBuf
copy()

Overrides io.netty.buffer.AbstractByteBuf.copy.

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

Overrides io.netty.buffer.CompositeByteBuf.copy.

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

Overrides io.netty.buffer.CompositeByteBuf.decompose.

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

Overrides io.netty.buffer.CompositeByteBuf.discardReadBytes.

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

Overrides io.netty.buffer.CompositeByteBuf.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.AbstractByteBuf.duplicate.

Returns a buffer which shares the whole region of this buffer.
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.AbstractByteBuf.ensureWritable.

Expands the buffer capacity() to make sure the number of writable bytes is equal to or greater than the specified value.
public CompositeByteBuf
ensureWritable(int
the expected minimum number of writable bytes
minWritableBytes
)

Overrides io.netty.buffer.CompositeByteBuf.ensureWritable.

Expands the buffer capacity() to make sure the number of writable bytes is equal to or greater than the specified value.
public final boolean
equals(Object
the reference object with which to compare.
o
)

Overrides io.netty.buffer.AbstractByteBuf.equals.

Determines if the content of the specified buffer is identical to the content of this array.
public int
forEachByte(ByteProcessor processor)

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.forEachByte.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.forEachByteDesc.

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

Overrides io.netty.buffer.AbstractByteBuf.getBoolean.

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

Overrides io.netty.buffer.CompositeByteBuf.getByte.

Gets a byte at the specified absolute index in this buffer.
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.CompositeByteBuf.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.CompositeByteBuf.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, ByteBuf dst, int
the first index of the destination
dstIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.CompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination 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.CompositeByteBuf.getBytes.

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

Overrides io.netty.buffer.CompositeByteBuf.getBytes.

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

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.getBytes.

Transfers this buffer's data to the specified destination 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.CompositeByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.getCharSequence.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.getInt.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.getLong.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.getMedium.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.getShort.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.getUnsignedByte.

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

Overrides io.netty.buffer.AbstractByteBuf.getUnsignedInt.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.getUnsignedShortLE.

Gets an unsigned 16-bit short integer at the specified absolute index in this buffer in Little Endian Byte Order.
public final boolean
hasArray()

Overrides io.netty.buffer.CompositeByteBuf.hasArray.

Returns true if and only if this buffer has a backing byte array.
public final int
hashCode()

Overrides io.netty.buffer.AbstractByteBuf.hashCode.

Returns a hash code which was calculated from the content of this buffer.
public final boolean
hasMemoryAddress()

Overrides io.netty.buffer.CompositeByteBuf.hasMemoryAddress.

Returns true if and only if this buffer has a reference to the low-level memory address that points to the backing data.
public int
indexOf(int fromIndex, int toIndex, byte value)

Overrides io.netty.buffer.AbstractByteBuf.indexOf.

Locates the first occurrence of the specified value in this buffer.
public final ByteBuf
internalComponent(int
the index for which the ByteBuf should be returned
cIndex
)

Overrides io.netty.buffer.CompositeByteBuf.internalComponent.

Return the internal ByteBuf on the specified index.
public final ByteBuf
internalComponentAtOffset(int
the offset for which the ByteBuf should be returned
offset
)

Overrides io.netty.buffer.CompositeByteBuf.internalComponentAtOffset.

Return the internal ByteBuf on the specified offset.
public ByteBuffer
internalNioBuffer(int index, int length)

Overrides io.netty.buffer.CompositeByteBuf.internalNioBuffer.

Internal use only: Exposes the internal NIO buffer.
pack-priv final boolean
isAccessible()

Overrides io.netty.buffer.CompositeByteBuf.isAccessible.

Used internally by AbstractByteBuf#ensureAccessible() to try to guard against using the buffer after it was released (best-effort).
public final boolean
isDirect()

Overrides io.netty.buffer.CompositeByteBuf.isDirect.

Returns true if and only if this buffer is backed by an NIO direct buffer.
public final boolean
isReadable()

Overrides io.netty.buffer.AbstractByteBuf.isReadable.

Returns true if and only if (this.writerIndex - this.readerIndex) is greater than 0.
public final boolean
isReadable(int numBytes)

Overrides io.netty.buffer.AbstractByteBuf.isReadable.

Returns true if and only if this buffer contains equal to or more than the specified number of elements.
public boolean
isReadOnly()

Overrides io.netty.buffer.AbstractByteBuf.isReadOnly.

Returns true if and only if this buffer is read-only.
public final boolean
isWritable()

Overrides io.netty.buffer.AbstractByteBuf.isWritable.

Returns true if and only if (this.capacity - this.writerIndex) is greater than 0.
public final boolean
isWritable(int numBytes)

Overrides io.netty.buffer.AbstractByteBuf.isWritable.

Returns true if and only if this buffer has enough room to allow writing the specified number of elements.
public Iterator<ByteBuf>
iterator()

Overrides io.netty.buffer.CompositeByteBuf.iterator.

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
public final CompositeByteBuf
markReaderIndex()

Overrides io.netty.buffer.CompositeByteBuf.markReaderIndex.

Marks the current readerIndex in this buffer.
public final CompositeByteBuf
markWriterIndex()

Overrides io.netty.buffer.CompositeByteBuf.markWriterIndex.

Marks the current writerIndex in this buffer.
public final int
maxCapacity()

Overrides io.netty.buffer.AbstractByteBuf.maxCapacity.

Returns the maximum allowed capacity of this buffer.
public int
maxFastWritableBytes()

Overrides io.netty.buffer.ByteBuf.maxFastWritableBytes.

Returns the maximum number of bytes which can be written for certain without involving an internal reallocation or data-copy.
public final int
maxNumComponents()

Overrides io.netty.buffer.CompositeByteBuf.maxNumComponents.

Return the max number of ByteBuf's that are composed in this instance
public final int
maxWritableBytes()

Overrides io.netty.buffer.AbstractByteBuf.maxWritableBytes.

Returns the maximum possible number of writable bytes, which is equal to (this.maxCapacity - this.writerIndex).
public final long
memoryAddress()

Overrides io.netty.buffer.CompositeByteBuf.memoryAddress.

Returns the low-level memory address that point to the first byte of ths backing data.
protected SwappedByteBuf
newSwappedByteBuf()

Overrides io.netty.buffer.AbstractByteBuf.newSwappedByteBuf.

Deprecated as a consequence of SwappedByteBuf being deprecated.
Creates a new SwappedByteBuf for this ByteBuf instance.
public ByteBuffer
nioBuffer()

Overrides io.netty.buffer.AbstractByteBuf.nioBuffer.

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

Overrides io.netty.buffer.CompositeByteBuf.nioBuffer.

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

Overrides io.netty.buffer.CompositeByteBuf.nioBufferCount.

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

Overrides io.netty.buffer.CompositeByteBuf.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 ByteBuffer[]
nioBuffers()

Overrides io.netty.buffer.CompositeByteBuf.nioBuffers.

Exposes this buffer's readable bytes as an NIO ByteBuffer's.
public final int
numComponents()

Overrides io.netty.buffer.CompositeByteBuf.numComponents.

Return the current number of ByteBuf's that are composed in this instance
public ByteBuf
order(ByteOrder endianness)

Overrides io.netty.buffer.AbstractByteBuf.order.

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

Overrides io.netty.buffer.CompositeByteBuf.order.

Returns the endianness of this buffer.
public final int
readableBytes()

Overrides io.netty.buffer.AbstractByteBuf.readableBytes.

Returns the number of readable bytes which is equal to (this.writerIndex - this.readerIndex).
public boolean
readBoolean()

Overrides io.netty.buffer.AbstractByteBuf.readBoolean.

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

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.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 int
readBytes(GatheringByteChannel out, int
the maximum number of bytes to transfer
length
)

Overrides io.netty.buffer.AbstractByteBuf.readBytes.

Transfers this buffer's data to the specified stream starting at the current readerIndex.
public CompositeByteBuf
readBytes(ByteBuf dst)

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.readDouble.

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

Overrides io.netty.buffer.AbstractByteBuf.readerIndex.

Returns the readerIndex of this buffer.
public final CompositeByteBuf
readerIndex(int readerIndex)

Overrides io.netty.buffer.CompositeByteBuf.readerIndex.

Sets the readerIndex of this buffer.
public float
readFloat()

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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 final int
refCnt()

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.refCnt.

Implements io.netty.util.ReferenceCounted.refCnt.

Returns the reference count of this object.
public boolean
release()

Overrides io.netty.buffer.AbstractReferenceCountedByteBuf.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.AbstractReferenceCountedByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.removeComponents.

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

Overrides io.netty.buffer.CompositeByteBuf.resetReaderIndex.

Repositions the current readerIndex to the marked readerIndex in this buffer.
public final CompositeByteBuf
resetWriterIndex()

Overrides io.netty.buffer.CompositeByteBuf.resetWriterIndex.

Repositions the current writerIndex to the marked writerIndex in this buffer.
public CompositeByteBuf
retain(int increment)

Overrides io.netty.buffer.CompositeByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

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

Overrides io.netty.buffer.CompositeByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.
public ByteBuf
retainedDuplicate()

Overrides io.netty.buffer.AbstractByteBuf.retainedDuplicate.

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

Overrides io.netty.buffer.AbstractByteBuf.retainedSlice.

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

Overrides io.netty.buffer.AbstractByteBuf.retainedSlice.

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

Overrides io.netty.buffer.CompositeByteBuf.setBoolean.

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

Overrides io.netty.buffer.CompositeByteBuf.setByte.

Sets the specified byte at the specified absolute index in this buffer.
public CompositeByteBuf
setBytes(int index, byte[] src, int srcIndex, int length)

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.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 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.CompositeByteBuf.setBytes.

Transfers the specified source buffer's data to this buffer starting at the specified absolute index.
public int
setBytes(int index, InputStream in, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.setBytes.

Transfers the content of the specified source channel to this buffer starting at the specified absolute index.
public CompositeByteBuf
setBytes(int index, ByteBuf src)

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.setBytes.

Transfers the specified source array's data 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.CompositeByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.setCharSequence.

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

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.setFloat.

Sets the specified 32-bit floating-point number at the specified absolute index in this buffer.
public final CompositeByteBuf
setIndex(int readerIndex, int writerIndex)

Overrides io.netty.buffer.CompositeByteBuf.setIndex.

Sets the readerIndex and writerIndex of this buffer in one shot.
public CompositeByteBuf
setInt(int index, int value)

Overrides io.netty.buffer.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.setZero.

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

Overrides io.netty.buffer.CompositeByteBuf.skipBytes.

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

Overrides io.netty.buffer.AbstractByteBuf.slice.

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

Overrides io.netty.buffer.AbstractByteBuf.slice.

Returns a slice of this buffer's sub-region.
public final int
public final int
toComponentIndex(int offset)

Overrides io.netty.buffer.CompositeByteBuf.toComponentIndex.

Return the index for the given offset
public String
toString(Charset charset)

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.toString.

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

Overrides io.netty.buffer.CompositeByteBuf.toString.

Returns the string representation of this buffer.
public CompositeByteBuf
touch()

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
public final ByteBuf
unwrap()

Overrides io.netty.buffer.CompositeByteBuf.unwrap.

Return the underlying buffer instance if this buffer is a wrapper of another buffer.
public final int
writableBytes()

Overrides io.netty.buffer.AbstractByteBuf.writableBytes.

Returns the number of writable bytes which is equal to (this.capacity - this.writerIndex).
public CompositeByteBuf
writeBoolean(boolean value)

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.writeByte.

Sets the specified byte at the current writerIndex and increases the writerIndex by 1 in this buffer.
public int
writeBytes(InputStream in, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.AbstractByteBuf.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.AbstractByteBuf.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.AbstractByteBuf.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
writeBytes(ByteBuf src)

Overrides io.netty.buffer.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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 CompositeByteBuf
writeChar(int value)

Overrides io.netty.buffer.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.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.AbstractByteBuf.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 final int
writerIndex()

Overrides io.netty.buffer.AbstractByteBuf.writerIndex.

Returns the writerIndex of this buffer.
public final CompositeByteBuf
writerIndex(int writerIndex)

Overrides io.netty.buffer.CompositeByteBuf.writerIndex.

Sets the writerIndex of this buffer.
public CompositeByteBuf
writeShort(int value)

Overrides io.netty.buffer.CompositeByteBuf.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.AbstractByteBuf.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.CompositeByteBuf.writeZero.

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