Modifier and Type | Class and Description |
---|---|
class |
AbstractByteBuf
A skeletal implementation of a buffer.
|
class |
AbstractDerivedByteBuf
Deprecated.
Do not use.
|
class |
AbstractReferenceCountedByteBuf
Abstract base class for
ByteBuf implementations that count references. |
class |
CompositeByteBuf
A virtual buffer which shows multiple buffers as a single merged buffer.
|
class |
DuplicatedByteBuf
Deprecated.
Do not use.
|
class |
EmptyByteBuf
An empty
ByteBuf whose capacity and maximum capacity are all 0 . |
class |
ReadOnlyByteBuf
Deprecated.
Do not use.
|
class |
SlicedByteBuf
Deprecated.
Do not use.
|
class |
SwappedByteBuf
Deprecated.
use the Little Endian accessors, e.g.
getShortLE , getIntLE
instead. |
class |
UnpooledDirectByteBuf
A NIO
ByteBuffer based buffer. |
class |
UnpooledHeapByteBuf
Big endian Java heap buffer implementation.
|
class |
UnpooledUnsafeDirectByteBuf
A NIO
ByteBuffer based buffer. |
Modifier and Type | Field and Description |
---|---|
static ByteBuf |
Unpooled.EMPTY_BUFFER
A buffer whose capacity is
0 . |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
SwappedByteBuf.asReadOnly()
Deprecated.
|
abstract ByteBuf |
ByteBuf.asReadOnly()
Returns a read-only version of this buffer.
|
ByteBuf |
AbstractByteBuf.asReadOnly() |
ByteBuf |
ReadOnlyByteBuf.asReadOnly()
Deprecated.
|
ByteBuf |
EmptyByteBuf.asReadOnly() |
ByteBuf |
ByteBufAllocator.buffer()
Allocate a
ByteBuf . |
static ByteBuf |
Unpooled.buffer()
Creates a new big-endian Java heap buffer with reasonably small initial capacity, which
expands its capacity boundlessly on demand.
|
ByteBuf |
ByteBufOutputStream.buffer()
Returns the buffer where this stream is writing data.
|
ByteBuf |
AbstractByteBufAllocator.buffer() |
ByteBuf |
ByteBufAllocator.buffer(int initialCapacity)
Allocate a
ByteBuf with the given initial capacity. |
static ByteBuf |
Unpooled.buffer(int initialCapacity)
Creates a new big-endian Java heap buffer with the specified
capacity , which
expands its capacity boundlessly on demand. |
ByteBuf |
AbstractByteBufAllocator.buffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.buffer(int initialCapacity,
int maxCapacity)
Allocate a
ByteBuf with the given initial capacity and the given
maximal capacity. |
static ByteBuf |
Unpooled.buffer(int initialCapacity,
int maxCapacity)
Creates a new big-endian Java heap buffer with the specified
initialCapacity , that may grow up to maxCapacity
The new buffer's readerIndex and writerIndex are
0 . |
ByteBuf |
AbstractByteBufAllocator.buffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
SwappedByteBuf.capacity(int newCapacity)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.capacity(int newCapacity) |
abstract ByteBuf |
ByteBuf.capacity(int newCapacity)
Adjusts the capacity of this buffer.
|
ByteBuf |
DuplicatedByteBuf.capacity(int newCapacity)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.capacity(int newCapacity) |
ByteBuf |
ReadOnlyByteBuf.capacity(int newCapacity)
Deprecated.
|
ByteBuf |
EmptyByteBuf.capacity(int newCapacity) |
ByteBuf |
UnpooledDirectByteBuf.capacity(int newCapacity) |
ByteBuf |
SwappedByteBuf.clear()
Deprecated.
|
abstract ByteBuf |
ByteBuf.clear()
Sets the
readerIndex and writerIndex of this buffer to
0 . |
ByteBuf |
AbstractByteBuf.clear() |
ByteBuf |
EmptyByteBuf.clear() |
ByteBuf |
CompositeByteBuf.component(int cIndex)
Return the
ByteBuf on the specified index |
ByteBuf |
CompositeByteBuf.componentAtOffset(int offset)
Return the
ByteBuf on the specified index |
ByteBuf |
ByteBufHolder.content()
Return the data which is held by this
ByteBufHolder . |
ByteBuf |
DefaultByteBufHolder.content() |
static ByteBuf |
Unpooled.copiedBuffer(byte[]... arrays)
Creates a new big-endian buffer whose content is a merged copy of
the specified
arrays . |
static ByteBuf |
Unpooled.copiedBuffer(byte[] array)
Creates a new big-endian buffer whose content is a copy of the
specified
array . |
static ByteBuf |
Unpooled.copiedBuffer(byte[] array,
int offset,
int length)
Creates a new big-endian buffer whose content is a copy of the
specified
array 's sub-region. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf... buffers)
Creates a new buffer whose content is a merged copy of the specified
buffers ' readable bytes. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf buffer)
Creates a new buffer whose content is a copy of the specified
buffer 's readable bytes. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuffer... buffers)
Creates a new buffer whose content is a merged copy of the specified
buffers ' slices. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuffer buffer)
Creates a new buffer whose content is a copy of the specified
buffer 's current slice. |
static ByteBuf |
Unpooled.copiedBuffer(char[] array,
Charset charset)
Creates a new big-endian buffer whose content is the specified
array encoded in the specified charset . |
static ByteBuf |
Unpooled.copiedBuffer(char[] array,
int offset,
int length,
Charset charset)
Creates a new big-endian buffer whose content is a subregion of
the specified
array encoded in the specified charset . |
static ByteBuf |
Unpooled.copiedBuffer(CharSequence string,
Charset charset)
Creates a new big-endian buffer whose content is the specified
string encoded in the specified charset . |
static ByteBuf |
Unpooled.copiedBuffer(CharSequence string,
int offset,
int length,
Charset charset)
Creates a new big-endian buffer whose content is a subregion of
the specified
string encoded in the specified charset . |
ByteBuf |
SwappedByteBuf.copy()
Deprecated.
|
abstract ByteBuf |
ByteBuf.copy()
Returns a copy of this buffer's readable bytes.
|
ByteBuf |
AbstractByteBuf.copy() |
ByteBuf |
EmptyByteBuf.copy() |
ByteBuf |
SwappedByteBuf.copy(int index,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.copy(int index,
int length) |
abstract ByteBuf |
ByteBuf.copy(int index,
int length)
Returns a copy of this buffer's sub-region.
|
ByteBuf |
DuplicatedByteBuf.copy(int index,
int length)
Deprecated.
|
ByteBuf |
CompositeByteBuf.copy(int index,
int length) |
ByteBuf |
UnpooledHeapByteBuf.copy(int index,
int length) |
ByteBuf |
ReadOnlyByteBuf.copy(int index,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.copy(int index,
int length) |
ByteBuf |
UnpooledDirectByteBuf.copy(int index,
int length) |
static ByteBuf |
Unpooled.copyBoolean(boolean... values)
Create a new big-endian buffer that holds a sequence of the specified boolean values.
|
static ByteBuf |
Unpooled.copyBoolean(boolean value)
Creates a new single-byte big-endian buffer that holds the specified boolean value.
|
static ByteBuf |
Unpooled.copyDouble(double... values)
Create a new big-endian buffer that holds a sequence of the specified 64-bit floating point numbers.
|
static ByteBuf |
Unpooled.copyDouble(double value)
Creates a new 8-byte big-endian buffer that holds the specified 64-bit floating point number.
|
static ByteBuf |
Unpooled.copyFloat(float... values)
Create a new big-endian buffer that holds a sequence of the specified 32-bit floating point numbers.
|
static ByteBuf |
Unpooled.copyFloat(float value)
Creates a new 4-byte big-endian buffer that holds the specified 32-bit floating point number.
|
static ByteBuf |
Unpooled.copyInt(int... values)
Create a big-endian buffer that holds a sequence of the specified 32-bit integers.
|
static ByteBuf |
Unpooled.copyInt(int value)
Creates a new 4-byte big-endian buffer that holds the specified 32-bit integer.
|
static ByteBuf |
Unpooled.copyLong(long... values)
Create a new big-endian buffer that holds a sequence of the specified 64-bit integers.
|
static ByteBuf |
Unpooled.copyLong(long value)
Creates a new 8-byte big-endian buffer that holds the specified 64-bit integer.
|
static ByteBuf |
Unpooled.copyMedium(int... values)
Create a new big-endian buffer that holds a sequence of the specified 24-bit integers.
|
static ByteBuf |
Unpooled.copyMedium(int value)
Creates a new 3-byte big-endian buffer that holds the specified 24-bit integer.
|
static ByteBuf |
Unpooled.copyShort(int... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.
|
static ByteBuf |
Unpooled.copyShort(int value)
Creates a new 2-byte big-endian buffer that holds the specified 16-bit integer.
|
static ByteBuf |
Unpooled.copyShort(short... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.
|
ByteBuf |
ByteBufAllocator.directBuffer()
Allocate a direct
ByteBuf . |
static ByteBuf |
Unpooled.directBuffer()
Creates a new big-endian direct buffer with reasonably small initial capacity, which
expands its capacity boundlessly on demand.
|
ByteBuf |
AbstractByteBufAllocator.directBuffer() |
ByteBuf |
ByteBufAllocator.directBuffer(int initialCapacity)
Allocate a direct
ByteBuf with the given initial capacity. |
static ByteBuf |
Unpooled.directBuffer(int initialCapacity)
Creates a new big-endian direct buffer with the specified
capacity , which
expands its capacity boundlessly on demand. |
ByteBuf |
AbstractByteBufAllocator.directBuffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.directBuffer(int initialCapacity,
int maxCapacity)
Allocate a direct
ByteBuf with the given initial capacity and the given
maximal capacity. |
static ByteBuf |
Unpooled.directBuffer(int initialCapacity,
int maxCapacity)
Creates a new big-endian direct buffer with the specified
initialCapacity , that may grow up to maxCapacity . |
ByteBuf |
AbstractByteBufAllocator.directBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
SwappedByteBuf.discardReadBytes()
Deprecated.
|
abstract ByteBuf |
ByteBuf.discardReadBytes()
Discards the bytes between the 0th index and
readerIndex . |
ByteBuf |
AbstractByteBuf.discardReadBytes() |
ByteBuf |
ReadOnlyByteBuf.discardReadBytes()
Deprecated.
|
ByteBuf |
EmptyByteBuf.discardReadBytes() |
ByteBuf |
SwappedByteBuf.discardSomeReadBytes()
Deprecated.
|
abstract ByteBuf |
ByteBuf.discardSomeReadBytes()
Similar to
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. |
ByteBuf |
AbstractByteBuf.discardSomeReadBytes() |
ByteBuf |
EmptyByteBuf.discardSomeReadBytes() |
ByteBuf |
SwappedByteBuf.duplicate()
Deprecated.
|
abstract ByteBuf |
ByteBuf.duplicate()
Returns a buffer which shares the whole region of this buffer.
|
ByteBuf |
AbstractByteBuf.duplicate() |
ByteBuf |
ReadOnlyByteBuf.duplicate()
Deprecated.
|
ByteBuf |
EmptyByteBuf.duplicate() |
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
CharBuffer src,
Charset charset)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
CharBuffer src,
Charset charset,
int extraCapacity)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
ByteBuf |
SwappedByteBuf.ensureWritable(int writableBytes)
Deprecated.
|
abstract ByteBuf |
ByteBuf.ensureWritable(int minWritableBytes)
Expands the buffer
capacity() to make sure the number of
writable bytes is equal to or greater than the
specified value. |
ByteBuf |
AbstractByteBuf.ensureWritable(int minWritableBytes) |
ByteBuf |
ReadOnlyByteBuf.ensureWritable(int minWritableBytes)
Deprecated.
|
ByteBuf |
EmptyByteBuf.ensureWritable(int minWritableBytes) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
byte[] dst)
Deprecated.
|
abstract ByteBuf |
ByteBuf.getBytes(int index,
byte[] dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst)
Deprecated.
|
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index until the destination becomes
non-writable. |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuffer dst)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuffer dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index until the destination's position
reaches its limit. |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuffer dst)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuffer dst)
Deprecated.
|
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
OutputStream out,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
OutputStream out,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
OutputStream out,
int length)
Transfers this buffer's data to the specified stream starting at the
specified absolute
index . |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
OutputStream out,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
OutputStream out,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
ByteBufAllocator.heapBuffer()
Allocate a heap
ByteBuf . |
ByteBuf |
AbstractByteBufAllocator.heapBuffer() |
ByteBuf |
ByteBufAllocator.heapBuffer(int initialCapacity)
Allocate a heap
ByteBuf with the given initial capacity. |
ByteBuf |
AbstractByteBufAllocator.heapBuffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.heapBuffer(int initialCapacity,
int maxCapacity)
Allocate a heap
ByteBuf with the given initial capacity and the given
maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.heapBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
CompositeByteBuf.internalComponent(int cIndex)
Return the internal
ByteBuf on the specified index. |
ByteBuf |
CompositeByteBuf.internalComponentAtOffset(int offset)
Return the internal
ByteBuf on the specified offset. |
ByteBuf |
ByteBufAllocator.ioBuffer()
Allocate a
ByteBuf , preferably a direct buffer which is suitable for I/O. |
ByteBuf |
AbstractByteBufAllocator.ioBuffer() |
ByteBuf |
ByteBufAllocator.ioBuffer(int initialCapacity)
Allocate a
ByteBuf , preferably a direct buffer which is suitable for I/O. |
ByteBuf |
AbstractByteBufAllocator.ioBuffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.ioBuffer(int initialCapacity,
int maxCapacity)
Allocate a
ByteBuf , preferably a direct buffer which is suitable for I/O. |
ByteBuf |
AbstractByteBufAllocator.ioBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
SwappedByteBuf.markReaderIndex()
Deprecated.
|
abstract ByteBuf |
ByteBuf.markReaderIndex()
Marks the current
readerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.markReaderIndex() |
ByteBuf |
EmptyByteBuf.markReaderIndex() |
ByteBuf |
SwappedByteBuf.markWriterIndex()
Deprecated.
|
abstract ByteBuf |
ByteBuf.markWriterIndex()
Marks the current
writerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.markWriterIndex() |
ByteBuf |
EmptyByteBuf.markWriterIndex() |
protected ByteBuf |
UnpooledByteBufAllocator.newDirectBuffer(int initialCapacity,
int maxCapacity) |
protected abstract ByteBuf |
AbstractByteBufAllocator.newDirectBuffer(int initialCapacity,
int maxCapacity)
Create a direct
ByteBuf with the given initialCapacity and maxCapacity. |
protected ByteBuf |
PooledByteBufAllocator.newDirectBuffer(int initialCapacity,
int maxCapacity) |
protected ByteBuf |
UnpooledByteBufAllocator.newHeapBuffer(int initialCapacity,
int maxCapacity) |
protected abstract ByteBuf |
AbstractByteBufAllocator.newHeapBuffer(int initialCapacity,
int maxCapacity)
Create a heap
ByteBuf with the given initialCapacity and maxCapacity. |
protected ByteBuf |
PooledByteBufAllocator.newHeapBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
SwappedByteBuf.order(ByteOrder endianness)
Deprecated.
|
abstract ByteBuf |
ByteBuf.order(ByteOrder endianness)
Deprecated.
use the Little Endian accessors, e.g.
getShortLE , getIntLE
instead of creating a buffer with swapped endianness . |
ByteBuf |
AbstractByteBuf.order(ByteOrder endianness) |
ByteBuf |
EmptyByteBuf.order(ByteOrder endianness) |
ByteBuf |
SwappedByteBuf.readBytes(byte[] dst)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(byte[] dst)
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 ). |
ByteBuf |
AbstractByteBuf.readBytes(byte[] dst) |
ByteBuf |
EmptyByteBuf.readBytes(byte[] dst) |
ByteBuf |
SwappedByteBuf.readBytes(byte[] dst,
int dstIndex,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(byte[] dst,
int dstIndex,
int length)
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 ). |
ByteBuf |
AbstractByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst)
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. |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst) |
static ByteBuf |
ByteBufUtil.readBytes(ByteBufAllocator alloc,
ByteBuf buffer,
int length)
Read the given amount of bytes into a new
ByteBuf that is allocated from the ByteBufAllocator . |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuffer dst)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.readBytes(ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuffer dst)
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. |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuffer dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuffer dst) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(ByteBuffer dst) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int length)
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 ). |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length)
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 ). |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(int length)
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 ). |
ByteBuf |
AbstractByteBuf.readBytes(int length) |
ByteBuf |
EmptyByteBuf.readBytes(int length) |
ByteBuf |
SwappedByteBuf.readBytes(OutputStream out,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(OutputStream out,
int length)
Transfers this buffer's data to the specified stream starting at the
current
readerIndex . |
ByteBuf |
AbstractByteBuf.readBytes(OutputStream out,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(OutputStream out,
int length) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(OutputStream out,
int length) |
ByteBuf |
SwappedByteBuf.readerIndex(int readerIndex)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readerIndex(int readerIndex)
Sets the
readerIndex of this buffer. |
ByteBuf |
AbstractByteBuf.readerIndex(int readerIndex) |
ByteBuf |
EmptyByteBuf.readerIndex(int readerIndex) |
ByteBuf |
SwappedByteBuf.readRetainedSlice(int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readRetainedSlice(int length)
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 ). |
ByteBuf |
AbstractByteBuf.readRetainedSlice(int length) |
ByteBuf |
EmptyByteBuf.readRetainedSlice(int length) |
ByteBuf |
SwappedByteBuf.readSlice(int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readSlice(int length)
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 ). |
ByteBuf |
AbstractByteBuf.readSlice(int length) |
ByteBuf |
EmptyByteBuf.readSlice(int length) |
ByteBuf |
SwappedByteBuf.resetReaderIndex()
Deprecated.
|
abstract ByteBuf |
ByteBuf.resetReaderIndex()
Repositions the current
readerIndex to the marked
readerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.resetReaderIndex() |
ByteBuf |
EmptyByteBuf.resetReaderIndex() |
ByteBuf |
SwappedByteBuf.resetWriterIndex()
Deprecated.
|
abstract ByteBuf |
ByteBuf.resetWriterIndex()
Repositions the current
writerIndex to the marked
writerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.resetWriterIndex() |
ByteBuf |
EmptyByteBuf.resetWriterIndex() |
ByteBuf |
SwappedByteBuf.retain()
Deprecated.
|
ByteBuf |
AbstractDerivedByteBuf.retain()
Deprecated.
|
abstract ByteBuf |
ByteBuf.retain() |
ByteBuf |
AbstractReferenceCountedByteBuf.retain() |
ByteBuf |
EmptyByteBuf.retain() |
ByteBuf |
SwappedByteBuf.retain(int increment)
Deprecated.
|
ByteBuf |
AbstractDerivedByteBuf.retain(int increment)
Deprecated.
|
abstract ByteBuf |
ByteBuf.retain(int increment) |
ByteBuf |
AbstractReferenceCountedByteBuf.retain(int increment) |
ByteBuf |
EmptyByteBuf.retain(int increment) |
ByteBuf |
SwappedByteBuf.retainedDuplicate()
Deprecated.
|
abstract ByteBuf |
ByteBuf.retainedDuplicate()
Returns a retained buffer which shares the whole region of this buffer.
|
ByteBuf |
AbstractByteBuf.retainedDuplicate() |
ByteBuf |
EmptyByteBuf.retainedDuplicate() |
ByteBuf |
SwappedByteBuf.retainedSlice()
Deprecated.
|
abstract ByteBuf |
ByteBuf.retainedSlice()
Returns a retained slice of this buffer's readable bytes.
|
ByteBuf |
AbstractByteBuf.retainedSlice() |
ByteBuf |
EmptyByteBuf.retainedSlice() |
ByteBuf |
SwappedByteBuf.retainedSlice(int index,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.retainedSlice(int index,
int length)
Returns a retained slice of this buffer's sub-region.
|
ByteBuf |
AbstractByteBuf.retainedSlice(int index,
int length) |
ByteBuf |
EmptyByteBuf.retainedSlice(int index,
int length) |
ByteBuf |
SwappedByteBuf.setBoolean(int index,
boolean value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setBoolean(int index,
boolean value)
Sets the specified boolean at the specified absolute
index in this
buffer. |
ByteBuf |
AbstractByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
EmptyByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
SwappedByteBuf.setByte(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setByte(int index,
int value)
Sets the specified byte at the specified absolute
index in this
buffer. |
ByteBuf |
DuplicatedByteBuf.setByte(int index,
int value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setByte(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setByte(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setByte(int index,
int value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setByte(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setByte(int index,
int value) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
byte[] src)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setBytes(int index,
byte[] src)
Transfers the specified source array's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Transfers the specified source array's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index until the source buffer becomes
unreadable. |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuffer src)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuffer src) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuffer src)
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. |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuffer src)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuffer src)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.setChar(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setChar(int index,
int value)
Sets the specified 2-byte UTF-16 character at the specified absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setChar(int index,
int value) |
ByteBuf |
EmptyByteBuf.setChar(int index,
int value) |
ByteBuf |
SwappedByteBuf.setDouble(int index,
double value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setDouble(int index,
double value)
Sets the specified 64-bit floating-point number at the specified
absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setDouble(int index,
double value) |
ByteBuf |
EmptyByteBuf.setDouble(int index,
double value) |
ByteBuf |
ByteBuf.setDoubleLE(int index,
double value)
Sets the specified 64-bit floating-point number at the specified
absolute
index in this buffer in Little Endian Byte Order. |
ByteBuf |
SwappedByteBuf.setFloat(int index,
float value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setFloat(int index,
float value)
Sets the specified 32-bit floating-point number at the specified
absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setFloat(int index,
float value) |
ByteBuf |
EmptyByteBuf.setFloat(int index,
float value) |
ByteBuf |
ByteBuf.setFloatLE(int index,
float value)
Sets the specified 32-bit floating-point number at the specified
absolute
index in this buffer in Little Endian Byte Order. |
ByteBuf |
SwappedByteBuf.setIndex(int readerIndex,
int writerIndex)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setIndex(int readerIndex,
int writerIndex)
Sets the
readerIndex and writerIndex of this buffer
in one shot. |
ByteBuf |
AbstractByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
EmptyByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
SwappedByteBuf.setInt(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setInt(int index,
int value)
Sets the specified 32-bit integer at the specified absolute
index in this buffer. |
ByteBuf |
DuplicatedByteBuf.setInt(int index,
int value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setInt(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setInt(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setInt(int index,
int value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setInt(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setInt(int index,
int value) |
ByteBuf |
SwappedByteBuf.setIntLE(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setIntLE(int index,
int value)
Sets the specified 32-bit integer at the specified absolute
index in this buffer with Little Endian byte order
. |
ByteBuf |
DuplicatedByteBuf.setIntLE(int index,
int value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setIntLE(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setIntLE(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setIntLE(int index,
int value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setIntLE(int index,
int value) |
ByteBuf |
SwappedByteBuf.setLong(int index,
long value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setLong(int index,
long value)
Sets the specified 64-bit long integer at the specified absolute
index in this buffer. |
ByteBuf |
DuplicatedByteBuf.setLong(int index,
long value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setLong(int index,
long value) |
ByteBuf |
UnpooledHeapByteBuf.setLong(int index,
long value) |
ByteBuf |
ReadOnlyByteBuf.setLong(int index,
long value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setLong(int index,
long value) |
ByteBuf |
UnpooledDirectByteBuf.setLong(int index,
long value) |
ByteBuf |
SwappedByteBuf.setLongLE(int index,
long value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setLongLE(int index,
long value)
Sets the specified 64-bit long integer at the specified absolute
index in this buffer in Little Endian Byte Order. |
ByteBuf |
DuplicatedByteBuf.setLongLE(int index,
long value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setLongLE(int index,
long value) |
ByteBuf |
UnpooledHeapByteBuf.setLongLE(int index,
long value) |
ByteBuf |
ReadOnlyByteBuf.setLongLE(int index,
long value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setLongLE(int index,
long value) |
ByteBuf |
SwappedByteBuf.setMedium(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setMedium(int index,
int value)
Sets the specified 24-bit medium integer at the specified absolute
index in this buffer. |
ByteBuf |
DuplicatedByteBuf.setMedium(int index,
int value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setMedium(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setMedium(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setMedium(int index,
int value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setMedium(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setMedium(int index,
int value) |
ByteBuf |
SwappedByteBuf.setMediumLE(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setMediumLE(int index,
int value)
Sets the specified 24-bit medium integer at the specified absolute
index in this buffer in the Little Endian Byte Order. |
ByteBuf |
DuplicatedByteBuf.setMediumLE(int index,
int value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setMediumLE(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setMediumLE(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setMediumLE(int index,
int value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setMediumLE(int index,
int value) |
ByteBuf |
SwappedByteBuf.setShort(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setShort(int index,
int value)
Sets the specified 16-bit short integer at the specified absolute
index in this buffer. |
ByteBuf |
DuplicatedByteBuf.setShort(int index,
int value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setShort(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setShort(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setShort(int index,
int value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setShort(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setShort(int index,
int value) |
static ByteBuf |
ByteBufUtil.setShortBE(ByteBuf buf,
int index,
int shortValue)
Sets a big-endian 16-bit short integer to the buffer.
|
ByteBuf |
SwappedByteBuf.setShortLE(int index,
int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setShortLE(int index,
int value)
Sets the specified 16-bit short integer at the specified absolute
index in this buffer with the Little Endian Byte Order. |
ByteBuf |
DuplicatedByteBuf.setShortLE(int index,
int value)
Deprecated.
|
ByteBuf |
AbstractByteBuf.setShortLE(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setShortLE(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setShortLE(int index,
int value)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setShortLE(int index,
int value) |
ByteBuf |
SwappedByteBuf.setZero(int index,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.setZero(int index,
int length) |
abstract ByteBuf |
ByteBuf.setZero(int index,
int length)
Fills this buffer with NUL (0x00) starting at the specified
absolute
index . |
ByteBuf |
AbstractByteBuf.setZero(int index,
int length) |
ByteBuf |
EmptyByteBuf.setZero(int index,
int length) |
ByteBuf |
SwappedByteBuf.skipBytes(int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.skipBytes(int length)
Increases the current
readerIndex by the specified
length in this buffer. |
ByteBuf |
AbstractByteBuf.skipBytes(int length) |
ByteBuf |
EmptyByteBuf.skipBytes(int length) |
ByteBuf |
SwappedByteBuf.slice()
Deprecated.
|
abstract ByteBuf |
ByteBuf.slice()
Returns a slice of this buffer's readable bytes.
|
ByteBuf |
AbstractByteBuf.slice() |
ByteBuf |
EmptyByteBuf.slice() |
ByteBuf |
SwappedByteBuf.slice(int index,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.slice(int index,
int length)
Returns a slice of this buffer's sub-region.
|
ByteBuf |
DuplicatedByteBuf.slice(int index,
int length)
Deprecated.
|
ByteBuf |
AbstractByteBuf.slice(int index,
int length) |
ByteBuf |
ReadOnlyByteBuf.slice(int index,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.slice(int index,
int length) |
static ByteBuf |
ByteBufUtil.threadLocalDirectBuffer()
Returns a cached thread-local direct buffer, if available.
|
protected static ByteBuf |
AbstractByteBufAllocator.toLeakAwareBuffer(ByteBuf buf) |
ByteBuf |
SwappedByteBuf.touch()
Deprecated.
|
ByteBuf |
AbstractDerivedByteBuf.touch()
Deprecated.
|
abstract ByteBuf |
ByteBuf.touch() |
ByteBuf |
AbstractReferenceCountedByteBuf.touch() |
ByteBuf |
EmptyByteBuf.touch() |
ByteBuf |
SwappedByteBuf.touch(Object hint)
Deprecated.
|
ByteBuf |
AbstractDerivedByteBuf.touch(Object hint)
Deprecated.
|
abstract ByteBuf |
ByteBuf.touch(Object hint) |
ByteBuf |
AbstractReferenceCountedByteBuf.touch(Object hint) |
ByteBuf |
EmptyByteBuf.touch(Object hint) |
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf... buffers)
Deprecated.
|
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf buffer)
Deprecated.
Use
asReadOnly() . |
static ByteBuf |
Unpooled.unreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the given
ByteBuf which will just ignore release and retain calls. |
ByteBuf |
SwappedByteBuf.unwrap()
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.unwrap() |
abstract ByteBuf |
ByteBuf.unwrap()
Return the underlying buffer instance if this buffer is a wrapper of another buffer.
|
ByteBuf |
DuplicatedByteBuf.unwrap()
Deprecated.
|
ByteBuf |
CompositeByteBuf.unwrap() |
ByteBuf |
UnpooledHeapByteBuf.unwrap() |
ByteBuf |
ReadOnlyByteBuf.unwrap()
Deprecated.
|
ByteBuf |
EmptyByteBuf.unwrap() |
ByteBuf |
UnpooledDirectByteBuf.unwrap() |
static ByteBuf |
Unpooled.wrappedBuffer(byte[]... arrays)
Creates a new big-endian composite buffer which wraps the specified
arrays without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(byte[] array)
Creates a new big-endian buffer which wraps the specified
array . |
static ByteBuf |
Unpooled.wrappedBuffer(byte[] array,
int offset,
int length)
Creates a new big-endian buffer which wraps the sub-region of the
specified
array . |
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf buffer)
Creates a new buffer which wraps the specified buffer's readable bytes.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuffer... buffers)
Creates a new big-endian composite buffer which wraps the slices of the specified
NIO buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuffer buffer)
Creates a new buffer which wraps the specified NIO buffer's current
slice.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
byte[]... arrays)
Creates a new big-endian composite buffer which wraps the specified
arrays without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
ByteBuffer... buffers)
Creates a new big-endian composite buffer which wraps the slices of the specified
NIO buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(long memoryAddress,
int size,
boolean doFree)
Creates a new buffer which wraps the specified memory address.
|
static ByteBuf |
Unpooled.wrappedUnmodifiableBuffer(ByteBuf... buffers)
|
static ByteBuf |
ByteBufUtil.writeAscii(ByteBufAllocator alloc,
CharSequence seq)
|
ByteBuf |
SwappedByteBuf.writeBoolean(boolean value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBoolean(boolean value)
Sets the specified boolean at the current
writerIndex
and increases the writerIndex by 1 in this buffer. |
ByteBuf |
AbstractByteBuf.writeBoolean(boolean value) |
ByteBuf |
EmptyByteBuf.writeBoolean(boolean value) |
ByteBuf |
SwappedByteBuf.writeByte(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeByte(int value)
Sets the specified byte at the current
writerIndex
and increases the writerIndex by 1 in this buffer. |
ByteBuf |
AbstractByteBuf.writeByte(int value) |
ByteBuf |
EmptyByteBuf.writeByte(int value) |
ByteBuf |
SwappedByteBuf.writeBytes(byte[] src)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(byte[] src)
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 ). |
ByteBuf |
AbstractByteBuf.writeBytes(byte[] src) |
ByteBuf |
EmptyByteBuf.writeBytes(byte[] src) |
ByteBuf |
SwappedByteBuf.writeBytes(byte[] src,
int srcIndex,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(byte[] src,
int srcIndex,
int length)
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 ). |
ByteBuf |
AbstractByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src)
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. |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuffer src)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuffer src)
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. |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuffer src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuffer src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int length)
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 ). |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length)
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 ). |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeChar(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeChar(int value)
Sets the specified 2-byte UTF-16 character at the current
writerIndex and increases the writerIndex by 2
in this buffer. |
ByteBuf |
AbstractByteBuf.writeChar(int value) |
ByteBuf |
EmptyByteBuf.writeChar(int value) |
ByteBuf |
SwappedByteBuf.writeDouble(double value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeDouble(double value)
Sets the specified 64-bit floating point number at the current
writerIndex and increases the writerIndex by 8
in this buffer. |
ByteBuf |
AbstractByteBuf.writeDouble(double value) |
ByteBuf |
EmptyByteBuf.writeDouble(double value) |
ByteBuf |
ByteBuf.writeDoubleLE(double value)
Sets the specified 64-bit floating point number at the current
writerIndex in Little Endian Byte Order and increases
the writerIndex by 8 in this buffer. |
ByteBuf |
SwappedByteBuf.writeFloat(float value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeFloat(float value)
Sets the specified 32-bit floating point number at the current
writerIndex and increases the writerIndex by 4
in this buffer. |
ByteBuf |
AbstractByteBuf.writeFloat(float value) |
ByteBuf |
EmptyByteBuf.writeFloat(float value) |
ByteBuf |
ByteBuf.writeFloatLE(float value)
Sets the specified 32-bit floating point number at the current
writerIndex in Little Endian Byte Order and increases
the writerIndex by 4 in this buffer. |
ByteBuf |
SwappedByteBuf.writeInt(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeInt(int value)
Sets the specified 32-bit integer at the current
writerIndex
and increases the writerIndex by 4 in this buffer. |
ByteBuf |
AbstractByteBuf.writeInt(int value) |
ByteBuf |
EmptyByteBuf.writeInt(int value) |
ByteBuf |
SwappedByteBuf.writeIntLE(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeIntLE(int value)
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. |
ByteBuf |
AbstractByteBuf.writeIntLE(int value) |
ByteBuf |
EmptyByteBuf.writeIntLE(int value) |
ByteBuf |
SwappedByteBuf.writeLong(long value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeLong(long value)
Sets the specified 64-bit long integer at the current
writerIndex and increases the writerIndex by 8
in this buffer. |
ByteBuf |
AbstractByteBuf.writeLong(long value) |
ByteBuf |
EmptyByteBuf.writeLong(long value) |
ByteBuf |
SwappedByteBuf.writeLongLE(long value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeLongLE(long value)
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. |
ByteBuf |
AbstractByteBuf.writeLongLE(long value) |
ByteBuf |
EmptyByteBuf.writeLongLE(long value) |
ByteBuf |
SwappedByteBuf.writeMedium(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeMedium(int value)
Sets the specified 24-bit medium integer at the current
writerIndex and increases the writerIndex by 3
in this buffer. |
ByteBuf |
AbstractByteBuf.writeMedium(int value) |
ByteBuf |
EmptyByteBuf.writeMedium(int value) |
static ByteBuf |
ByteBufUtil.writeMediumBE(ByteBuf buf,
int mediumValue)
Writes a big-endian 24-bit medium integer to the buffer.
|
ByteBuf |
SwappedByteBuf.writeMediumLE(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeMediumLE(int value)
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. |
ByteBuf |
AbstractByteBuf.writeMediumLE(int value) |
ByteBuf |
EmptyByteBuf.writeMediumLE(int value) |
ByteBuf |
SwappedByteBuf.writerIndex(int writerIndex)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writerIndex(int writerIndex)
Sets the
writerIndex of this buffer. |
ByteBuf |
AbstractByteBuf.writerIndex(int writerIndex) |
ByteBuf |
EmptyByteBuf.writerIndex(int writerIndex) |
ByteBuf |
SwappedByteBuf.writeShort(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeShort(int value)
Sets the specified 16-bit short integer at the current
writerIndex and increases the writerIndex by 2
in this buffer. |
ByteBuf |
AbstractByteBuf.writeShort(int value) |
ByteBuf |
EmptyByteBuf.writeShort(int value) |
static ByteBuf |
ByteBufUtil.writeShortBE(ByteBuf buf,
int shortValue)
Writes a big-endian 16-bit short integer to the buffer.
|
ByteBuf |
SwappedByteBuf.writeShortLE(int value)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeShortLE(int value)
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. |
ByteBuf |
AbstractByteBuf.writeShortLE(int value) |
ByteBuf |
EmptyByteBuf.writeShortLE(int value) |
static ByteBuf |
ByteBufUtil.writeUtf8(ByteBufAllocator alloc,
CharSequence seq)
|
ByteBuf |
SwappedByteBuf.writeZero(int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.writeZero(int length) |
abstract ByteBuf |
ByteBuf.writeZero(int length)
Fills this buffer with NUL (0x00) starting at the current
writerIndex and increases the writerIndex by the
specified length . |
ByteBuf |
AbstractByteBuf.writeZero(int length) |
ByteBuf |
EmptyByteBuf.writeZero(int length) |
Modifier and Type | Method and Description |
---|---|
List<ByteBuf> |
CompositeByteBuf.decompose(int offset,
int length)
Same with
AbstractByteBuf.slice(int, int) except that this method returns a list. |
Iterator<ByteBuf> |
CompositeByteBuf.iterator() |
Modifier and Type | Method and Description |
---|---|
CompositeByteBuf |
CompositeByteBuf.addComponent(boolean increaseWriterIndex,
ByteBuf buffer)
|
CompositeByteBuf |
CompositeByteBuf.addComponent(boolean increaseWriterIndex,
int cIndex,
ByteBuf buffer)
Add the given
ByteBuf on the specific index and increase the writerIndex
if increaseWriterIndex is true . |
CompositeByteBuf |
CompositeByteBuf.addComponent(ByteBuf buffer)
Add the given
ByteBuf . |
CompositeByteBuf |
CompositeByteBuf.addComponent(int cIndex,
ByteBuf buffer)
Add the given
ByteBuf on the specific index. |
CompositeByteBuf |
CompositeByteBuf.addComponents(boolean increaseWriterIndex,
ByteBuf... buffers)
|
CompositeByteBuf |
CompositeByteBuf.addComponents(ByteBuf... buffers)
Add the given
ByteBuf s. |
CompositeByteBuf |
CompositeByteBuf.addComponents(int cIndex,
ByteBuf... buffers)
Add the given
ByteBuf s on the specific index
Be aware that this method does not increase the writerIndex of the CompositeByteBuf . |
static void |
ByteBufUtil.appendPrettyHexDump(StringBuilder dump,
ByteBuf buf)
Appends the prettified multi-line hexadecimal dump of the specified
ByteBuf to the specified
StringBuilder that is easy to read by humans. |
static void |
ByteBufUtil.appendPrettyHexDump(StringBuilder dump,
ByteBuf buf,
int offset,
int length)
Appends the prettified multi-line hexadecimal dump of the specified
ByteBuf to the specified
StringBuilder that is easy to read by humans, starting at the given offset using
the given length . |
static int |
ByteBufUtil.compare(ByteBuf bufferA,
ByteBuf bufferB)
Compares the two specified buffers as described in
compareTo(ByteBuf) . |
int |
SwappedByteBuf.compareTo(ByteBuf buffer)
Deprecated.
|
abstract int |
ByteBuf.compareTo(ByteBuf buffer)
Compares the content of the specified buffer to the content of this
buffer.
|
int |
AbstractByteBuf.compareTo(ByteBuf that) |
int |
EmptyByteBuf.compareTo(ByteBuf buffer) |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf... buffers)
Creates a new buffer whose content is a merged copy of the specified
buffers ' readable bytes. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf buffer)
Creates a new buffer whose content is a copy of the specified
buffer 's readable bytes. |
static void |
ByteBufUtil.copy(io.netty.util.AsciiString src,
ByteBuf dst)
|
static void |
ByteBufUtil.copy(io.netty.util.AsciiString src,
int srcIdx,
ByteBuf dst,
int length)
|
static void |
ByteBufUtil.copy(io.netty.util.AsciiString src,
int srcIdx,
ByteBuf dst,
int dstIdx,
int length)
|
static boolean |
ByteBufUtil.equals(ByteBuf bufferA,
ByteBuf bufferB)
Returns
true if and only if the two specified buffers are
identical to each other as described in equals(Object) . |
static boolean |
ByteBufUtil.equals(ByteBuf a,
int aStartIndex,
ByteBuf b,
int bStartIndex,
int length)
Returns
true if and only if the two specified buffers are
identical to each other for length bytes starting at aStartIndex
index for the a buffer and bStartIndex index for the b buffer. |
static byte[] |
ByteBufUtil.getBytes(ByteBuf buf)
Create a copy of the underlying storage from
buf into a byte array. |
static byte[] |
ByteBufUtil.getBytes(ByteBuf buf,
int start,
int length)
Create a copy of the underlying storage from
buf into a byte array. |
static byte[] |
ByteBufUtil.getBytes(ByteBuf buf,
int start,
int length,
boolean copy)
Return an array of the underlying storage from
buf into a byte array. |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst)
Deprecated.
|
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index until the destination becomes
non-writable. |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
static int |
ByteBufUtil.hashCode(ByteBuf buffer)
Calculates the hash code of the specified buffer.
|
static String |
ByteBufUtil.hexDump(ByteBuf buffer)
Returns a hex dump
of the specified buffer's readable bytes.
|
static String |
ByteBufUtil.hexDump(ByteBuf buffer,
int fromIndex,
int length)
Returns a hex dump
of the specified buffer's sub-region.
|
static int |
ByteBufUtil.indexOf(ByteBuf needle,
ByteBuf haystack)
Returns the reader index of needle in haystack, or -1 if needle is not in haystack.
|
static int |
ByteBufUtil.indexOf(ByteBuf buffer,
int fromIndex,
int toIndex,
byte value)
The default implementation of
indexOf(int, int, byte) . |
static boolean |
ByteBufUtil.isText(ByteBuf buf,
Charset charset)
|
static boolean |
ByteBufUtil.isText(ByteBuf buf,
int index,
int length,
Charset charset)
|
static String |
ByteBufUtil.prettyHexDump(ByteBuf buffer)
Returns a multi-line hexadecimal dump of the specified
ByteBuf that is easy to read by humans. |
static String |
ByteBufUtil.prettyHexDump(ByteBuf buffer,
int offset,
int length)
Returns a multi-line hexadecimal dump of the specified
ByteBuf that is easy to read by humans,
starting at the given offset using the given length . |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst)
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. |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst) |
static ByteBuf |
ByteBufUtil.readBytes(ByteBufAllocator alloc,
ByteBuf buffer,
int length)
Read the given amount of bytes into a new
ByteBuf that is allocated from the ByteBufAllocator . |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int length)
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 ). |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length)
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 ). |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBufHolder |
ByteBufHolder.replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
ByteBufHolder |
DefaultByteBufHolder.replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
static int |
ByteBufUtil.reserveAndWriteUtf8(ByteBuf buf,
CharSequence seq,
int reserveBytes)
|
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index until the source buffer becomes
unreadable. |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
static ByteBuf |
ByteBufUtil.setShortBE(ByteBuf buf,
int index,
int shortValue)
Sets a big-endian 16-bit short integer to the buffer.
|
protected static ByteBuf |
AbstractByteBufAllocator.toLeakAwareBuffer(ByteBuf buf) |
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf... buffers)
Deprecated.
|
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf buffer)
Deprecated.
Use
asReadOnly() . |
static ByteBuf |
Unpooled.unreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the given
ByteBuf which will just ignore release and retain calls. |
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf buffer)
Creates a new buffer which wraps the specified buffer's readable bytes.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedUnmodifiableBuffer(ByteBuf... buffers)
|
static int |
ByteBufUtil.writeAscii(ByteBuf buf,
CharSequence seq)
|
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src)
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. |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int length)
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 ). |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length)
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 ). |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
static ByteBuf |
ByteBufUtil.writeMediumBE(ByteBuf buf,
int mediumValue)
Writes a big-endian 24-bit medium integer to the buffer.
|
static ByteBuf |
ByteBufUtil.writeShortBE(ByteBuf buf,
int shortValue)
Writes a big-endian 16-bit short integer to the buffer.
|
static int |
ByteBufUtil.writeUtf8(ByteBuf buf,
CharSequence seq)
|
Modifier and Type | Method and Description |
---|---|
CompositeByteBuf |
CompositeByteBuf.addComponents(boolean increaseWriterIndex,
Iterable<ByteBuf> buffers)
|
CompositeByteBuf |
CompositeByteBuf.addComponents(int cIndex,
Iterable<ByteBuf> buffers)
Add the given
ByteBuf s on the specific index
Be aware that this method does not increase the writerIndex of the CompositeByteBuf . |
CompositeByteBuf |
CompositeByteBuf.addComponents(Iterable<ByteBuf> buffers)
Add the given
ByteBuf s. |
Constructor and Description |
---|
ByteBufInputStream(ByteBuf buffer)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at the current
writerIndex . |
ByteBufInputStream(ByteBuf buffer,
boolean releaseOnClose)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at the current
writerIndex . |
ByteBufInputStream(ByteBuf buffer,
int length)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at
readerIndex + length . |
ByteBufInputStream(ByteBuf buffer,
int length,
boolean releaseOnClose)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at
readerIndex + length . |
ByteBufOutputStream(ByteBuf buffer)
Creates a new stream which writes data to the specified
buffer . |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf... buffers) |
DefaultByteBufHolder(ByteBuf data) |
DuplicatedByteBuf(ByteBuf buffer)
Deprecated.
|
ReadOnlyByteBuf(ByteBuf buffer)
Deprecated.
|
SlicedByteBuf(ByteBuf buffer,
int index,
int length)
Deprecated.
|
SwappedByteBuf(ByteBuf buf)
Deprecated.
|
Constructor and Description |
---|
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
Iterable<ByteBuf> buffers) |
Copyright © 2008–2019 The Netty Project. All rights reserved.