Top Fields Constructors Methods
io.netty.buffer

pack-priv final Class AdvancedLeakAwareByteBuf

extends SimpleLeakAwareByteBuf
Class Inheritance
Imports
io.netty.util.ByteProcessor, .ResourceLeakDetector, .ResourceLeakTracker, io.netty.util.internal.SystemPropertyUtil, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.io.IOException, .InputStream, .OutputStream, java.nio.ByteBuffer, .ByteOrder, java.nio.channels.FileChannel, .GatheringByteChannel, .ScatteringByteChannel, java.nio.charset.Charset

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final InternalLogger
private static final String
Inherited from io.netty.buffer.SimpleLeakAwareByteBuf:
leak

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ByteBuf
asReadOnly()

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.asReadOnly.

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

Overrides io.netty.buffer.WrappedByteBuf.bytesBefore.

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

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

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

Overrides io.netty.buffer.WrappedByteBuf.capacity.

Adjusts the capacity of this buffer.
public ByteBuf
copy()

Overrides io.netty.buffer.WrappedByteBuf.copy.

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

Overrides io.netty.buffer.WrappedByteBuf.copy.

Returns a copy of this buffer's sub-region.
public ByteBuf
discardReadBytes()

Overrides io.netty.buffer.WrappedByteBuf.discardReadBytes.

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

Overrides io.netty.buffer.WrappedByteBuf.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.SimpleLeakAwareByteBuf.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.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.getBoolean.

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

Overrides io.netty.buffer.WrappedByteBuf.getByte.

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

Overrides io.netty.buffer.WrappedByteBuf.getBytes.

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

Overrides io.netty.buffer.WrappedByteBuf.getBytes.

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

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

Overrides io.netty.buffer.WrappedByteBuf.getBytes.

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

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

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
getBytes(int index, OutputStream out, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.getCharSequence.

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

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

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

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

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

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

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

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

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

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

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

Overrides io.netty.buffer.WrappedByteBuf.getUnsignedInt.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.indexOf.

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

Overrides io.netty.buffer.WrappedByteBuf.internalNioBuffer.

Internal use only: Exposes the internal NIO buffer.
protected AdvancedLeakAwareByteBuf
public ByteBuffer
nioBuffer()

Overrides io.netty.buffer.WrappedByteBuf.nioBuffer.

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

Overrides io.netty.buffer.WrappedByteBuf.nioBuffer.

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

Overrides io.netty.buffer.WrappedByteBuf.nioBufferCount.

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

Overrides io.netty.buffer.WrappedByteBuf.nioBuffers.

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

Overrides io.netty.buffer.WrappedByteBuf.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.SimpleLeakAwareByteBuf.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.WrappedByteBuf.readBoolean.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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 ByteBuf
readBytes(ByteBuf dst)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
readBytes(ByteBuf dst, int length)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
readBytes(ByteBuf dst, int
the first index of the destination
dstIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
readBytes(byte[] dst)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
readBytes(byte[] dst, int
the first index of the destination
dstIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
readBytes(ByteBuffer dst)

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.SimpleLeakAwareByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.SimpleLeakAwareByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.
pack-priv static void
public boolean
release()

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.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.SimpleLeakAwareByteBuf.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 ByteBuf
retain()

Overrides io.netty.buffer.WrappedByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

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

Overrides io.netty.buffer.WrappedByteBuf.retain.

Implements io.netty.util.ReferenceCounted.retain.

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

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.retainedDuplicate.

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

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.retainedSlice.

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

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.retainedSlice.

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

Overrides io.netty.buffer.WrappedByteBuf.setBoolean.

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

Overrides io.netty.buffer.WrappedByteBuf.setByte.

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

Overrides io.netty.buffer.WrappedByteBuf.setBytes.

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

Overrides io.netty.buffer.WrappedByteBuf.setBytes.

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

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

Overrides io.netty.buffer.WrappedByteBuf.setBytes.

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

Overrides io.netty.buffer.WrappedByteBuf.setBytes.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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.WrappedByteBuf.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 ByteBuf
setChar(int index, int value)

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.setCharSequence.

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

Overrides io.netty.buffer.WrappedByteBuf.setDouble.

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

Overrides io.netty.buffer.WrappedByteBuf.setFloat.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.setIntLE.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.setLongLE.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.setMediumLE.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.setShortLE.

Sets the specified 16-bit short integer at the specified absolute 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.netty.buffer.WrappedByteBuf.setZero.

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

Overrides io.netty.buffer.WrappedByteBuf.skipBytes.

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

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.slice.

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

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.slice.

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

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

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

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

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

Overrides io.netty.buffer.SimpleLeakAwareByteBuf.touch.

Implements io.netty.util.ReferenceCounted.touch.

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

Overrides io.netty.buffer.WrappedByteBuf.writeBoolean.

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

Overrides io.netty.buffer.WrappedByteBuf.writeByte.

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

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
writeBytes(ByteBuf src, int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
writeBytes(ByteBuf src, int
the first index of the source
srcIndex
,
int
the number of bytes to transfer
length
)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
writeBytes(byte[] src)

Overrides io.netty.buffer.WrappedByteBuf.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 ByteBuf
writeBytes(byte[] src, int
the first index of the source
srcIndex
,
int
the number of bytes to transfer
length
)

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

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.writeCharSequence.

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

Overrides io.netty.buffer.WrappedByteBuf.writeDouble.

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

Overrides io.netty.buffer.WrappedByteBuf.writeFloat.

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

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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 ByteBuf
writeLong(long value)

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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 ByteBuf
writeMedium(int value)

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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 ByteBuf
writeShort(int value)

Overrides io.netty.buffer.WrappedByteBuf.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.WrappedByteBuf.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 ByteBuf
writeZero(int
the number of NULs to write to the buffer
length
)

Overrides io.netty.buffer.WrappedByteBuf.writeZero.

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