Package | Description |
---|---|
io.netty.buffer |
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.nio |
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.oio |
Old blocking I/O based channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.channel.sctp |
Abstract SCTP socket interfaces which extend the core channel API.
|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.handler.codec |
Extensible decoder and its common implementations which deal with the
packet fragmentation and reassembly issue found in a stream-based transport
such as TCP/IP.
|
io.netty.handler.codec.base64 | |
io.netty.handler.codec.bytes |
Encoder and decoder which transform an array of bytes into a
ByteBuf and vice versa. |
io.netty.handler.codec.compression | |
io.netty.handler.codec.haproxy |
Decodes an HAProxy proxy protocol header
|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.multipart |
HTTP multipart support.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
io.netty.handler.codec.rtsp |
An RTSP
extension based on the HTTP codec.
|
io.netty.handler.codec.sctp |
Decoder and encoders to manage message completion and multi-streaming codec in SCTP/IP.
|
io.netty.handler.codec.serialization |
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa. |
io.netty.handler.codec.socks |
Encoder, decoder and their related message types for Socks.
|
io.netty.handler.codec.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
io.netty.handler.codec.string |
Encoder and decoder which transform a
String into a
ByteBuf and vice versa. |
io.netty.handler.logging |
Logs a
io.netty.channel.ChannelEvent for debugging purpose. |
io.netty.handler.ssl |
SSL ·
TLS implementation based on
SSLEngine |
io.netty.handler.stream |
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError . |
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. |
(package private) class |
AbstractUnsafeSwappedByteBuf
Special
SwappedByteBuf for ByteBuf s that is using unsafe. |
(package private) class |
AdvancedLeakAwareByteBuf |
(package private) class |
AdvancedLeakAwareCompositeByteBuf |
(package private) static class |
ByteBufUtil.ThreadLocalDirectByteBuf |
(package private) static class |
ByteBufUtil.ThreadLocalUnsafeDirectByteBuf |
class |
CompositeByteBuf
A virtual buffer which shows multiple buffers as a single merged buffer.
|
(package private) class |
DuplicatedAbstractByteBuf
DuplicatedByteBuf implementation that can do optimizations because it knows the duplicated buffer
is of type AbstractByteBuf . |
class |
DuplicatedByteBuf
Deprecated.
Do not use.
|
class |
EmptyByteBuf
An empty
ByteBuf whose capacity and maximum capacity are all 0 . |
(package private) class |
FixedCompositeByteBuf
|
(package private) class |
PooledByteBuf<T> |
(package private) class |
PooledDirectByteBuf |
(package private) class |
PooledHeapByteBuf |
(package private) class |
PooledUnsafeDirectByteBuf |
(package private) class |
PooledUnsafeHeapByteBuf |
class |
ReadOnlyByteBuf
Deprecated.
Do not use.
|
(package private) class |
ReadOnlyByteBufferBuf
Read-only ByteBuf which wraps a read-only ByteBuffer.
|
(package private) class |
ReadOnlyUnsafeDirectByteBuf
Read-only ByteBuf which wraps a read-only direct ByteBuffer and use unsafe for best performance.
|
(package private) class |
SimpleLeakAwareByteBuf |
(package private) class |
SimpleLeakAwareCompositeByteBuf |
(package private) class |
SlicedAbstractByteBuf
A special
SlicedByteBuf that can make optimizations because it knows the sliced buffer is of type
AbstractByteBuf . |
class |
SlicedByteBuf
Deprecated.
Do not use.
|
class |
SwappedByteBuf
Wrapper which swap the
ByteOrder of a ByteBuf . |
class |
UnpooledDirectByteBuf
A NIO
ByteBuffer based buffer. |
class |
UnpooledHeapByteBuf
Big endian Java heap buffer implementation.
|
class |
UnpooledUnsafeDirectByteBuf
A NIO
ByteBuffer based buffer. |
(package private) class |
UnpooledUnsafeHeapByteBuf |
(package private) class |
UnpooledUnsafeNoCleanerDirectByteBuf |
(package private) class |
UnreleasableByteBuf
A
ByteBuf implementation that wraps another buffer to prevent a user from increasing or decreasing the
wrapped buffer's reference count. |
(package private) class |
UnsafeDirectSwappedByteBuf
|
(package private) class |
UnsafeHeapSwappedByteBuf
Special
SwappedByteBuf for ByteBuf s that use unsafe to access the byte array. |
(package private) class |
WrappedByteBuf
Wraps another
ByteBuf . |
(package private) class |
WrappedCompositeByteBuf |
(package private) class |
WrappedUnpooledUnsafeDirectByteBuf |
Modifier and Type | Field and Description |
---|---|
(package private) ByteBuf |
CompositeByteBuf.Component.buf |
private ByteBuf |
FixedCompositeByteBuf.Component.buf |
protected ByteBuf |
WrappedByteBuf.buf |
private ByteBuf |
SwappedByteBuf.buf |
private ByteBuf |
ReadOnlyByteBuf.buffer
Deprecated.
|
private ByteBuf |
SlicedByteBuf.buffer
Deprecated.
|
private ByteBuf |
ByteBufOutputStream.buffer |
private ByteBuf |
ByteBufInputStream.buffer |
private ByteBuf |
DuplicatedByteBuf.buffer
Deprecated.
|
private ByteBuf |
DefaultByteBufHolder.data |
private static ByteBuf[] |
FixedCompositeByteBuf.EMPTY |
static ByteBuf |
Unpooled.EMPTY_BUFFER
A buffer whose capacity is
0 . |
private ByteBuf |
AbstractByteBufAllocator.emptyBuf |
Modifier and Type | Field and Description |
---|---|
private static java.util.Iterator<ByteBuf> |
CompositeByteBuf.EMPTY_ITERATOR |
(package private) static ResourceLeakDetector<ByteBuf> |
AbstractByteBuf.leakDetector |
Modifier and Type | Method and Description |
---|---|
private ByteBuf |
CompositeByteBuf.allocBuffer(int capacity) |
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. |
private ByteBuf |
FixedCompositeByteBuf.buffer(int i)
Return the
ByteBuf stored at the given index of the array. |
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 |
UnpooledUnsafeDirectByteBuf.capacity(int newCapacity) |
ByteBuf |
EmptyByteBuf.capacity(int newCapacity) |
ByteBuf |
ReadOnlyByteBuf.capacity(int newCapacity)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.capacity(int newCapacity) |
ByteBuf |
ReadOnlyByteBufferBuf.capacity(int newCapacity) |
ByteBuf |
SlicedByteBuf.capacity(int newCapacity)
Deprecated.
|
ByteBuf |
PooledByteBuf.capacity(int newCapacity) |
ByteBuf |
UnpooledDirectByteBuf.capacity(int newCapacity) |
ByteBuf |
FixedCompositeByteBuf.capacity(int newCapacity) |
abstract ByteBuf |
ByteBuf.capacity(int newCapacity)
Adjusts the capacity of this buffer.
|
ByteBuf |
WrappedByteBuf.capacity(int newCapacity) |
ByteBuf |
DuplicatedByteBuf.capacity(int newCapacity)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.capacity(int newCapacity) |
ByteBuf |
SwappedByteBuf.capacity(int newCapacity) |
ByteBuf |
UnpooledUnsafeNoCleanerDirectByteBuf.capacity(int newCapacity) |
private ByteBuf |
EmptyByteBuf.checkIndex(int index) |
private ByteBuf |
EmptyByteBuf.checkIndex(int index,
int length) |
private ByteBuf |
EmptyByteBuf.checkLength(int length) |
ByteBuf |
AbstractByteBuf.clear() |
ByteBuf |
EmptyByteBuf.clear() |
abstract ByteBuf |
ByteBuf.clear()
Sets the
readerIndex and writerIndex of this buffer to
0 . |
ByteBuf |
WrappedByteBuf.clear() |
ByteBuf |
SwappedByteBuf.clear() |
ByteBuf |
CompositeByteBuf.component(int cIndex)
Return the
ByteBuf on the specified index |
ByteBuf |
WrappedCompositeByteBuf.component(int cIndex) |
ByteBuf |
CompositeByteBuf.componentAtOffset(int offset)
Return the
ByteBuf on the specified index |
ByteBuf |
WrappedCompositeByteBuf.componentAtOffset(int offset) |
ByteBuf |
DefaultByteBufHolder.content() |
ByteBuf |
ByteBufHolder.content()
Return the data which is held by this
ByteBufHolder . |
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(java.nio.ByteBuffer... buffers)
Creates a new buffer whose content is a merged copy of the specified
buffers ' slices. |
static ByteBuf |
Unpooled.copiedBuffer(java.nio.ByteBuffer buffer)
Creates a new buffer whose content is a copy of the specified
buffer 's current slice. |
static ByteBuf |
Unpooled.copiedBuffer(char[] array,
java.nio.charset.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,
java.nio.charset.Charset charset)
Creates a new big-endian buffer whose content is a subregion of
the specified
array encoded in the specified charset . |
private static ByteBuf |
Unpooled.copiedBuffer(java.nio.CharBuffer buffer,
java.nio.charset.Charset charset) |
static ByteBuf |
Unpooled.copiedBuffer(java.lang.CharSequence string,
java.nio.charset.Charset charset)
Creates a new big-endian buffer whose content is the specified
string encoded in the specified charset . |
static ByteBuf |
Unpooled.copiedBuffer(java.lang.CharSequence string,
int offset,
int length,
java.nio.charset.Charset charset)
Creates a new big-endian buffer whose content is a subregion of
the specified
string encoded in the specified charset . |
ByteBuf |
AbstractByteBuf.copy() |
ByteBuf |
EmptyByteBuf.copy() |
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.copy() |
ByteBuf |
AdvancedLeakAwareByteBuf.copy() |
ByteBuf |
WrappedCompositeByteBuf.copy() |
abstract ByteBuf |
ByteBuf.copy()
Returns a copy of this buffer's readable bytes.
|
ByteBuf |
WrappedByteBuf.copy() |
ByteBuf |
SwappedByteBuf.copy() |
(package private) static ByteBuf |
UnsafeByteBufUtil.copy(AbstractByteBuf buf,
long addr,
int index,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.copy(int index,
int length) |
ByteBuf |
EmptyByteBuf.copy(int index,
int length) |
ByteBuf |
PooledDirectByteBuf.copy(int index,
int length) |
ByteBuf |
CompositeByteBuf.copy(int index,
int length) |
ByteBuf |
ReadOnlyUnsafeDirectByteBuf.copy(int index,
int length) |
ByteBuf |
ReadOnlyByteBuf.copy(int index,
int length)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.copy(int index,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.copy(int index,
int length) |
ByteBuf |
WrappedCompositeByteBuf.copy(int index,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.copy(int index,
int length) |
ByteBuf |
SlicedByteBuf.copy(int index,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.copy(int index,
int length) |
ByteBuf |
FixedCompositeByteBuf.copy(int index,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.copy(int index,
int length) |
ByteBuf |
PooledHeapByteBuf.copy(int index,
int length) |
abstract ByteBuf |
ByteBuf.copy(int index,
int length)
Returns a copy of this buffer's sub-region.
|
ByteBuf |
WrappedByteBuf.copy(int index,
int length) |
ByteBuf |
DuplicatedByteBuf.copy(int index,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.copy(int index,
int length) |
ByteBuf |
SwappedByteBuf.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 |
AbstractByteBuf.discardReadBytes() |
ByteBuf |
EmptyByteBuf.discardReadBytes() |
ByteBuf |
ReadOnlyByteBuf.discardReadBytes()
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.discardReadBytes() |
ByteBuf |
FixedCompositeByteBuf.discardReadBytes() |
abstract ByteBuf |
ByteBuf.discardReadBytes()
Discards the bytes between the 0th index and
readerIndex . |
ByteBuf |
WrappedByteBuf.discardReadBytes() |
ByteBuf |
SwappedByteBuf.discardReadBytes() |
ByteBuf |
AbstractByteBuf.discardSomeReadBytes() |
ByteBuf |
EmptyByteBuf.discardSomeReadBytes() |
ByteBuf |
AdvancedLeakAwareByteBuf.discardSomeReadBytes() |
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 |
WrappedByteBuf.discardSomeReadBytes() |
ByteBuf |
SwappedByteBuf.discardSomeReadBytes() |
ByteBuf |
AbstractByteBuf.duplicate() |
ByteBuf |
EmptyByteBuf.duplicate() |
ByteBuf |
UnreleasableByteBuf.duplicate() |
ByteBuf |
SimpleLeakAwareCompositeByteBuf.duplicate() |
ByteBuf |
SimpleLeakAwareByteBuf.duplicate() |
ByteBuf |
ReadOnlyByteBuf.duplicate()
Deprecated.
|
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.duplicate() |
ByteBuf |
AdvancedLeakAwareByteBuf.duplicate() |
ByteBuf |
WrappedCompositeByteBuf.duplicate() |
ByteBuf |
SlicedByteBuf.duplicate()
Deprecated.
|
abstract ByteBuf |
ByteBuf.duplicate()
Returns a buffer which shares the whole region of this buffer.
|
ByteBuf |
WrappedByteBuf.duplicate() |
ByteBuf |
SwappedByteBuf.duplicate() |
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
java.nio.CharBuffer src,
java.nio.charset.Charset charset)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
(package private) static ByteBuf |
ByteBufUtil.encodeString0(ByteBufAllocator alloc,
boolean enforceHeap,
java.nio.CharBuffer src,
java.nio.charset.Charset charset) |
ByteBuf |
AbstractByteBuf.ensureWritable(int minWritableBytes) |
ByteBuf |
EmptyByteBuf.ensureWritable(int minWritableBytes) |
ByteBuf |
AdvancedLeakAwareByteBuf.ensureWritable(int minWritableBytes) |
abstract ByteBuf |
ByteBuf.ensureWritable(int minWritableBytes)
Makes sure the number of the writable bytes
is equal to or greater than the specified value.
|
ByteBuf |
WrappedByteBuf.ensureWritable(int minWritableBytes) |
ByteBuf |
SwappedByteBuf.ensureWritable(int writableBytes) |
ByteBuf |
AbstractByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
byte[] dst) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
byte[] dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
WrappedByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
PooledDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyUnsafeDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
FixedCompositeByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
PooledHeapByteBuf.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 |
WrappedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
ByteBuf dst) |
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 |
WrappedByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
PooledDirectByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
ReadOnlyUnsafeDirectByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
java.nio.ByteBuffer dst)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
ReadOnlyByteBufferBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
java.nio.ByteBuffer dst)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
FixedCompositeByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
PooledUnsafeDirectByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
PooledHeapByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
java.nio.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 |
WrappedByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
java.nio.ByteBuffer dst)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
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 |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
PooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
FixedCompositeByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
PooledHeapByteBuf.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 |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
PooledDirectByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
java.io.OutputStream out,
int length)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
java.io.OutputStream out,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
FixedCompositeByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
PooledHeapByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
java.io.OutputStream out,
int length)
Transfers this buffer's data to the specified stream starting at the
specified absolute
index . |
ByteBuf |
WrappedByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
java.io.OutputStream out,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
java.io.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 |
WrappedCompositeByteBuf.internalComponent(int cIndex) |
ByteBuf |
CompositeByteBuf.internalComponentAtOffset(int offset)
Return the internal
ByteBuf on the specified offset. |
ByteBuf |
WrappedCompositeByteBuf.internalComponentAtOffset(int 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 |
AbstractByteBuf.markReaderIndex() |
ByteBuf |
EmptyByteBuf.markReaderIndex() |
abstract ByteBuf |
ByteBuf.markReaderIndex()
Marks the current
readerIndex in this buffer. |
ByteBuf |
WrappedByteBuf.markReaderIndex() |
ByteBuf |
SwappedByteBuf.markReaderIndex() |
ByteBuf |
AbstractByteBuf.markWriterIndex() |
ByteBuf |
EmptyByteBuf.markWriterIndex() |
abstract ByteBuf |
ByteBuf.markWriterIndex()
Marks the current
writerIndex in this buffer. |
ByteBuf |
WrappedByteBuf.markWriterIndex() |
ByteBuf |
SwappedByteBuf.markWriterIndex() |
protected ByteBuf |
PooledByteBufAllocator.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 |
UnpooledByteBufAllocator.newDirectBuffer(int initialCapacity,
int maxCapacity) |
protected ByteBuf |
PooledByteBufAllocator.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 |
UnpooledByteBufAllocator.newHeapBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
CompositeByteBuf.CompositeByteBufIterator.next() |
ByteBuf |
AbstractByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
EmptyByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
UnreleasableByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
SimpleLeakAwareCompositeByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
SimpleLeakAwareByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
AdvancedLeakAwareByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
WrappedCompositeByteBuf.order(java.nio.ByteOrder endianness) |
abstract ByteBuf |
ByteBuf.order(java.nio.ByteOrder endianness)
Returns a buffer with the specified
endianness which shares the whole region,
indexes, and marks of this buffer. |
ByteBuf |
WrappedByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
SwappedByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
AbstractByteBuf.readBytes(byte[] dst) |
ByteBuf |
EmptyByteBuf.readBytes(byte[] dst) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(byte[] dst) |
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 |
WrappedByteBuf.readBytes(byte[] dst) |
ByteBuf |
SwappedByteBuf.readBytes(byte[] dst) |
ByteBuf |
AbstractByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
PooledDirectByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
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 |
WrappedByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(ByteBuf dst) |
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 |
WrappedByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
SwappedByteBuf.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 |
UnpooledUnsafeDirectByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
AbstractByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
EmptyByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
PooledDirectByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
PooledUnsafeDirectByteBuf.readBytes(java.nio.ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.readBytes(java.nio.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 |
WrappedByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
SwappedByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(ByteBuf dst,
int length) |
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 |
WrappedByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
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 |
WrappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
AbstractByteBuf.readBytes(int length) |
ByteBuf |
EmptyByteBuf.readBytes(int length) |
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.readBytes(int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(int length) |
ByteBuf |
WrappedCompositeByteBuf.readBytes(int length) |
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 |
WrappedByteBuf.readBytes(int length) |
ByteBuf |
SwappedByteBuf.readBytes(int length) |
ByteBuf |
AbstractByteBuf.readBytes(java.io.OutputStream out,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(java.io.OutputStream out,
int length) |
ByteBuf |
PooledDirectByteBuf.readBytes(java.io.OutputStream out,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(java.io.OutputStream out,
int length) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(java.io.OutputStream out,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(java.io.OutputStream out,
int length)
Transfers this buffer's data to the specified stream starting at the
current
readerIndex . |
ByteBuf |
WrappedByteBuf.readBytes(java.io.OutputStream out,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(java.io.OutputStream out,
int length) |
ByteBuf |
AbstractByteBuf.readerIndex(int readerIndex) |
ByteBuf |
EmptyByteBuf.readerIndex(int readerIndex) |
abstract ByteBuf |
ByteBuf.readerIndex(int readerIndex)
Sets the
readerIndex of this buffer. |
ByteBuf |
WrappedByteBuf.readerIndex(int readerIndex) |
ByteBuf |
SwappedByteBuf.readerIndex(int readerIndex) |
ByteBuf |
AbstractByteBuf.readSlice(int length) |
ByteBuf |
EmptyByteBuf.readSlice(int length) |
ByteBuf |
UnreleasableByteBuf.readSlice(int length) |
ByteBuf |
SimpleLeakAwareCompositeByteBuf.readSlice(int length) |
ByteBuf |
SimpleLeakAwareByteBuf.readSlice(int length) |
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.readSlice(int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readSlice(int length) |
ByteBuf |
WrappedCompositeByteBuf.readSlice(int length) |
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 |
WrappedByteBuf.readSlice(int length) |
ByteBuf |
SwappedByteBuf.readSlice(int length) |
ByteBuf |
AbstractByteBuf.resetReaderIndex() |
ByteBuf |
EmptyByteBuf.resetReaderIndex() |
abstract ByteBuf |
ByteBuf.resetReaderIndex()
Repositions the current
readerIndex to the marked
readerIndex in this buffer. |
ByteBuf |
WrappedByteBuf.resetReaderIndex() |
ByteBuf |
SwappedByteBuf.resetReaderIndex() |
ByteBuf |
AbstractByteBuf.resetWriterIndex() |
ByteBuf |
EmptyByteBuf.resetWriterIndex() |
abstract ByteBuf |
ByteBuf.resetWriterIndex()
Repositions the current
writerIndex to the marked
writerIndex in this buffer. |
ByteBuf |
WrappedByteBuf.resetWriterIndex() |
ByteBuf |
SwappedByteBuf.resetWriterIndex() |
ByteBuf |
EmptyByteBuf.retain() |
ByteBuf |
AbstractReferenceCountedByteBuf.retain() |
ByteBuf |
UnreleasableByteBuf.retain() |
ByteBuf |
AdvancedLeakAwareByteBuf.retain() |
ByteBuf |
AbstractDerivedByteBuf.retain()
Deprecated.
|
abstract ByteBuf |
ByteBuf.retain() |
ByteBuf |
WrappedByteBuf.retain() |
ByteBuf |
SwappedByteBuf.retain() |
ByteBuf |
EmptyByteBuf.retain(int increment) |
ByteBuf |
AbstractReferenceCountedByteBuf.retain(int increment) |
ByteBuf |
UnreleasableByteBuf.retain(int increment) |
ByteBuf |
AdvancedLeakAwareByteBuf.retain(int increment) |
ByteBuf |
AbstractDerivedByteBuf.retain(int increment)
Deprecated.
|
abstract ByteBuf |
ByteBuf.retain(int increment) |
ByteBuf |
WrappedByteBuf.retain(int increment) |
ByteBuf |
SwappedByteBuf.retain(int increment) |
private ByteBuf |
AbstractReferenceCountedByteBuf.retain0(int increment) |
ByteBuf |
AbstractByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
EmptyByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
AdvancedLeakAwareByteBuf.setBoolean(int index,
boolean value) |
abstract ByteBuf |
ByteBuf.setBoolean(int index,
boolean value)
Sets the specified boolean at the specified absolute
index in this
buffer. |
ByteBuf |
WrappedByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
SwappedByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
AbstractByteBuf.setByte(int index,
int value) |
ByteBuf |
UnpooledUnsafeHeapByteBuf.setByte(int index,
int value) |
ByteBuf |
EmptyByteBuf.setByte(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setByte(int index,
int value)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setByte(int index,
int value) |
ByteBuf |
ReadOnlyByteBufferBuf.setByte(int index,
int value) |
ByteBuf |
SlicedByteBuf.setByte(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setByte(int index,
int value) |
ByteBuf |
FixedCompositeByteBuf.setByte(int index,
int value) |
abstract ByteBuf |
ByteBuf.setByte(int index,
int value)
Sets the specified byte at the specified absolute
index in this
buffer. |
ByteBuf |
WrappedByteBuf.setByte(int index,
int value) |
ByteBuf |
DuplicatedByteBuf.setByte(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setByte(int index,
int value) |
ByteBuf |
SwappedByteBuf.setByte(int index,
int value) |
ByteBuf |
AbstractByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
byte[] src) |
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 |
WrappedByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
PooledDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
FixedCompositeByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
PooledHeapByteBuf.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 |
WrappedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
ByteBuf src) |
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 |
WrappedByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
PooledDirectByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
java.nio.ByteBuffer src)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
ReadOnlyByteBufferBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
java.nio.ByteBuffer src)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
FixedCompositeByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
PooledUnsafeDirectByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
PooledHeapByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
java.nio.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 |
WrappedByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
java.nio.ByteBuffer src)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
ByteBuf src,
int length) |
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 |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
PooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
FixedCompositeByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
PooledHeapByteBuf.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 |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
AbstractByteBuf.setChar(int index,
int value) |
ByteBuf |
EmptyByteBuf.setChar(int index,
int value) |
ByteBuf |
AdvancedLeakAwareByteBuf.setChar(int index,
int value) |
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 |
WrappedByteBuf.setChar(int index,
int value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.setChar(int index,
int value) |
ByteBuf |
SwappedByteBuf.setChar(int index,
int value) |
ByteBuf |
AbstractByteBuf.setDouble(int index,
double value) |
ByteBuf |
EmptyByteBuf.setDouble(int index,
double value) |
ByteBuf |
AdvancedLeakAwareByteBuf.setDouble(int index,
double value) |
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 |
WrappedByteBuf.setDouble(int index,
double value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.setDouble(int index,
double value) |
ByteBuf |
SwappedByteBuf.setDouble(int index,
double value) |
ByteBuf |
AbstractByteBuf.setFloat(int index,
float value) |
ByteBuf |
EmptyByteBuf.setFloat(int index,
float value) |
ByteBuf |
AdvancedLeakAwareByteBuf.setFloat(int index,
float value) |
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 |
WrappedByteBuf.setFloat(int index,
float value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.setFloat(int index,
float value) |
ByteBuf |
SwappedByteBuf.setFloat(int index,
float value) |
ByteBuf |
AbstractByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
EmptyByteBuf.setIndex(int readerIndex,
int writerIndex) |
abstract ByteBuf |
ByteBuf.setIndex(int readerIndex,
int writerIndex)
Sets the
readerIndex and writerIndex of this buffer
in one shot. |
ByteBuf |
WrappedByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
SwappedByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
AbstractByteBuf.setInt(int index,
int value) |
ByteBuf |
UnpooledUnsafeHeapByteBuf.setInt(int index,
int value) |
ByteBuf |
EmptyByteBuf.setInt(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setInt(int index,
int value)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setInt(int index,
int value) |
ByteBuf |
ReadOnlyByteBufferBuf.setInt(int index,
int value) |
ByteBuf |
SlicedByteBuf.setInt(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setInt(int index,
int value) |
ByteBuf |
FixedCompositeByteBuf.setInt(int index,
int value) |
abstract ByteBuf |
ByteBuf.setInt(int index,
int value)
Sets the specified 32-bit integer at the specified absolute
index in this buffer. |
ByteBuf |
WrappedByteBuf.setInt(int index,
int value) |
ByteBuf |
DuplicatedByteBuf.setInt(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setInt(int index,
int value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.setInt(int index,
int value) |
ByteBuf |
SwappedByteBuf.setInt(int index,
int value) |
ByteBuf |
AbstractByteBuf.setLong(int index,
long value) |
ByteBuf |
UnpooledUnsafeHeapByteBuf.setLong(int index,
long value) |
ByteBuf |
EmptyByteBuf.setLong(int index,
long value) |
ByteBuf |
ReadOnlyByteBuf.setLong(int index,
long value)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setLong(int index,
long value) |
ByteBuf |
ReadOnlyByteBufferBuf.setLong(int index,
long value) |
ByteBuf |
SlicedByteBuf.setLong(int index,
long value)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setLong(int index,
long value) |
ByteBuf |
FixedCompositeByteBuf.setLong(int index,
long value) |
abstract ByteBuf |
ByteBuf.setLong(int index,
long value)
Sets the specified 64-bit long integer at the specified absolute
index in this buffer. |
ByteBuf |
WrappedByteBuf.setLong(int index,
long value) |
ByteBuf |
DuplicatedByteBuf.setLong(int index,
long value)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setLong(int index,
long value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.setLong(int index,
long value) |
ByteBuf |
SwappedByteBuf.setLong(int index,
long value) |
ByteBuf |
AbstractByteBuf.setMedium(int index,
int value) |
ByteBuf |
UnpooledUnsafeHeapByteBuf.setMedium(int index,
int value) |
ByteBuf |
EmptyByteBuf.setMedium(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setMedium(int index,
int value)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setMedium(int index,
int value) |
ByteBuf |
ReadOnlyByteBufferBuf.setMedium(int index,
int value) |
ByteBuf |
SlicedByteBuf.setMedium(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setMedium(int index,
int value) |
ByteBuf |
FixedCompositeByteBuf.setMedium(int index,
int value) |
abstract ByteBuf |
ByteBuf.setMedium(int index,
int value)
Sets the specified 24-bit medium integer at the specified absolute
index in this buffer. |
ByteBuf |
WrappedByteBuf.setMedium(int index,
int value) |
ByteBuf |
DuplicatedByteBuf.setMedium(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setMedium(int index,
int value) |
ByteBuf |
SwappedByteBuf.setMedium(int index,
int value) |
ByteBuf |
AbstractByteBuf.setShort(int index,
int value) |
ByteBuf |
UnpooledUnsafeHeapByteBuf.setShort(int index,
int value) |
ByteBuf |
EmptyByteBuf.setShort(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setShort(int index,
int value)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareByteBuf.setShort(int index,
int value) |
ByteBuf |
ReadOnlyByteBufferBuf.setShort(int index,
int value) |
ByteBuf |
SlicedByteBuf.setShort(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setShort(int index,
int value) |
ByteBuf |
FixedCompositeByteBuf.setShort(int index,
int value) |
abstract ByteBuf |
ByteBuf.setShort(int index,
int value)
Sets the specified 16-bit short integer at the specified absolute
index in this buffer. |
ByteBuf |
WrappedByteBuf.setShort(int index,
int value) |
ByteBuf |
DuplicatedByteBuf.setShort(int index,
int value)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setShort(int index,
int value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.setShort(int index,
int value) |
ByteBuf |
SwappedByteBuf.setShort(int index,
int value) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setZero(int index,
int length) |
ByteBuf |
AbstractByteBuf.setZero(int index,
int length) |
ByteBuf |
UnpooledUnsafeHeapByteBuf.setZero(int index,
int length) |
ByteBuf |
EmptyByteBuf.setZero(int index,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.setZero(int index,
int length) |
ByteBuf |
PooledUnsafeHeapByteBuf.setZero(int index,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.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 |
WrappedByteBuf.setZero(int index,
int length) |
ByteBuf |
SwappedByteBuf.setZero(int index,
int length) |
ByteBuf |
AbstractByteBuf.skipBytes(int length) |
ByteBuf |
EmptyByteBuf.skipBytes(int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.skipBytes(int length) |
abstract ByteBuf |
ByteBuf.skipBytes(int length)
Increases the current
readerIndex by the specified
length in this buffer. |
ByteBuf |
WrappedByteBuf.skipBytes(int length) |
ByteBuf |
SwappedByteBuf.skipBytes(int length) |
ByteBuf |
AbstractByteBuf.slice() |
ByteBuf |
EmptyByteBuf.slice() |
ByteBuf |
UnreleasableByteBuf.slice() |
ByteBuf |
SimpleLeakAwareCompositeByteBuf.slice() |
ByteBuf |
SimpleLeakAwareByteBuf.slice() |
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.slice() |
ByteBuf |
AdvancedLeakAwareByteBuf.slice() |
ByteBuf |
WrappedCompositeByteBuf.slice() |
abstract ByteBuf |
ByteBuf.slice()
Returns a slice of this buffer's readable bytes.
|
ByteBuf |
WrappedByteBuf.slice() |
ByteBuf |
SwappedByteBuf.slice() |
ByteBuf |
AbstractByteBuf.slice(int index,
int length) |
ByteBuf |
EmptyByteBuf.slice(int index,
int length) |
ByteBuf |
UnreleasableByteBuf.slice(int index,
int length) |
ByteBuf |
SimpleLeakAwareCompositeByteBuf.slice(int index,
int length) |
ByteBuf |
SimpleLeakAwareByteBuf.slice(int index,
int length) |
ByteBuf |
ReadOnlyByteBuf.slice(int index,
int length)
Deprecated.
|
ByteBuf |
AdvancedLeakAwareCompositeByteBuf.slice(int index,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.slice(int index,
int length) |
ByteBuf |
WrappedCompositeByteBuf.slice(int index,
int length) |
ByteBuf |
SlicedByteBuf.slice(int index,
int length)
Deprecated.
|
abstract ByteBuf |
ByteBuf.slice(int index,
int length)
Returns a slice of this buffer's sub-region.
|
ByteBuf |
WrappedByteBuf.slice(int index,
int length) |
ByteBuf |
DuplicatedByteBuf.slice(int index,
int length)
Deprecated.
|
ByteBuf |
SwappedByteBuf.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) |
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf... buffers)
|
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf buffer)
Creates a read-only buffer which disallows any modification operations
on the specified
buffer . |
static ByteBuf |
Unpooled.unreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the given
ByteBuf which will just ignore release and retain calls. |
ByteBuf |
UnpooledUnsafeDirectByteBuf.unwrap() |
ByteBuf |
EmptyByteBuf.unwrap() |
ByteBuf |
CompositeByteBuf.unwrap() |
ByteBuf |
ReadOnlyByteBuf.unwrap()
Deprecated.
|
ByteBuf |
WrappedCompositeByteBuf.unwrap() |
ByteBuf |
ReadOnlyByteBufferBuf.unwrap() |
ByteBuf |
SlicedByteBuf.unwrap()
Deprecated.
|
ByteBuf |
PooledByteBuf.unwrap() |
ByteBuf |
UnpooledDirectByteBuf.unwrap() |
ByteBuf |
FixedCompositeByteBuf.unwrap() |
abstract ByteBuf |
ByteBuf.unwrap()
Return the underlying buffer instance if this buffer is a wrapper of another buffer.
|
ByteBuf |
WrappedByteBuf.unwrap() |
ByteBuf |
DuplicatedByteBuf.unwrap()
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.unwrap() |
ByteBuf |
SwappedByteBuf.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(java.nio.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(java.nio.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,
java.nio.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 |
ByteBufUtil.writeAscii(ByteBufAllocator alloc,
java.lang.CharSequence seq)
|
ByteBuf |
AbstractByteBuf.writeBoolean(boolean value) |
ByteBuf |
EmptyByteBuf.writeBoolean(boolean value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBoolean(boolean value) |
abstract ByteBuf |
ByteBuf.writeBoolean(boolean value)
Sets the specified boolean at the current
writerIndex
and increases the writerIndex by 1 in this buffer. |
ByteBuf |
WrappedByteBuf.writeBoolean(boolean value) |
ByteBuf |
SwappedByteBuf.writeBoolean(boolean value) |
ByteBuf |
AbstractByteBuf.writeByte(int value) |
ByteBuf |
EmptyByteBuf.writeByte(int value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeByte(int value) |
abstract ByteBuf |
ByteBuf.writeByte(int value)
Sets the specified byte at the current
writerIndex
and increases the writerIndex by 1 in this buffer. |
ByteBuf |
WrappedByteBuf.writeByte(int value) |
ByteBuf |
SwappedByteBuf.writeByte(int value) |
ByteBuf |
AbstractByteBuf.writeBytes(byte[] src) |
ByteBuf |
EmptyByteBuf.writeBytes(byte[] src) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(byte[] src) |
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 |
WrappedByteBuf.writeBytes(byte[] src) |
ByteBuf |
SwappedByteBuf.writeBytes(byte[] src) |
ByteBuf |
AbstractByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
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 |
WrappedByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(ByteBuf src) |
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 |
WrappedByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
AbstractByteBuf.writeBytes(java.nio.ByteBuffer src) |
ByteBuf |
EmptyByteBuf.writeBytes(java.nio.ByteBuffer src) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(java.nio.ByteBuffer src) |
abstract ByteBuf |
ByteBuf.writeBytes(java.nio.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 |
WrappedByteBuf.writeBytes(java.nio.ByteBuffer src) |
ByteBuf |
SwappedByteBuf.writeBytes(java.nio.ByteBuffer src) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(ByteBuf src,
int length) |
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 |
WrappedByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
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 |
WrappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
AbstractByteBuf.writeChar(int value) |
ByteBuf |
EmptyByteBuf.writeChar(int value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeChar(int value) |
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 |
WrappedByteBuf.writeChar(int value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.writeChar(int value) |
ByteBuf |
SwappedByteBuf.writeChar(int value) |
ByteBuf |
AbstractByteBuf.writeDouble(double value) |
ByteBuf |
EmptyByteBuf.writeDouble(double value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeDouble(double value) |
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 |
WrappedByteBuf.writeDouble(double value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.writeDouble(double value) |
ByteBuf |
SwappedByteBuf.writeDouble(double value) |
ByteBuf |
AbstractByteBuf.writeFloat(float value) |
ByteBuf |
EmptyByteBuf.writeFloat(float value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeFloat(float value) |
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 |
WrappedByteBuf.writeFloat(float value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.writeFloat(float value) |
ByteBuf |
SwappedByteBuf.writeFloat(float value) |
ByteBuf |
AbstractByteBuf.writeInt(int value) |
ByteBuf |
EmptyByteBuf.writeInt(int value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeInt(int value) |
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 |
WrappedByteBuf.writeInt(int value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.writeInt(int value) |
ByteBuf |
SwappedByteBuf.writeInt(int value) |
ByteBuf |
AbstractByteBuf.writeLong(long value) |
ByteBuf |
EmptyByteBuf.writeLong(long value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeLong(long value) |
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 |
WrappedByteBuf.writeLong(long value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.writeLong(long value) |
ByteBuf |
SwappedByteBuf.writeLong(long value) |
ByteBuf |
AbstractByteBuf.writeMedium(int value) |
ByteBuf |
EmptyByteBuf.writeMedium(int value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeMedium(int value) |
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 |
WrappedByteBuf.writeMedium(int value) |
ByteBuf |
SwappedByteBuf.writeMedium(int value) |
ByteBuf |
AbstractByteBuf.writerIndex(int writerIndex) |
ByteBuf |
EmptyByteBuf.writerIndex(int writerIndex) |
abstract ByteBuf |
ByteBuf.writerIndex(int writerIndex)
Sets the
writerIndex of this buffer. |
ByteBuf |
WrappedByteBuf.writerIndex(int writerIndex) |
ByteBuf |
SwappedByteBuf.writerIndex(int writerIndex) |
ByteBuf |
AbstractByteBuf.writeShort(int value) |
ByteBuf |
EmptyByteBuf.writeShort(int value) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeShort(int value) |
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 |
WrappedByteBuf.writeShort(int value) |
ByteBuf |
AbstractUnsafeSwappedByteBuf.writeShort(int value) |
ByteBuf |
SwappedByteBuf.writeShort(int value) |
static ByteBuf |
ByteBufUtil.writeUtf8(ByteBufAllocator alloc,
java.lang.CharSequence seq)
|
ByteBuf |
UnpooledUnsafeDirectByteBuf.writeZero(int length) |
ByteBuf |
AbstractByteBuf.writeZero(int length) |
ByteBuf |
UnpooledUnsafeHeapByteBuf.writeZero(int length) |
ByteBuf |
EmptyByteBuf.writeZero(int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeZero(int length) |
ByteBuf |
PooledUnsafeHeapByteBuf.writeZero(int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.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 |
WrappedByteBuf.writeZero(int length) |
ByteBuf |
SwappedByteBuf.writeZero(int length) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ByteBuf> |
CompositeByteBuf.decompose(int offset,
int length)
Same with
AbstractByteBuf.slice(int, int) except that this method returns a list. |
java.util.List<ByteBuf> |
AdvancedLeakAwareCompositeByteBuf.decompose(int offset,
int length) |
java.util.List<ByteBuf> |
WrappedCompositeByteBuf.decompose(int offset,
int length) |
java.util.Iterator<ByteBuf> |
CompositeByteBuf.iterator() |
java.util.Iterator<ByteBuf> |
AdvancedLeakAwareCompositeByteBuf.iterator() |
java.util.Iterator<ByteBuf> |
WrappedCompositeByteBuf.iterator() |
Modifier and Type | Method and Description |
---|---|
CompositeByteBuf |
CompositeByteBuf.addComponent(boolean increaseWriterIndex,
ByteBuf buffer)
|
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponent(boolean increaseWriterIndex,
ByteBuf buffer) |
CompositeByteBuf |
WrappedCompositeByteBuf.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 |
AdvancedLeakAwareCompositeByteBuf.addComponent(boolean increaseWriterIndex,
int cIndex,
ByteBuf buffer) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponent(boolean increaseWriterIndex,
int cIndex,
ByteBuf buffer) |
CompositeByteBuf |
CompositeByteBuf.addComponent(ByteBuf buffer)
Add the given
ByteBuf . |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponent(ByteBuf buffer) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponent(ByteBuf buffer) |
CompositeByteBuf |
CompositeByteBuf.addComponent(int cIndex,
ByteBuf buffer)
Add the given
ByteBuf on the specific index. |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponent(int cIndex,
ByteBuf buffer) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponent(int cIndex,
ByteBuf buffer) |
private int |
CompositeByteBuf.addComponent0(boolean increaseWriterIndex,
int cIndex,
ByteBuf buffer)
Precondition is that
buffer != null . |
CompositeByteBuf |
CompositeByteBuf.addComponents(boolean increaseWriterIndex,
ByteBuf... buffers)
|
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponents(boolean increaseWriterIndex,
ByteBuf... buffers) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponents(boolean increaseWriterIndex,
ByteBuf... buffers) |
CompositeByteBuf |
CompositeByteBuf.addComponents(ByteBuf... buffers)
Add the given
ByteBuf s. |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponents(ByteBuf... buffers) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponents(ByteBuf... buffers) |
CompositeByteBuf |
CompositeByteBuf.addComponents(int cIndex,
ByteBuf... buffers)
Add the given
ByteBuf s on the specific index |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponents(int cIndex,
ByteBuf... buffers) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponents(int cIndex,
ByteBuf... buffers) |
private int |
CompositeByteBuf.addComponents0(boolean increaseWriterIndex,
int cIndex,
ByteBuf[] buffers,
int offset,
int len) |
static void |
ByteBufUtil.appendPrettyHexDump(java.lang.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(java.lang.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 . |
private static void |
ByteBufUtil.HexUtil.appendPrettyHexDump(java.lang.StringBuilder dump,
ByteBuf buf,
int offset,
int length) |
static int |
ByteBufUtil.compare(ByteBuf bufferA,
ByteBuf bufferB)
Compares the two specified buffers as described in
compareTo(ByteBuf) . |
int |
AbstractByteBuf.compareTo(ByteBuf that) |
int |
EmptyByteBuf.compareTo(ByteBuf buffer) |
int |
WrappedCompositeByteBuf.compareTo(ByteBuf that) |
abstract int |
ByteBuf.compareTo(ByteBuf buffer)
Compares the content of the specified buffer to the content of this
buffer.
|
int |
WrappedByteBuf.compareTo(ByteBuf buffer) |
int |
SwappedByteBuf.compareTo(ByteBuf buffer) |
private static long |
ByteBufUtil.compareUintBigEndian(ByteBuf bufferA,
ByteBuf bufferB,
int aIndex,
int bIndex,
int uintCountIncrement) |
private static long |
ByteBufUtil.compareUintBigEndianA(ByteBuf bufferA,
ByteBuf bufferB,
int aIndex,
int bIndex,
int uintCountIncrement) |
private static long |
ByteBufUtil.compareUintBigEndianB(ByteBuf bufferA,
ByteBuf bufferB,
int aIndex,
int bIndex,
int uintCountIncrement) |
private static long |
ByteBufUtil.compareUintLittleEndian(ByteBuf bufferA,
ByteBuf bufferB,
int aIndex,
int bIndex,
int uintCountIncrement) |
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. |
private void |
CompositeByteBuf.copyTo(int index,
int length,
int componentId,
ByteBuf dst) |
(package private) static java.lang.String |
ByteBufUtil.decodeString(ByteBuf src,
int readerIndex,
int len,
java.nio.charset.Charset charset) |
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 ChannelBuffer#equals(Object) . |
private static int |
ByteBufUtil.firstIndexOf(ByteBuf buffer,
int fromIndex,
int toIndex,
byte value) |
(package private) static void |
UnsafeByteBufUtil.getBytes(AbstractByteBuf buf,
long addr,
int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst) |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
ByteBuf dst) |
CompositeByteBuf |
WrappedCompositeByteBuf.getBytes(int index,
ByteBuf dst) |
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 |
WrappedByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
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 |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
PooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
FixedCompositeByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
PooledHeapByteBuf.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 |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
static int |
ByteBufUtil.hashCode(ByteBuf buffer)
Calculates the hash code of the specified buffer.
|
static java.lang.String |
ByteBufUtil.hexDump(ByteBuf buffer)
Returns a hex dump
of the specified buffer's readable bytes.
|
static java.lang.String |
ByteBufUtil.hexDump(ByteBuf buffer,
int fromIndex,
int length)
Returns a hex dump
of the specified buffer's sub-region.
|
private static java.lang.String |
ByteBufUtil.HexUtil.hexDump(ByteBuf buffer,
int fromIndex,
int length) |
private static int |
UnsafeHeapSwappedByteBuf.idx(ByteBuf wrapped,
int index) |
static int |
ByteBufUtil.indexOf(ByteBuf buffer,
int fromIndex,
int toIndex,
byte value)
The default implementation of
indexOf(int, int, byte) . |
private static boolean |
ByteBufUtil.isAscii(ByteBuf buf,
int index,
int length)
Returns
true if the specified ByteBuf starting at index with length is valid
ASCII text, otherwise return false . |
static boolean |
ByteBufUtil.isText(ByteBuf buf,
java.nio.charset.Charset charset)
|
static boolean |
ByteBufUtil.isText(ByteBuf buf,
int index,
int length,
java.nio.charset.Charset charset)
Returns
true if the specified ByteBuf starting at index with length is valid
text using the given Charset , otherwise return false . |
private static boolean |
ByteBufUtil.isUtf8(ByteBuf buf,
int index,
int length)
Returns
true if the specified ByteBuf starting at index with length is valid
UTF8 text, otherwise return false . |
private static int |
ByteBufUtil.lastIndexOf(ByteBuf buffer,
int fromIndex,
int toIndex,
byte value) |
static java.lang.String |
ByteBufUtil.prettyHexDump(ByteBuf buffer)
Returns a multi-line hexadecimal dump of the specified
ByteBuf that is easy to read by humans. |
static java.lang.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 . |
private static java.lang.String |
ByteBufUtil.HexUtil.prettyHexDump(ByteBuf buffer,
int offset,
int length) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst) |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(ByteBuf dst) |
CompositeByteBuf |
WrappedCompositeByteBuf.readBytes(ByteBuf dst) |
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 |
WrappedByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
SwappedByteBuf.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 |
AbstractByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int length) |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst,
int length) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(ByteBuf dst,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.readBytes(ByteBuf dst,
int length) |
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 |
WrappedByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
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 |
WrappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
(package private) static void |
UnsafeByteBufUtil.setBytes(AbstractByteBuf buf,
long addr,
int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src) |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
ByteBuf src) |
CompositeByteBuf |
WrappedCompositeByteBuf.setBytes(int index,
ByteBuf src) |
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 |
WrappedByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int length) |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src,
int length) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
ByteBuf src,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.setBytes(int index,
ByteBuf src,
int length) |
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 |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
PooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBufferBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
FixedCompositeByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
PooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
PooledHeapByteBuf.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 |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Deprecated.
|
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
protected static ByteBuf |
AbstractByteBufAllocator.toLeakAwareBuffer(ByteBuf buf) |
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf... buffers)
|
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf buffer)
Creates a read-only buffer which disallows any modification operations
on the specified
buffer . |
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 int |
ByteBufUtil.writeAscii(ByteBuf buf,
java.lang.CharSequence seq)
|
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src) |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(ByteBuf src) |
CompositeByteBuf |
WrappedCompositeByteBuf.writeBytes(ByteBuf src) |
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 |
WrappedByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int length) |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src,
int length) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(ByteBuf src,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.writeBytes(ByteBuf src,
int length) |
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 |
WrappedByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
AdvancedLeakAwareByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
CompositeByteBuf |
WrappedCompositeByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
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 |
WrappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
static int |
ByteBufUtil.writeUtf8(ByteBuf buf,
java.lang.CharSequence seq)
|
Modifier and Type | Method and Description |
---|---|
CompositeByteBuf |
CompositeByteBuf.addComponents(boolean increaseWriterIndex,
java.lang.Iterable<ByteBuf> buffers)
|
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponents(boolean increaseWriterIndex,
java.lang.Iterable<ByteBuf> buffers) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponents(boolean increaseWriterIndex,
java.lang.Iterable<ByteBuf> buffers) |
CompositeByteBuf |
CompositeByteBuf.addComponents(int cIndex,
java.lang.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 |
AdvancedLeakAwareCompositeByteBuf.addComponents(int cIndex,
java.lang.Iterable<ByteBuf> buffers) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponents(int cIndex,
java.lang.Iterable<ByteBuf> buffers) |
CompositeByteBuf |
CompositeByteBuf.addComponents(java.lang.Iterable<ByteBuf> buffers)
Add the given
ByteBuf s. |
CompositeByteBuf |
AdvancedLeakAwareCompositeByteBuf.addComponents(java.lang.Iterable<ByteBuf> buffers) |
CompositeByteBuf |
WrappedCompositeByteBuf.addComponents(java.lang.Iterable<ByteBuf> buffers) |
private int |
CompositeByteBuf.addComponents0(boolean increaseIndex,
int cIndex,
java.lang.Iterable<ByteBuf> buffers) |
Constructor and Description |
---|
AdvancedLeakAwareByteBuf(ByteBuf buf,
ResourceLeak leak) |
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,
int length)
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 . |
Component(ByteBuf buf) |
Component(int index,
int offset,
ByteBuf buf) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf... buffers) |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf[] buffers,
int offset,
int len) |
DefaultByteBufHolder(ByteBuf data) |
DuplicatedByteBuf(ByteBuf buffer)
Deprecated.
|
FixedCompositeByteBuf(ByteBufAllocator allocator,
ByteBuf... buffers) |
ReadOnlyByteBuf(ByteBuf buffer)
Deprecated.
|
SimpleLeakAwareByteBuf(ByteBuf buf,
ResourceLeak leak) |
SlicedByteBuf(ByteBuf buffer,
int index,
int length)
Deprecated.
|
SwappedByteBuf(ByteBuf buf) |
UnreleasableByteBuf(ByteBuf buf) |
WrappedByteBuf(ByteBuf buf) |
Constructor and Description |
---|
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
java.lang.Iterable<ByteBuf> buffers) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
RecvByteBufAllocator.Handle.allocate(ByteBufAllocator alloc)
Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small
enough not to waste its space.
|
ByteBuf |
AdaptiveRecvByteBufAllocator.HandleImpl.allocate(ByteBufAllocator alloc) |
ByteBuf |
FixedRecvByteBufAllocator.HandleImpl.allocate(ByteBufAllocator alloc) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
AbstractEpollChannel.newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the original one. |
protected ByteBuf |
AbstractEpollChannel.newDirectBuffer(java.lang.Object holder,
ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the specified holder. |
private static ByteBuf |
AbstractEpollChannel.newDirectBuffer0(java.lang.Object holder,
ByteBuf buf,
ByteBufAllocator alloc,
int capacity) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
IovArray.add(ByteBuf buf)
Try to add the given
ByteBuf . |
protected int |
AbstractEpollChannel.doReadBytes(ByteBuf byteBuf)
Read bytes into the given
ByteBuf and return the amount. |
protected int |
AbstractEpollChannel.doWriteBytes(ByteBuf buf,
int writeSpinCount) |
private boolean |
AbstractEpollStreamChannel.EpollStreamUnsafe.handleReadException(ChannelPipeline pipeline,
ByteBuf byteBuf,
java.lang.Throwable cause,
boolean close) |
private boolean |
NativeDatagramPacketArray.NativeDatagramPacket.init(ByteBuf buf,
java.net.InetSocketAddress recipient)
Init this instance and return
true if the init was successful. |
protected ByteBuf |
AbstractEpollChannel.newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the original one. |
protected ByteBuf |
AbstractEpollChannel.newDirectBuffer(java.lang.Object holder,
ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the specified holder. |
private static ByteBuf |
AbstractEpollChannel.newDirectBuffer0(java.lang.Object holder,
ByteBuf buf,
ByteBufAllocator alloc,
int capacity) |
private boolean |
AbstractEpollStreamChannel.writeBytes(ChannelOutboundBuffer in,
ByteBuf buf,
int writeSpinCount)
Write bytes form the given
ByteBuf to the underlying Channel . |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the original one. |
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ReferenceCounted holder,
ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the specified holder. |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
AbstractNioByteChannel.doReadBytes(ByteBuf buf)
Read bytes into the given
ByteBuf and return the amount. |
protected abstract int |
AbstractNioByteChannel.doWriteBytes(ByteBuf buf)
Write bytes form the given
ByteBuf to the underlying Channel . |
private void |
AbstractNioByteChannel.NioByteUnsafe.handleReadException(ChannelPipeline pipeline,
ByteBuf byteBuf,
java.lang.Throwable cause,
boolean close) |
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the original one. |
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ReferenceCounted holder,
ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the specified holder. |
Modifier and Type | Method and Description |
---|---|
protected int |
OioByteStreamChannel.doReadBytes(ByteBuf buf) |
protected abstract int |
AbstractOioByteChannel.doReadBytes(ByteBuf buf)
Read bytes from the underlying Socket.
|
protected void |
OioByteStreamChannel.doWriteBytes(ByteBuf buf) |
protected abstract void |
AbstractOioByteChannel.doWriteBytes(ByteBuf buf)
Write the data which is hold by the
ByteBuf to the underlying Socket. |
Constructor and Description |
---|
SctpMessage(int protocolIdentifier,
int streamIdentifier,
boolean unordered,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
SctpMessage(int protocolIdentifier,
int streamIdentifier,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
SctpMessage(MessageInfo msgInfo,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
Constructor and Description |
---|
DatagramPacket(ByteBuf data,
java.net.InetSocketAddress recipient)
Create a new instance with the specified packet
data and recipient address. |
DatagramPacket(ByteBuf data,
java.net.InetSocketAddress recipient,
java.net.InetSocketAddress sender)
Create a new instance with the specified packet
data , recipient address, and sender
address. |
Modifier and Type | Method and Description |
---|---|
protected int |
NioSocketChannel.doReadBytes(ByteBuf byteBuf) |
protected int |
NioSocketChannel.doWriteBytes(ByteBuf buf) |
private static boolean |
NioDatagramChannel.isSingleDirectBuffer(ByteBuf buf)
Checks if the specified buffer is a direct buffer and is composed of a single NIO buffer.
|
Modifier and Type | Method and Description |
---|---|
protected int |
OioSocketChannel.doReadBytes(ByteBuf buf) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
ReplayingDecoderByteBuf
Special
ByteBuf implementation which is used by the ReplayingDecoder |
Modifier and Type | Field and Description |
---|---|
private ByteBuf |
ReplayingDecoderByteBuf.buffer |
(package private) ByteBuf |
ByteToMessageDecoder.cumulation |
private ByteBuf[] |
DelimiterBasedFrameDecoder.delimiters |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
LengthFieldPrepender.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf msg,
boolean preferDirect) |
protected ByteBuf |
MessageToByteEncoder.allocateBuffer(ChannelHandlerContext ctx,
I msg,
boolean preferDirect)
Allocate a
ByteBuf which will be used as argument of #encode(ChannelHandlerContext, I, ByteBuf) . |
ByteBuf |
ReplayingDecoderByteBuf.capacity(int newCapacity) |
ByteBuf |
ReplayingDecoderByteBuf.clear() |
ByteBuf |
ReplayingDecoderByteBuf.copy() |
ByteBuf |
ReplayingDecoderByteBuf.copy(int index,
int length) |
ByteBuf |
ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf in)
|
ByteBuf |
ReplayingDecoderByteBuf.discardReadBytes() |
ByteBuf |
ReplayingDecoderByteBuf.discardSomeReadBytes() |
ByteBuf |
ReplayingDecoderByteBuf.duplicate() |
ByteBuf |
ReplayingDecoderByteBuf.ensureWritable(int writableBytes) |
(package private) static ByteBuf |
ByteToMessageDecoder.expandCumulation(ByteBufAllocator alloc,
ByteBuf cumulation,
int readable) |
protected ByteBuf |
LengthFieldBasedFrameDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length)
Extract the sub-region of the specified buffer.
|
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
java.nio.ByteBuffer dst) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
java.io.OutputStream out,
int length) |
protected ByteBuf |
ByteToMessageDecoder.internalBuffer()
Returns the internal cumulative buffer of this decoder.
|
static ByteBuf[] |
Delimiters.lineDelimiter()
Returns
CR ('\r') and LF ('\n') delimiters, which could
be used for text-based line protocols. |
ByteBuf |
ReplayingDecoderByteBuf.markReaderIndex() |
ByteBuf |
ReplayingDecoderByteBuf.markWriterIndex() |
static ByteBuf[] |
Delimiters.nulDelimiter()
Returns a
NUL (0x00) delimiter, which could be used for
Flash XML socket or any similar protocols. |
ByteBuf |
ReplayingDecoderByteBuf.order(java.nio.ByteOrder endianness) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(byte[] dst) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(java.nio.ByteBuffer dst) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(int length) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(java.io.OutputStream out,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.readerIndex(int readerIndex) |
ByteBuf |
ReplayingDecoderByteBuf.readSlice(int length) |
ByteBuf |
ReplayingDecoderByteBuf.resetReaderIndex() |
ByteBuf |
ReplayingDecoderByteBuf.resetWriterIndex() |
ByteBuf |
ReplayingDecoderByteBuf.retain() |
ByteBuf |
ReplayingDecoderByteBuf.retain(int increment) |
ByteBuf |
ReplayingDecoderByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
ReplayingDecoderByteBuf.setByte(int index,
int value) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
java.nio.ByteBuffer src) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.setChar(int index,
int value) |
ByteBuf |
ReplayingDecoderByteBuf.setDouble(int index,
double value) |
ByteBuf |
ReplayingDecoderByteBuf.setFloat(int index,
float value) |
ByteBuf |
ReplayingDecoderByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
ReplayingDecoderByteBuf.setInt(int index,
int value) |
ByteBuf |
ReplayingDecoderByteBuf.setLong(int index,
long value) |
ByteBuf |
ReplayingDecoderByteBuf.setMedium(int index,
int value) |
ByteBuf |
ReplayingDecoderByteBuf.setShort(int index,
int value) |
ByteBuf |
ReplayingDecoderByteBuf.setZero(int index,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.skipBytes(int length) |
ByteBuf |
ReplayingDecoderByteBuf.slice() |
ByteBuf |
ReplayingDecoderByteBuf.slice(int index,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.unwrap() |
ByteBuf |
ReplayingDecoderByteBuf.writeBoolean(boolean value) |
ByteBuf |
ReplayingDecoderByteBuf.writeByte(int value) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(byte[] src) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(java.nio.ByteBuffer src) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.writeChar(int value) |
ByteBuf |
ReplayingDecoderByteBuf.writeDouble(double value) |
ByteBuf |
ReplayingDecoderByteBuf.writeFloat(float value) |
ByteBuf |
ReplayingDecoderByteBuf.writeInt(int value) |
ByteBuf |
ReplayingDecoderByteBuf.writeLong(long value) |
ByteBuf |
ReplayingDecoderByteBuf.writeMedium(int value) |
ByteBuf |
ReplayingDecoderByteBuf.writerIndex(int writerIndex) |
ByteBuf |
ReplayingDecoderByteBuf.writeShort(int value) |
ByteBuf |
ReplayingDecoderByteBuf.writeZero(int length) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
LengthFieldPrepender.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf msg,
boolean preferDirect) |
protected void |
ReplayingDecoder.callDecode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
ByteToMessageDecoder.callDecode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out)
Called once data should be decoded from the given
ByteBuf . |
int |
ReplayingDecoderByteBuf.compareTo(ByteBuf buffer) |
ByteBuf |
ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf in)
|
protected java.lang.Object |
LengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in)
Create a frame out of the
ByteBuf and return it. |
protected java.lang.Object |
FixedLengthFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in)
Create a frame out of the
ByteBuf and return it. |
protected java.lang.Object |
DelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
protected java.lang.Object |
LineBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
protected abstract void |
ByteToMessageCodec.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
LengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
FixedLengthFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
DelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
LineBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected abstract void |
ByteToMessageDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out)
Decode the from one
ByteBuf to an other. |
protected void |
ByteToMessageCodec.decodeLast(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
ByteToMessageDecoder.decodeLast(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out)
Is called one last time when the
ChannelHandlerContext goes in-active. |
protected void |
LengthFieldPrepender.encode(ChannelHandlerContext ctx,
ByteBuf msg,
ByteBuf out) |
protected abstract void |
ByteToMessageCodec.encode(ChannelHandlerContext ctx,
I msg,
ByteBuf out) |
protected void |
ByteToMessageCodec.Encoder.encode(ChannelHandlerContext ctx,
I msg,
ByteBuf out) |
protected abstract void |
MessageToByteEncoder.encode(ChannelHandlerContext ctx,
I msg,
ByteBuf out)
Encode a message into a
ByteBuf . |
(package private) static ByteBuf |
ByteToMessageDecoder.expandCumulation(ByteBufAllocator alloc,
ByteBuf cumulation,
int readable) |
protected ByteBuf |
LengthFieldBasedFrameDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length)
Extract the sub-region of the specified buffer.
|
private static int |
LineBasedFrameDecoder.findEndOfLine(ByteBuf buffer)
Returns the index in the buffer of the end of line found.
|
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
protected long |
LengthFieldBasedFrameDecoder.getUnadjustedFrameLength(ByteBuf buf,
int offset,
int length,
java.nio.ByteOrder order)
Decodes the specified region of the buffer into an unadjusted frame length.
|
private static int |
DelimiterBasedFrameDecoder.indexOf(ByteBuf haystack,
ByteBuf needle)
Returns the number of bytes between the readerIndex of the haystack and
the first needle found in the haystack.
|
private static boolean |
DelimiterBasedFrameDecoder.isLineBased(ByteBuf[] delimiters)
Returns true if the delimiters are "\n" and "\r\n".
|
ByteBuf |
ReplayingDecoderByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
(package private) void |
ReplayingDecoderByteBuf.setCumulation(ByteBuf buffer) |
private static void |
DelimiterBasedFrameDecoder.validateDelimiter(ByteBuf delimiter) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
ReplayingDecoderByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
Constructor and Description |
---|
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
boolean failFast,
ByteBuf... delimiters)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
boolean failFast,
ByteBuf delimiter)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
ByteBuf... delimiters)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
ByteBuf delimiter)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
ByteBuf... delimiters)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
ByteBuf delimiter)
Creates a new instance.
|
ReplayingDecoderByteBuf(ByteBuf buffer) |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
Base64.decode(ByteBuf src) |
static ByteBuf |
Base64.decode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len,
Base64Dialect dialect,
ByteBufAllocator allocator) |
static ByteBuf |
Base64.encode(ByteBuf src) |
static ByteBuf |
Base64.encode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines,
Base64Dialect dialect,
ByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
Base64.decode(ByteBuf src) |
static ByteBuf |
Base64.decode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len,
Base64Dialect dialect,
ByteBufAllocator allocator) |
protected void |
Base64Decoder.decode(ChannelHandlerContext ctx,
ByteBuf msg,
java.util.List<java.lang.Object> out) |
private static int |
Base64.decode4to3(byte[] src,
int srcOffset,
ByteBuf dest,
int destOffset,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src) |
static ByteBuf |
Base64.encode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines,
Base64Dialect dialect,
ByteBufAllocator allocator) |
protected void |
Base64Encoder.encode(ChannelHandlerContext ctx,
ByteBuf msg,
java.util.List<java.lang.Object> out) |
private static void |
Base64.encode3to4(ByteBuf src,
int srcOffset,
int numSigBytes,
ByteBuf dest,
int destOffset,
Base64Dialect dialect) |
Modifier and Type | Method and Description |
---|---|
protected void |
ByteArrayDecoder.decode(ChannelHandlerContext ctx,
ByteBuf msg,
java.util.List<java.lang.Object> out) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
JdkZlibEncoder.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf msg,
boolean preferDirect) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
JdkZlibEncoder.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf msg,
boolean preferDirect) |
private static void |
SnappyFramedEncoder.calculateAndWriteChecksum(ByteBuf slice,
ByteBuf out)
Calculates and writes the 4-byte checksum to the output buffer
|
static int |
Snappy.calculateChecksum(ByteBuf data)
Computes the CRC32C checksum of the supplied data and performs the "mask" operation
on the computed checksum
|
static int |
Snappy.calculateChecksum(ByteBuf data,
int offset,
int length)
Computes the CRC32C checksum of the supplied data and performs the "mask" operation
on the computed checksum
|
void |
Snappy.decode(ByteBuf in,
ByteBuf out) |
protected void |
SnappyFramedDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
JdkZlibDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
JZlibDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
private static int |
Snappy.decodeCopyWith1ByteOffset(byte tag,
ByteBuf in,
ByteBuf out,
int writtenSoFar)
Reads a compressed reference offset and length from the supplied input
buffer, seeks back to the appropriate place in the input buffer and
writes the found data to the supplied output stream.
|
private static int |
Snappy.decodeCopyWith2ByteOffset(byte tag,
ByteBuf in,
ByteBuf out,
int writtenSoFar)
Reads a compressed reference offset and length from the supplied input
buffer, seeks back to the appropriate place in the input buffer and
writes the found data to the supplied output stream.
|
private static int |
Snappy.decodeCopyWith4ByteOffset(byte tag,
ByteBuf in,
ByteBuf out,
int writtenSoFar)
Reads a compressed reference offset and length from the supplied input
buffer, seeks back to the appropriate place in the input buffer and
writes the found data to the supplied output stream.
|
(package private) static int |
Snappy.decodeLiteral(byte tag,
ByteBuf in,
ByteBuf out)
Reads a literal from the input buffer directly to the output buffer.
|
private void |
JdkZlibEncoder.deflate(ByteBuf out) |
void |
Snappy.encode(ByteBuf in,
ByteBuf out,
int length) |
protected void |
JZlibEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
SnappyFramedEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
JdkZlibEncoder.encode(ChannelHandlerContext ctx,
ByteBuf uncompressed,
ByteBuf out) |
private static void |
Snappy.encodeCopy(ByteBuf out,
int offset,
int length)
Encodes a series of copies, each at most 64 bytes in length.
|
private static void |
Snappy.encodeCopyWithOffset(ByteBuf out,
int offset,
int length) |
(package private) static void |
Snappy.encodeLiteral(ByteBuf in,
ByteBuf out,
int length)
Writes a literal to the supplied output buffer by directly copying from
the input buffer.
|
private static int |
Snappy.findMatchingLength(ByteBuf in,
int minIndex,
int inIndex,
int maxIndex)
Iterates over the supplied input buffer between the supplied minIndex and
maxIndex to find how long our matched copy overlaps with an already-written
literal value.
|
private static int |
Snappy.hash(ByteBuf in,
int index,
int shift)
Hashes the 4 bytes located at index, shifting the resulting hash into
the appropriate range for our hash table.
|
private boolean |
JdkZlibDecoder.readGZIPFooter(ByteBuf buf) |
private boolean |
JdkZlibDecoder.readGZIPHeader(ByteBuf in) |
private static int |
Snappy.readPreamble(ByteBuf in)
Reads the length varint (a series of bytes, where the lower 7 bits
are data and the upper bit is a flag to indicate more bytes to be
read).
|
private static void |
SnappyFramedEncoder.setChunkLength(ByteBuf out,
int lengthIdx) |
(package private) static void |
Snappy.validateChecksum(int expectedChecksum,
ByteBuf data)
Computes the CRC32C checksum of the supplied data, performs the "mask" operation
on the computed checksum, and then compares the resulting masked checksum to the
supplied checksum.
|
(package private) static void |
Snappy.validateChecksum(int expectedChecksum,
ByteBuf data,
int offset,
int length)
Computes the CRC32C checksum of the supplied data, performs the "mask" operation
on the computed checksum, and then compares the resulting masked checksum to the
supplied checksum.
|
private void |
JdkZlibDecoder.verifyCrc(ByteBuf in) |
private static void |
SnappyFramedEncoder.writeChunkLength(ByteBuf out,
int chunkLength)
Writes the 2-byte chunk length to the output buffer.
|
private static void |
SnappyFramedEncoder.writeUnencodedChunk(ByteBuf in,
ByteBuf out,
int dataLength) |
Modifier and Type | Method and Description |
---|---|
private ByteBuf |
HAProxyMessageDecoder.decodeLine(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
private ByteBuf |
HAProxyMessageDecoder.decodeStruct(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
Modifier and Type | Method and Description |
---|---|
protected void |
HAProxyMessageDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
(package private) static HAProxyMessage |
HAProxyMessage.decodeHeader(ByteBuf header)
Decodes a version 2, binary proxy protocol header.
|
private ByteBuf |
HAProxyMessageDecoder.decodeLine(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
private ByteBuf |
HAProxyMessageDecoder.decodeStruct(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
static ProtocolDetectionResult<HAProxyProtocolVersion> |
HAProxyMessageDecoder.detectProtocol(ByteBuf buffer)
Returns the
ProtocolDetectionResult for the given ByteBuf . |
private static int |
HAProxyMessageDecoder.findEndOfHeader(ByteBuf buffer)
Returns the index in the buffer of the end of header if found.
|
private static int |
HAProxyMessageDecoder.findEndOfLine(ByteBuf buffer)
Returns the index in the buffer of the end of line found.
|
private static int |
HAProxyMessageDecoder.findVersion(ByteBuf buffer)
Returns the proxy protocol specification version in the buffer if the version is found.
|
private static java.lang.String |
HAProxyMessage.ipBytestoString(ByteBuf header,
int addressLen)
Convert ip address bytes to string representation
|
private static boolean |
HAProxyMessageDecoder.match(byte[] prefix,
ByteBuf buffer,
int idx) |
Modifier and Type | Field and Description |
---|---|
private ByteBuf |
DefaultFullHttpRequest.content |
private ByteBuf |
HttpObjectAggregator.AggregatedFullHttpMessage.content |
private ByteBuf |
DefaultHttpContent.content |
private ByteBuf |
DefaultFullHttpResponse.content |
private static ByteBuf |
HttpObjectEncoder.CRLF_BUF |
private static ByteBuf |
HttpObjectEncoder.ZERO_CRLF_CRLF_BUF |
Modifier and Type | Field and Description |
---|---|
private ChunkedInput<ByteBuf> |
HttpChunkedInput.input |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
DefaultFullHttpRequest.content() |
ByteBuf |
HttpObjectAggregator.AggregatedFullHttpMessage.content() |
ByteBuf |
DefaultHttpContent.content() |
ByteBuf |
ComposedLastHttpContent.content() |
ByteBuf |
DefaultFullHttpResponse.content() |
Modifier and Type | Method and Description |
---|---|
private void |
HttpContentDecoder.decode(ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
HttpObjectDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer,
java.util.List<java.lang.Object> out) |
protected void |
HttpClientCodec.Decoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer,
java.util.List<java.lang.Object> out) |
protected void |
HttpObjectDecoder.decodeLast(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
(package private) boolean |
HttpHeaderEntity.encode(ByteBuf buf) |
(package private) void |
DefaultHttpHeaders.encode(ByteBuf buf) |
(package private) void |
DefaultHttpHeaders.HeaderEntry.encode(ByteBuf buf) |
(package private) void |
HttpMethod.encode(ByteBuf buf) |
(package private) void |
HttpResponseStatus.encode(ByteBuf buf) |
(package private) void |
HttpVersion.encode(ByteBuf buf) |
private void |
HttpContentEncoder.encode(ByteBuf in,
java.util.List<java.lang.Object> out) |
(package private) static void |
HttpHeaders.encode(java.lang.CharSequence key,
java.lang.CharSequence value,
ByteBuf buf) |
(package private) static void |
HttpHeaders.encode(HttpHeaders headers,
ByteBuf buf) |
static boolean |
HttpHeaders.encodeAscii(java.lang.CharSequence seq,
ByteBuf buf) |
protected static void |
HttpObjectEncoder.encodeAscii(java.lang.String s,
ByteBuf buf)
Deprecated.
|
(package private) static void |
HttpHeaders.encodeAscii0(java.lang.CharSequence seq,
ByteBuf buf) |
protected void |
HttpObjectEncoder.encodeHeaders(HttpHeaders headers,
ByteBuf buf)
Encode the
HttpHeaders into a ByteBuf . |
protected abstract void |
HttpObjectEncoder.encodeInitialLine(ByteBuf buf,
H message) |
protected void |
HttpRequestEncoder.encodeInitialLine(ByteBuf buf,
HttpRequest request) |
protected void |
HttpResponseEncoder.encodeInitialLine(ByteBuf buf,
HttpResponse response) |
private HttpContent |
HttpObjectDecoder.invalidChunk(ByteBuf in,
java.lang.Exception cause) |
private HttpMessage |
HttpObjectDecoder.invalidMessage(ByteBuf in,
java.lang.Exception cause) |
AppendableCharSequence |
HttpObjectDecoder.HeaderParser.parse(ByteBuf buffer) |
AppendableCharSequence |
HttpObjectDecoder.LineParser.parse(ByteBuf buffer) |
private HttpObjectDecoder.State |
HttpObjectDecoder.readHeaders(ByteBuf buffer) |
private LastHttpContent |
HttpObjectDecoder.readTrailingHeaders(ByteBuf buffer) |
private static boolean |
HttpObjectDecoder.skipControlCharacters(ByteBuf buffer) |
Constructor and Description |
---|
AggregatedFullHttpMessage(HttpMessage message,
ByteBuf content,
HttpHeaders trailingHeaders) |
AggregatedFullHttpRequest(HttpRequest request,
ByteBuf content,
HttpHeaders trailingHeaders) |
AggregatedFullHttpResponse(HttpResponse message,
ByteBuf content,
HttpHeaders trailingHeaders) |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
ByteBuf content) |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
ByteBuf content,
boolean validateHeaders) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
boolean validateHeaders) |
DefaultHttpContent(ByteBuf content)
Creates a new instance with the specified chunk content.
|
DefaultLastHttpContent(ByteBuf content) |
DefaultLastHttpContent(ByteBuf content,
boolean validateHeaders) |
Constructor and Description |
---|
HttpChunkedInput(ChunkedInput<ByteBuf> input)
Creates a new instance using the specified input.
|
HttpChunkedInput(ChunkedInput<ByteBuf> input,
LastHttpContent lastHttpContent)
Creates a new instance using the specified input.
|
Modifier and Type | Field and Description |
---|---|
(package private) ByteBuf |
HttpPostBodyUtil.SeekAheadOptimize.buffer |
private ByteBuf |
AbstractMemoryHttpData.byteBuf |
private ByteBuf |
HttpPostRequestEncoder.currentBuffer
The ByteBuf currently used by the encoder
|
private ByteBuf |
HttpPostStandardRequestDecoder.undecodedChunk
The current channelBuffer
|
private ByteBuf |
HttpPostMultipartRequestDecoder.undecodedChunk
The current channelBuffer
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<ByteBuf> |
InternalAttribute.value |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
MixedAttribute.content() |
ByteBuf |
MixedFileUpload.content() |
ByteBuf |
AbstractHttpData.content() |
ByteBuf |
HttpPostRequestEncoder.WrappedFullHttpRequest.content() |
private ByteBuf |
HttpPostRequestEncoder.fillByteBuf() |
ByteBuf |
MixedAttribute.getByteBuf() |
ByteBuf |
AbstractMemoryHttpData.getByteBuf()
Utility to go from a In Memory FileUpload
to a Disk (or another implementation) FileUpload
|
ByteBuf |
MixedFileUpload.getByteBuf() |
ByteBuf |
AbstractDiskHttpData.getByteBuf() |
ByteBuf |
HttpData.getByteBuf()
Returns the content of the file item as a ByteBuf
|
ByteBuf |
MixedAttribute.getChunk(int length) |
ByteBuf |
AbstractMemoryHttpData.getChunk(int length) |
ByteBuf |
MixedFileUpload.getChunk(int length) |
ByteBuf |
AbstractDiskHttpData.getChunk(int length) |
ByteBuf |
HttpData.getChunk(int length)
Returns a ChannelBuffer for the content from the current position with at
most length read bytes, increasing the current position of the Bytes
read.
|
ByteBuf |
InternalAttribute.toByteBuf() |
Modifier and Type | Method and Description |
---|---|
void |
MixedAttribute.addContent(ByteBuf buffer,
boolean last) |
void |
AbstractMemoryHttpData.addContent(ByteBuf buffer,
boolean last) |
void |
MixedFileUpload.addContent(ByteBuf buffer,
boolean last) |
void |
MemoryAttribute.addContent(ByteBuf buffer,
boolean last) |
void |
AbstractDiskHttpData.addContent(ByteBuf buffer,
boolean last) |
void |
DiskAttribute.addContent(ByteBuf buffer,
boolean last) |
void |
HttpData.addContent(ByteBuf buffer,
boolean last)
Add the content from the ChannelBuffer
|
void |
MixedAttribute.setContent(ByteBuf buffer) |
void |
AbstractMemoryHttpData.setContent(ByteBuf buffer) |
void |
MixedFileUpload.setContent(ByteBuf buffer) |
void |
AbstractDiskHttpData.setContent(ByteBuf buffer) |
void |
HttpData.setContent(ByteBuf buffer)
Set the content from the ChannelBuffer (erase any previous data)
|
private void |
HttpPostStandardRequestDecoder.setFinalBuffer(ByteBuf buffer) |
Constructor and Description |
---|
SeekAheadOptimize(ByteBuf buffer) |
Modifier and Type | Field and Description |
---|---|
private static ByteBuf |
WebSocket00FrameEncoder._0X00 |
private static ByteBuf |
WebSocket00FrameEncoder._0XFF |
private static ByteBuf |
WebSocket00FrameEncoder._0XFF_0X00 |
private ByteBuf |
WebSocketClientHandshaker00.expectedChallengeResponseBytes |
private ByteBuf |
WebSocket08FrameDecoder.framePayload |
private ByteBuf |
WebSocket08FrameDecoder.payloadBuffer |
Modifier and Type | Field and Description |
---|---|
private ChunkedInput<ByteBuf> |
WebSocketChunkedInput.input |
Modifier and Type | Method and Description |
---|---|
private static ByteBuf |
TextWebSocketFrame.fromText(java.lang.String text) |
private static ByteBuf |
ContinuationWebSocketFrame.fromText(java.lang.String text)
Sets the string for this frame
|
private static ByteBuf |
CloseWebSocketFrame.newBinaryData(int statusCode,
java.lang.String reasonText) |
Modifier and Type | Method and Description |
---|---|
void |
Utf8Validator.check(ByteBuf buffer) |
protected void |
WebSocket08FrameDecoder.checkCloseFrameBody(ChannelHandlerContext ctx,
ByteBuf buffer) |
private void |
WebSocket08FrameDecoder.checkUTF8String(ChannelHandlerContext ctx,
ByteBuf buffer) |
protected void |
WebSocket00FrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
WebSocket08FrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
private WebSocketFrame |
WebSocket00FrameDecoder.decodeBinaryFrame(ChannelHandlerContext ctx,
byte type,
ByteBuf buffer) |
private WebSocketFrame |
WebSocket00FrameDecoder.decodeTextFrame(ChannelHandlerContext ctx,
ByteBuf buffer) |
private void |
WebSocket08FrameDecoder.unmask(ByteBuf frame) |
Constructor and Description |
---|
BinaryWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new binary frame with the specified binary data and the final fragment flag.
|
BinaryWebSocketFrame(ByteBuf binaryData)
Creates a new binary frame with the specified binary data.
|
CloseWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new close frame
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new continuation frame with the specified binary data
|
ContinuationWebSocketFrame(ByteBuf binaryData)
Creates a new continuation frame with the specified binary data.
|
PingWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new ping frame with the specified binary data
|
PingWebSocketFrame(ByteBuf binaryData)
Creates a new ping frame with the specified binary data.
|
PongWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new pong frame with the specified binary data
|
PongWebSocketFrame(ByteBuf binaryData)
Creates a new pong frame with the specified binary data.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(ByteBuf binaryData)
Creates a new text frame with the specified binary data.
|
WebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData) |
WebSocketFrame(ByteBuf binaryData) |
Constructor and Description |
---|
WebSocketChunkedInput(ChunkedInput<ByteBuf> input)
Creates a new instance using the specified input.
|
WebSocketChunkedInput(ChunkedInput<ByteBuf> input,
int rsv)
Creates a new instance using the specified input.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RtspEncoder.encodeInitialLine(ByteBuf buf,
HttpMessage message) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,ByteBuf> |
SctpMessageCompletionHandler.fragments |
Modifier and Type | Method and Description |
---|---|
protected void |
SctpOutboundByteStreamHandler.encode(ChannelHandlerContext ctx,
ByteBuf msg,
java.util.List<java.lang.Object> out) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
ObjectDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
ObjectDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in) |
protected void |
ObjectEncoder.encode(ChannelHandlerContext ctx,
java.io.Serializable msg,
ByteBuf out) |
protected void |
CompatibleObjectEncoder.encode(ChannelHandlerContext ctx,
java.io.Serializable msg,
ByteBuf out) |
protected ByteBuf |
ObjectDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length) |
Modifier and Type | Method and Description |
---|---|
protected void |
SocksCmdRequestDecoder.decode(ChannelHandlerContext ctx,
ByteBuf byteBuf,
java.util.List<java.lang.Object> out) |
protected void |
SocksAuthResponseDecoder.decode(ChannelHandlerContext channelHandlerContext,
ByteBuf byteBuf,
java.util.List<java.lang.Object> out) |
protected void |
SocksAuthRequestDecoder.decode(ChannelHandlerContext ctx,
ByteBuf byteBuf,
java.util.List<java.lang.Object> out) |
protected void |
SocksInitRequestDecoder.decode(ChannelHandlerContext ctx,
ByteBuf byteBuf,
java.util.List<java.lang.Object> out) |
protected void |
SocksCmdResponseDecoder.decode(ChannelHandlerContext ctx,
ByteBuf byteBuf,
java.util.List<java.lang.Object> out) |
protected void |
SocksInitResponseDecoder.decode(ChannelHandlerContext ctx,
ByteBuf byteBuf,
java.util.List<java.lang.Object> out) |
protected void |
SocksMessageEncoder.encode(ChannelHandlerContext ctx,
SocksMessage msg,
ByteBuf out) |
void |
SocksInitRequest.encodeAsByteBuf(ByteBuf byteBuf) |
void |
SocksCmdResponse.encodeAsByteBuf(ByteBuf byteBuf) |
void |
SocksInitResponse.encodeAsByteBuf(ByteBuf byteBuf) |
void |
UnknownSocksRequest.encodeAsByteBuf(ByteBuf byteBuf) |
void |
UnknownSocksResponse.encodeAsByteBuf(ByteBuf byteBuf) |
abstract void |
SocksMessage.encodeAsByteBuf(ByteBuf byteBuf)
Deprecated.
Do not use; this method was intended for an internal use only.
|
void |
SocksCmdRequest.encodeAsByteBuf(ByteBuf byteBuf) |
void |
SocksAuthResponse.encodeAsByteBuf(ByteBuf byteBuf) |
void |
SocksAuthRequest.encodeAsByteBuf(ByteBuf byteBuf) |
(package private) static java.lang.String |
SocksCommonUtils.readUsAscii(ByteBuf buffer,
int length) |
Modifier and Type | Field and Description |
---|---|
private ByteBuf |
SpdyHeaderBlockRawDecoder.cumulation |
private ByteBuf |
DefaultSpdyDataFrame.data |
private ByteBuf |
SpdyHeaderBlockZlibDecoder.decompressed |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
SpdyDataFrame.content()
Returns the data payload of this frame.
|
ByteBuf |
DefaultSpdyDataFrame.content() |
private ByteBuf |
SpdyHeaderBlockJZlibEncoder.encode(ByteBufAllocator alloc) |
private ByteBuf |
SpdyHeaderBlockZlibEncoder.encode(ByteBufAllocator alloc,
int len) |
ByteBuf |
SpdyHeaderBlockRawEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyHeaderBlockJZlibEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyHeaderBlockZlibEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
(package private) abstract ByteBuf |
SpdyHeaderBlockEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyFrameEncoder.encodeDataFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf data) |
ByteBuf |
SpdyFrameEncoder.encodeGoAwayFrame(ByteBufAllocator allocator,
int lastGoodStreamId,
int statusCode) |
ByteBuf |
SpdyFrameEncoder.encodeHeadersFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodePingFrame(ByteBufAllocator allocator,
int id) |
ByteBuf |
SpdyFrameEncoder.encodeRstStreamFrame(ByteBufAllocator allocator,
int streamId,
int statusCode) |
ByteBuf |
SpdyFrameEncoder.encodeSettingsFrame(ByteBufAllocator allocator,
SpdySettingsFrame spdySettingsFrame) |
ByteBuf |
SpdyFrameEncoder.encodeSynReplyFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeSynStreamFrame(ByteBufAllocator allocator,
int streamId,
int associatedToStreamId,
byte priority,
boolean last,
boolean unidirectional,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeWindowUpdateFrame(ByteBufAllocator allocator,
int streamId,
int deltaWindowSize) |
private static ByteBuf |
DefaultSpdyDataFrame.validate(ByteBuf data) |
Modifier and Type | Method and Description |
---|---|
private boolean |
SpdyHeaderBlockZlibEncoder.compressInto(ByteBuf compressed) |
void |
SpdyFrameDecoder.decode(ByteBuf buffer) |
(package private) void |
SpdyHeaderBlockRawDecoder.decode(ByteBufAllocator alloc,
ByteBuf headerBlock,
SpdyHeadersFrame frame) |
(package private) void |
SpdyHeaderBlockZlibDecoder.decode(ByteBufAllocator alloc,
ByteBuf headerBlock,
SpdyHeadersFrame frame) |
(package private) abstract void |
SpdyHeaderBlockDecoder.decode(ByteBufAllocator alloc,
ByteBuf headerBlock,
SpdyHeadersFrame frame)
Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.
|
protected void |
SpdyFrameCodec.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
SpdyOrHttpChooser.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out)
Deprecated.
|
protected void |
SpdyHeaderBlockRawDecoder.decodeHeaderBlock(ByteBuf headerBlock,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyFrameEncoder.encodeDataFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf data) |
ByteBuf |
SpdyFrameEncoder.encodeHeadersFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeSynReplyFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeSynStreamFrame(ByteBufAllocator allocator,
int streamId,
int associatedToStreamId,
byte priority,
boolean last,
boolean unidirectional,
ByteBuf headerBlock) |
(package private) static int |
SpdyCodecUtil.getSignedInt(ByteBuf buf,
int offset)
Reads a big-endian signed integer from the buffer.
|
(package private) static int |
SpdyCodecUtil.getUnsignedInt(ByteBuf buf,
int offset)
Reads a big-endian (31-bit) integer from the buffer.
|
(package private) static int |
SpdyCodecUtil.getUnsignedMedium(ByteBuf buf,
int offset)
Reads a big-endian unsigned medium integer from the buffer.
|
(package private) static int |
SpdyCodecUtil.getUnsignedShort(ByteBuf buf,
int offset)
Reads a big-endian unsigned short integer from the buffer.
|
void |
SpdyFrameDecoderDelegate.readDataFrame(int streamId,
boolean last,
ByteBuf data)
Called when a DATA frame is received.
|
void |
SpdyFrameCodec.readDataFrame(int streamId,
boolean last,
ByteBuf data) |
void |
SpdyFrameDecoderDelegate.readHeaderBlock(ByteBuf headerBlock)
Called when the header block within a SYN_STREAM, SYN_REPLY, or HEADERS frame is received.
|
void |
SpdyFrameCodec.readHeaderBlock(ByteBuf headerBlock) |
private static int |
SpdyHeaderBlockRawDecoder.readLengthField(ByteBuf buffer) |
private void |
SpdyHeaderBlockJZlibEncoder.setInput(ByteBuf decompressed) |
private int |
SpdyHeaderBlockZlibDecoder.setInput(ByteBuf compressed) |
private int |
SpdyHeaderBlockZlibEncoder.setInput(ByteBuf decompressed) |
private static void |
SpdyHeaderBlockRawEncoder.setLengthField(ByteBuf buffer,
int writerIndex,
int length) |
private static ByteBuf |
DefaultSpdyDataFrame.validate(ByteBuf data) |
private void |
SpdyFrameEncoder.writeControlFrameHeader(ByteBuf buffer,
int type,
byte flags,
int length) |
private static void |
SpdyHeaderBlockRawEncoder.writeLengthField(ByteBuf buffer,
int length) |
Constructor and Description |
---|
DefaultSpdyDataFrame(int streamId,
ByteBuf data)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
StringDecoder.decode(ChannelHandlerContext ctx,
ByteBuf msg,
java.util.List<java.lang.Object> out) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
LoggingHandler.formatByteBuf(java.lang.String eventName,
ByteBuf msg)
Returns a String which contains all details to log the
ByteBuf |
Modifier and Type | Field and Description |
---|---|
private ByteBuf |
PemX509Certificate.content |
private ByteBuf |
PemPrivateKey.content |
private ByteBuf |
PemValue.content |
Modifier and Type | Method and Description |
---|---|
private ByteBuf |
SslHandler.allocate(ChannelHandlerContext ctx,
int capacity)
Always prefer a direct buffer when it's pooled, so that we reduce the number of memory copies
in
OpenSslEngine . |
private ByteBuf |
SslHandler.allocateOutNetBuf(ChannelHandlerContext ctx,
int pendingBytes)
Allocates an outbound network buffer for
SSLEngine.wrap(ByteBuffer, ByteBuffer) which can encrypt
the specified amount of pending bytes. |
private static ByteBuf |
PemX509Certificate.append(ByteBufAllocator allocator,
boolean useDirect,
PemEncoded encoded,
int count,
ByteBuf pem)
Appends the
PemEncoded value to the ByteBuf (last arg) and returns it. |
private static ByteBuf |
PemX509Certificate.append(ByteBufAllocator allocator,
boolean useDirect,
java.security.cert.X509Certificate cert,
int count,
ByteBuf pem)
Appends the
X509Certificate value to the ByteBuf (last arg) and returns it. |
ByteBuf |
PemX509Certificate.content() |
ByteBuf |
PemPrivateKey.content() |
ByteBuf |
PemValue.content() |
private static ByteBuf |
PemX509Certificate.newBuffer(ByteBufAllocator allocator,
boolean useDirect,
int initialCapacity) |
(package private) static ByteBuf[] |
PemReader.readCertificates(java.io.File file) |
(package private) static ByteBuf[] |
PemReader.readCertificates(java.io.InputStream in) |
(package private) static ByteBuf |
PemReader.readPrivateKey(java.io.File file) |
(package private) static ByteBuf |
PemReader.readPrivateKey(java.io.InputStream in) |
(package private) static ByteBuf |
SslUtils.toBase64(ByteBufAllocator allocator,
ByteBuf src)
Same as
Base64.encode(ByteBuf, boolean) but allows the use of a custom ByteBufAllocator . |
Modifier and Type | Method and Description |
---|---|
private static ByteBuf |
PemX509Certificate.append(ByteBufAllocator allocator,
boolean useDirect,
PemEncoded encoded,
int count,
ByteBuf pem)
Appends the
PemEncoded value to the ByteBuf (last arg) and returns it. |
private static ByteBuf |
PemX509Certificate.append(ByteBufAllocator allocator,
boolean useDirect,
java.security.cert.X509Certificate cert,
int count,
ByteBuf pem)
Appends the
X509Certificate value to the ByteBuf (last arg) and returns it. |
protected void |
SniHandler.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
SslHandler.decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out) |
private void |
SslHandler.finishWrap(ChannelHandlerContext ctx,
ByteBuf out,
ChannelPromise promise,
boolean inUnwrap,
boolean needUnwrap) |
private static java.security.cert.X509Certificate[] |
SslContext.getCertificatesFromBuffers(ByteBuf[] certs) |
(package private) static int |
SslUtils.getEncryptedPacketLength(ByteBuf buffer,
int offset)
Return how much bytes can be read out of the encrypted data.
|
private static java.security.PrivateKey |
SslContext.getPrivateKeyFromByteBuffer(ByteBuf encodedKeyBuf,
java.lang.String keyPassword) |
static boolean |
SslHandler.isEncrypted(ByteBuf buffer)
Returns
true if the given ByteBuf is encrypted. |
(package private) static ByteBuf |
SslUtils.toBase64(ByteBufAllocator allocator,
ByteBuf src)
Same as
Base64.encode(ByteBuf, boolean) but allows the use of a custom ByteBufAllocator . |
private static java.nio.ByteBuffer |
SslHandler.toByteBuffer(ByteBuf out,
int index,
int len) |
private boolean |
SslHandler.unwrap(ChannelHandlerContext ctx,
ByteBuf packet,
int offset,
int length)
Unwraps inbound SSL records.
|
private javax.net.ssl.SSLEngineResult |
SslHandler.unwrap(javax.net.ssl.SSLEngine engine,
ByteBuf in,
int readerIndex,
int len,
ByteBuf out) |
static PemX509Certificate |
PemX509Certificate.valueOf(ByteBuf key)
Creates a
PemX509Certificate from raw ByteBuf . |
static PemPrivateKey |
PemPrivateKey.valueOf(ByteBuf key)
Creates a
PemPrivateKey from raw ByteBuf . |
private javax.net.ssl.SSLEngineResult |
SslHandler.wrap(ByteBufAllocator alloc,
javax.net.ssl.SSLEngine engine,
ByteBuf in,
ByteBuf out) |
(package private) static void |
SslUtils.zeroout(ByteBuf buffer)
Fills the
ByteBuf with zero bytes. |
(package private) static void |
SslUtils.zerooutAndRelease(ByteBuf buffer)
Fills the
ByteBuf with zero bytes and releases it. |
Constructor and Description |
---|
PemPrivateKey(ByteBuf content) |
PemValue(ByteBuf content,
boolean sensitive) |
PemX509Certificate(ByteBuf content) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
ChunkedStream.readChunk(ChannelHandlerContext ctx) |
ByteBuf |
ChunkedNioFile.readChunk(ChannelHandlerContext ctx) |
ByteBuf |
ChunkedFile.readChunk(ChannelHandlerContext ctx) |
ByteBuf |
ChunkedNioStream.readChunk(ChannelHandlerContext ctx) |