Uses of Class
io.netty.buffer.ByteBuf
-
Packages that use ByteBuf 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.kqueue BSD specific transport.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.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.channel.unix Unix specific transport.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 aByteBuf
and vice versa.io.netty.handler.codec.compression io.netty.handler.codec.dns DNS codec.io.netty.handler.codec.haproxy Decodes an HAProxy proxy protocol headerio.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.http.websocketx.extensions.compression Encoder, decoder, handshakers to handle most common WebSocket Compression Extensions.io.netty.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty.handler.codec.json JSON specific codecs.io.netty.handler.codec.memcache Common superset of ascii and binary classes.io.netty.handler.codec.memcache.binary Implementations and Interfaces for the Memcache Binary protocol.io.netty.handler.codec.mqtt Encoder, decoder and different Message Types for MQTT.io.netty.handler.codec.redis Encoder, decoder for Redis.io.netty.handler.codec.rtsp An RTSP extension based on the HTTP codec.io.netty.handler.codec.serialization Encoder, decoder and their compatibility stream implementations which transform aSerializable
object into a byte buffer and vice versa.io.netty.handler.codec.smtp SMTP codec.io.netty.handler.codec.socks Encoder, decoder and their related message types for Socks.io.netty.handler.codec.socksx Encoder, decoder and their related message types for SOCKS protocol.io.netty.handler.codec.socksx.v4 Encoder, decoder and their related message types for SOCKSv4 protocol.io.netty.handler.codec.socksx.v5 Encoder, decoder and their related message types for SOCKSv5 protocol.io.netty.handler.codec.spdy Encoder, decoder, session handler and their related message types for the SPDY protocol.io.netty.handler.codec.stomp STOMP codecio.netty.handler.codec.string Encoder and decoder which transform aString
into aByteBuf
and vice versa.io.netty.handler.codec.xml Xml specific codecs.io.netty.handler.logging Logs the I/O events for debugging purpose.io.netty.handler.pcap Capture data and write into Pcap format which helps in troubleshooting.io.netty.handler.ssl SSL · TLS implementation based onSSLEngine
io.netty.handler.ssl.ocsp OCSP stapling, formally known as the TLS Certificate Status Request extension, is an alternative approach to the Online Certificate Status Protocol (OCSP) for checking the revocation status of X.509 digital certificates.io.netty.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError
.io.netty.resolver.dns An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously, which supports the queries of an arbitrary DNS record type as well. -
-
Uses of ByteBuf in io.netty.buffer
Subclasses of ByteBuf in io.netty.buffer Modifier and Type Class Description class
AbstractByteBuf
A skeletal implementation of a buffer.class
AbstractDerivedByteBuf
Deprecated.Do not use.(package private) class
AbstractPooledDerivedByteBuf
Abstract base class for derivedByteBuf
implementations.private static class
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf
private static class
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf
class
AbstractReferenceCountedByteBuf
Abstract base class forByteBuf
implementations that count references.(package private) class
AbstractUnpooledSlicedByteBuf
(package private) class
AbstractUnsafeSwappedByteBuf
SpecialSwappedByteBuf
forByteBuf
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.class
DuplicatedByteBuf
Deprecated.Do not use.class
EmptyByteBuf
An emptyByteBuf
whose capacity and maximum capacity are all0
.(package private) class
FixedCompositeByteBuf
private static class
FixedCompositeByteBuf.Component
(package private) class
PooledByteBuf<T>
(package private) class
PooledDirectByteBuf
(package private) class
PooledDuplicatedByteBuf
(package private) class
PooledHeapByteBuf
(package private) class
PooledSlicedByteBuf
(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
class
SlicedByteBuf
Deprecated.Do not use.class
SwappedByteBuf
Deprecated.use the Little Endian accessors, e.g.private static class
UnpooledByteBufAllocator.InstrumentedUnpooledDirectByteBuf
private static class
UnpooledByteBufAllocator.InstrumentedUnpooledHeapByteBuf
private static class
UnpooledByteBufAllocator.InstrumentedUnpooledUnsafeDirectByteBuf
private static class
UnpooledByteBufAllocator.InstrumentedUnpooledUnsafeHeapByteBuf
private static class
UnpooledByteBufAllocator.InstrumentedUnpooledUnsafeNoCleanerDirectByteBuf
class
UnpooledDirectByteBuf
A NIOByteBuffer
based buffer.(package private) class
UnpooledDuplicatedByteBuf
DuplicatedByteBuf
implementation that can do optimizations because it knows the duplicated buffer is of typeAbstractByteBuf
.class
UnpooledHeapByteBuf
Big endian Java heap buffer implementation.(package private) class
UnpooledSlicedByteBuf
A specialAbstractUnpooledSlicedByteBuf
that can make optimizations because it knows the sliced buffer is of typeAbstractByteBuf
.class
UnpooledUnsafeDirectByteBuf
A NIOByteBuffer
based buffer.class
UnpooledUnsafeHeapByteBuf
Big endian Java heap buffer implementation.(package private) class
UnpooledUnsafeNoCleanerDirectByteBuf
(package private) class
UnreleasableByteBuf
AByteBuf
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
SpecialSwappedByteBuf
forByteBuf
s that use unsafe to access the byte array.(package private) class
WrappedByteBuf
Wraps anotherByteBuf
.(package private) class
WrappedCompositeByteBuf
(package private) class
WrappedUnpooledUnsafeDirectByteBuf
Fields in io.netty.buffer declared as ByteBuf Modifier and Type Field Description (package private) ByteBuf
CompositeByteBuf.Component. buf
private ByteBuf
SwappedByteBuf. buf
Deprecated.protected ByteBuf
WrappedByteBuf. buf
private ByteBuf
AbstractUnpooledSlicedByteBuf. buffer
private ByteBuf
ByteBufInputStream. buffer
private ByteBuf
ByteBufOutputStream. buffer
private ByteBuf
DuplicatedByteBuf. buffer
Deprecated.private ByteBuf
ReadOnlyByteBuf. buffer
Deprecated.private ByteBuf[]
FixedCompositeByteBuf. buffers
private ByteBuf
DefaultByteBufHolder. data
private static ByteBuf[]
FixedCompositeByteBuf. EMPTY
static ByteBuf
Unpooled. EMPTY_BUFFER
A buffer whose capacity is0
.private ByteBuf
AbstractByteBufAllocator. emptyBuf
private ByteBuf
AbstractPooledDerivedByteBuf. parent
Deallocations of a pooled derived buffer should always propagate through the entire chain of derived buffers.private ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. referenceCountDelegate
private ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. referenceCountDelegate
private ByteBuf
CompositeByteBuf.Component. slice
(package private) ByteBuf
CompositeByteBuf.Component. srcBuf
private ByteBuf
SimpleLeakAwareByteBuf. trackedByteBuf
This object's is associated with theResourceLeakTracker
.Fields in io.netty.buffer with type parameters of type ByteBuf Modifier and Type Field Description private static java.util.Iterator<ByteBuf>
CompositeByteBuf. EMPTY_ITERATOR
(package private) ResourceLeakTracker<ByteBuf>
SimpleLeakAwareByteBuf. leak
(package private) ResourceLeakTracker<ByteBuf>
SimpleLeakAwareCompositeByteBuf. leak
(package private) static ResourceLeakDetector<ByteBuf>
AbstractByteBuf. leakDetector
Methods in io.netty.buffer that return ByteBuf Modifier and Type Method Description private ByteBuf
CompositeByteBuf. allocBuffer(int capacity)
ByteBuf
ByteBuf. asByteBuf()
AByteBuf
can turn into itself.ByteBuf
ByteBufConvertible. asByteBuf()
Turn this object into aByteBuf
.ByteBuf
AbstractByteBuf. asReadOnly()
ByteBuf
AdvancedLeakAwareByteBuf. asReadOnly()
ByteBuf
AdvancedLeakAwareCompositeByteBuf. asReadOnly()
abstract ByteBuf
ByteBuf. asReadOnly()
Returns a read-only version of this buffer.ByteBuf
EmptyByteBuf. asReadOnly()
ByteBuf
ReadOnlyByteBuf. asReadOnly()
Deprecated.ByteBuf
SimpleLeakAwareByteBuf. asReadOnly()
ByteBuf
SimpleLeakAwareCompositeByteBuf. asReadOnly()
ByteBuf
SwappedByteBuf. asReadOnly()
Deprecated.ByteBuf
UnreleasableByteBuf. asReadOnly()
ByteBuf
WrappedByteBuf. asReadOnly()
ByteBuf
WrappedCompositeByteBuf. asReadOnly()
ByteBuf
AbstractByteBufAllocator. buffer()
ByteBuf
AbstractByteBufAllocator. buffer(int initialCapacity)
ByteBuf
AbstractByteBufAllocator. buffer(int initialCapacity, int maxCapacity)
ByteBuf
ByteBufAllocator. buffer()
Allocate aByteBuf
.ByteBuf
ByteBufAllocator. buffer(int initialCapacity)
Allocate aByteBuf
with the given initial capacity.ByteBuf
ByteBufAllocator. buffer(int initialCapacity, int maxCapacity)
Allocate aByteBuf
with the given initial capacity and the given maximal capacity.ByteBuf
ByteBufOutputStream. buffer()
Returns the buffer where this stream is writing data.private ByteBuf
FixedCompositeByteBuf. buffer(int i)
Return theByteBuf
stored at the given index of the array.static ByteBuf
Unpooled. buffer()
Creates a new big-endian Java heap buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand.static ByteBuf
Unpooled. buffer(int initialCapacity)
Creates a new big-endian Java heap buffer with the specifiedcapacity
, which expands its capacity boundlessly on demand.static ByteBuf
Unpooled. buffer(int initialCapacity, int maxCapacity)
Creates a new big-endian Java heap buffer with the specifiedinitialCapacity
, that may grow up tomaxCapacity
The new buffer'sreaderIndex
andwriterIndex
are0
.ByteBuf
AbstractUnpooledSlicedByteBuf. capacity(int newCapacity)
ByteBuf
AdvancedLeakAwareByteBuf. capacity(int newCapacity)
abstract ByteBuf
ByteBuf. capacity(int newCapacity)
Adjusts the capacity of this buffer.ByteBuf
DuplicatedByteBuf. capacity(int newCapacity)
Deprecated.ByteBuf
EmptyByteBuf. capacity(int newCapacity)
ByteBuf
FixedCompositeByteBuf. capacity(int newCapacity)
ByteBuf
PooledByteBuf. capacity(int newCapacity)
ByteBuf
PooledDuplicatedByteBuf. capacity(int newCapacity)
ByteBuf
PooledSlicedByteBuf. capacity(int newCapacity)
ByteBuf
ReadOnlyByteBuf. capacity(int newCapacity)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. capacity(int newCapacity)
ByteBuf
SwappedByteBuf. capacity(int newCapacity)
Deprecated.ByteBuf
UnpooledDirectByteBuf. capacity(int newCapacity)
ByteBuf
UnpooledHeapByteBuf. capacity(int newCapacity)
ByteBuf
UnpooledUnsafeNoCleanerDirectByteBuf. capacity(int newCapacity)
ByteBuf
WrappedByteBuf. 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()
abstract ByteBuf
ByteBuf. clear()
Sets thereaderIndex
andwriterIndex
of this buffer to0
.ByteBuf
EmptyByteBuf. clear()
ByteBuf
SwappedByteBuf. clear()
Deprecated.ByteBuf
WrappedByteBuf. clear()
ByteBuf
CompositeByteBuf. component(int cIndex)
Return theByteBuf
on the specified indexByteBuf
WrappedCompositeByteBuf. component(int cIndex)
ByteBuf
CompositeByteBuf. componentAtOffset(int offset)
Return theByteBuf
on the specified indexByteBuf
WrappedCompositeByteBuf. componentAtOffset(int offset)
ByteBuf
ByteBufHolder. content()
Return the data which is held by thisByteBufHolder
.ByteBuf
DefaultByteBufHolder. content()
static ByteBuf
Unpooled. copiedBuffer(byte[] array)
Creates a new big-endian buffer whose content is a copy of the specifiedarray
.static ByteBuf
Unpooled. copiedBuffer(byte[]... arrays)
Creates a new big-endian buffer whose content is a merged copy of the specifiedarrays
.static ByteBuf
Unpooled. copiedBuffer(byte[] array, int offset, int length)
Creates a new big-endian buffer whose content is a copy of the specifiedarray
's sub-region.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 specifiedarray
encoded in the specifiedcharset
.static ByteBuf
Unpooled. copiedBuffer(char[] array, java.nio.charset.Charset charset)
Creates a new big-endian buffer whose content is the specifiedarray
encoded in the specifiedcharset
.static ByteBuf
Unpooled. copiedBuffer(ByteBuf buffer)
Creates a new buffer whose content is a copy of the specifiedbuffer
's readable bytes.static ByteBuf
Unpooled. copiedBuffer(ByteBuf... buffers)
Creates a new buffer whose content is a merged copy of the specifiedbuffers
' readable bytes.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 specifiedstring
encoded in the specifiedcharset
.static ByteBuf
Unpooled. copiedBuffer(java.lang.CharSequence string, java.nio.charset.Charset charset)
Creates a new big-endian buffer whose content is the specifiedstring
encoded in the specifiedcharset
.static ByteBuf
Unpooled. copiedBuffer(java.nio.ByteBuffer buffer)
Creates a new buffer whose content is a copy of the specifiedbuffer
's current slice.static ByteBuf
Unpooled. copiedBuffer(java.nio.ByteBuffer... buffers)
Creates a new buffer whose content is a merged copy of the specifiedbuffers
' slices.private static ByteBuf
Unpooled. copiedBuffer(java.nio.CharBuffer buffer, java.nio.charset.Charset charset)
private static ByteBuf
Unpooled. copiedBufferAscii(java.lang.CharSequence string)
private static ByteBuf
Unpooled. copiedBufferUtf8(java.lang.CharSequence string)
ByteBuf
AbstractByteBuf. copy()
ByteBuf
AbstractUnpooledSlicedByteBuf. copy(int index, int length)
ByteBuf
AdvancedLeakAwareByteBuf. copy()
ByteBuf
AdvancedLeakAwareByteBuf. copy(int index, int length)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. copy()
ByteBuf
AdvancedLeakAwareCompositeByteBuf. copy(int index, int length)
abstract ByteBuf
ByteBuf. copy()
Returns a copy of this buffer's readable bytes.abstract ByteBuf
ByteBuf. copy(int index, int length)
Returns a copy of this buffer's sub-region.ByteBuf
CompositeByteBuf. copy(int index, int length)
ByteBuf
DuplicatedByteBuf. copy(int index, int length)
Deprecated.ByteBuf
EmptyByteBuf. copy()
ByteBuf
EmptyByteBuf. copy(int index, int length)
ByteBuf
FixedCompositeByteBuf. copy(int index, int length)
ByteBuf
PooledDirectByteBuf. copy(int index, int length)
ByteBuf
PooledDuplicatedByteBuf. copy(int index, int length)
ByteBuf
PooledHeapByteBuf. copy(int index, int length)
ByteBuf
PooledSlicedByteBuf. copy(int index, int length)
ByteBuf
PooledUnsafeDirectByteBuf. copy(int index, int length)
ByteBuf
ReadOnlyByteBuf. copy(int index, int length)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. copy(int index, int length)
ByteBuf
ReadOnlyUnsafeDirectByteBuf. copy(int index, int length)
ByteBuf
SwappedByteBuf. copy()
Deprecated.ByteBuf
SwappedByteBuf. copy(int index, int length)
Deprecated.ByteBuf
UnpooledDirectByteBuf. copy(int index, int length)
ByteBuf
UnpooledHeapByteBuf. copy(int index, int length)
ByteBuf
UnpooledUnsafeDirectByteBuf. copy(int index, int length)
(package private) static ByteBuf
UnsafeByteBufUtil. copy(AbstractByteBuf buf, long addr, int index, int length)
ByteBuf
WrappedByteBuf. copy()
ByteBuf
WrappedByteBuf. copy(int index, int length)
ByteBuf
WrappedCompositeByteBuf. copy()
ByteBuf
WrappedCompositeByteBuf. copy(int index, int length)
static ByteBuf
Unpooled. copyBoolean(boolean value)
Creates a new single-byte big-endian buffer that holds the specified boolean value.static ByteBuf
Unpooled. copyBoolean(boolean... values)
Create a new big-endian buffer that holds a sequence of the specified boolean values.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. copyDouble(double... values)
Create a new big-endian buffer that holds a sequence of the specified 64-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. copyFloat(float... values)
Create a new big-endian buffer that holds a sequence of the specified 32-bit floating point numbers.static ByteBuf
Unpooled. copyInt(int value)
Creates a new 4-byte big-endian buffer that holds the specified 32-bit integer.static ByteBuf
Unpooled. copyInt(int... values)
Create a big-endian buffer that holds a sequence of the specified 32-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. copyLong(long... values)
Create a new big-endian buffer that holds a sequence of the specified 64-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. copyMedium(int... values)
Create a new big-endian buffer that holds a sequence of the specified 24-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(int... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.static ByteBuf
Unpooled. copyShort(short... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.ByteBuf
AbstractByteBufAllocator. directBuffer()
ByteBuf
AbstractByteBufAllocator. directBuffer(int initialCapacity)
ByteBuf
AbstractByteBufAllocator. directBuffer(int initialCapacity, int maxCapacity)
ByteBuf
ByteBufAllocator. directBuffer()
Allocate a directByteBuf
.ByteBuf
ByteBufAllocator. directBuffer(int initialCapacity)
Allocate a directByteBuf
with the given initial capacity.ByteBuf
ByteBufAllocator. directBuffer(int initialCapacity, int maxCapacity)
Allocate a directByteBuf
with the given initial capacity and the given maximal capacity.static ByteBuf
Unpooled. directBuffer()
Creates a new big-endian direct buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand.static ByteBuf
Unpooled. directBuffer(int initialCapacity)
Creates a new big-endian direct buffer with the specifiedcapacity
, which expands its capacity boundlessly on demand.static ByteBuf
Unpooled. directBuffer(int initialCapacity, int maxCapacity)
Creates a new big-endian direct buffer with the specifiedinitialCapacity
, that may grow up tomaxCapacity
.ByteBuf
AbstractByteBuf. discardReadBytes()
ByteBuf
AdvancedLeakAwareByteBuf. discardReadBytes()
abstract ByteBuf
ByteBuf. discardReadBytes()
Discards the bytes between the 0th index andreaderIndex
.ByteBuf
EmptyByteBuf. discardReadBytes()
ByteBuf
FixedCompositeByteBuf. discardReadBytes()
ByteBuf
ReadOnlyByteBuf. discardReadBytes()
Deprecated.ByteBuf
SwappedByteBuf. discardReadBytes()
Deprecated.ByteBuf
WrappedByteBuf. discardReadBytes()
ByteBuf
AbstractByteBuf. discardSomeReadBytes()
ByteBuf
AdvancedLeakAwareByteBuf. discardSomeReadBytes()
abstract ByteBuf
ByteBuf. discardSomeReadBytes()
Similar todiscardReadBytes()
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
EmptyByteBuf. discardSomeReadBytes()
ByteBuf
SwappedByteBuf. discardSomeReadBytes()
Deprecated.ByteBuf
WrappedByteBuf. discardSomeReadBytes()
ByteBuf
AbstractByteBuf. duplicate()
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. duplicate()
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. duplicate()
ByteBuf
AbstractUnpooledSlicedByteBuf. duplicate()
ByteBuf
AdvancedLeakAwareByteBuf. duplicate()
ByteBuf
AdvancedLeakAwareCompositeByteBuf. duplicate()
abstract ByteBuf
ByteBuf. duplicate()
Returns a buffer which shares the whole region of this buffer.(package private) ByteBuf
CompositeByteBuf.Component. duplicate()
ByteBuf
EmptyByteBuf. duplicate()
ByteBuf
PooledDuplicatedByteBuf. duplicate()
ByteBuf
PooledSlicedByteBuf. duplicate()
ByteBuf
ReadOnlyByteBuf. duplicate()
Deprecated.ByteBuf
SimpleLeakAwareByteBuf. duplicate()
ByteBuf
SimpleLeakAwareCompositeByteBuf. duplicate()
ByteBuf
SwappedByteBuf. duplicate()
Deprecated.ByteBuf
UnreleasableByteBuf. duplicate()
ByteBuf
WrappedByteBuf. duplicate()
ByteBuf
WrappedCompositeByteBuf. duplicate()
(package private) ByteBuf
AbstractPooledDerivedByteBuf. duplicate0()
static ByteBuf
ByteBufUtil. encodeString(ByteBufAllocator alloc, java.nio.CharBuffer src, java.nio.charset.Charset charset)
Encode the givenCharBuffer
using the givenCharset
into a newByteBuf
which is allocated via theByteBufAllocator
.static ByteBuf
ByteBufUtil. encodeString(ByteBufAllocator alloc, java.nio.CharBuffer src, java.nio.charset.Charset charset, int extraCapacity)
Encode the givenCharBuffer
using the givenCharset
into a newByteBuf
which is allocated via theByteBufAllocator
.(package private) static ByteBuf
ByteBufUtil. encodeString0(ByteBufAllocator alloc, boolean enforceHeap, java.nio.CharBuffer src, java.nio.charset.Charset charset, int extraCapacity)
static ByteBuf
ByteBufUtil. ensureAccessible(ByteBuf buffer)
private static ByteBuf
CompositeByteBuf. ensureAccessible(ByteBuf buf)
ByteBuf
AbstractByteBuf. ensureWritable(int minWritableBytes)
ByteBuf
AdvancedLeakAwareByteBuf. ensureWritable(int minWritableBytes)
abstract ByteBuf
ByteBuf. ensureWritable(int minWritableBytes)
Expands the buffercapacity()
to make sure the number of writable bytes is equal to or greater than the specified value.ByteBuf
EmptyByteBuf. ensureWritable(int minWritableBytes)
ByteBuf
ReadOnlyByteBuf. ensureWritable(int minWritableBytes)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. ensureWritable(int minWritableBytes)
ByteBuf
SwappedByteBuf. ensureWritable(int writableBytes)
Deprecated.ByteBuf
WrappedByteBuf. ensureWritable(int minWritableBytes)
ByteBuf
AbstractByteBuf. getBytes(int index, byte[] dst)
ByteBuf
AbstractByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
AbstractByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, byte[] dst)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
abstract ByteBuf
ByteBuf. getBytes(int index, byte[] dst)
Transfers this buffer's data to the specified destination starting at the specified absoluteindex
.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 absoluteindex
.abstract ByteBuf
ByteBuf. getBytes(int index, ByteBuf dst)
Transfers this buffer's data to the specified destination starting at the specified absoluteindex
until the destination becomes non-writable.abstract ByteBuf
ByteBuf. getBytes(int index, ByteBuf dst, int length)
Transfers this buffer's data to the specified destination starting at the specified absoluteindex
.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 absoluteindex
.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 absoluteindex
.abstract ByteBuf
ByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
Transfers this buffer's data to the specified destination starting at the specified absoluteindex
until the destination's position reaches its limit.ByteBuf
DuplicatedByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
Deprecated.ByteBuf
DuplicatedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
DuplicatedByteBuf. getBytes(int index, java.io.OutputStream out, int length)
Deprecated.ByteBuf
DuplicatedByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
Deprecated.ByteBuf
EmptyByteBuf. getBytes(int index, byte[] dst)
ByteBuf
EmptyByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
EmptyByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
EmptyByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
EmptyByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
EmptyByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
EmptyByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
FixedCompositeByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
FixedCompositeByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
FixedCompositeByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
FixedCompositeByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
PooledDirectByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
PooledDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledDirectByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
PooledDirectByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
PooledDuplicatedByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
PooledDuplicatedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledDuplicatedByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
PooledDuplicatedByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
PooledHeapByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
PooledHeapByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledHeapByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
PooledHeapByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
PooledSlicedByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
PooledSlicedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledSlicedByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
PooledSlicedByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
PooledUnsafeDirectByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
PooledUnsafeDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledUnsafeDirectByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
PooledUnsafeDirectByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
ReadOnlyByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
Deprecated.ByteBuf
ReadOnlyByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
ReadOnlyByteBuf. getBytes(int index, java.io.OutputStream out, int length)
Deprecated.ByteBuf
ReadOnlyByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
ReadOnlyByteBufferBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
ReadOnlyByteBufferBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
ReadOnlyByteBufferBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
ReadOnlyUnsafeDirectByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
ReadOnlyUnsafeDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
SwappedByteBuf. getBytes(int index, byte[] dst)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, ByteBuf dst)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, ByteBuf dst, int length)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, java.io.OutputStream out, int length)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
Deprecated.ByteBuf
UnpooledDirectByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
UnpooledDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
UnpooledDirectByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
UnpooledDirectByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
UnpooledHeapByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
UnpooledHeapByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
UnpooledHeapByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
UnpooledHeapByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
UnpooledUnsafeDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
WrappedByteBuf. getBytes(int index, byte[] dst)
ByteBuf
WrappedByteBuf. getBytes(int index, byte[] dst, int dstIndex, int length)
ByteBuf
WrappedByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
WrappedByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
WrappedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
WrappedByteBuf. getBytes(int index, java.io.OutputStream out, int length)
ByteBuf
WrappedByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
ByteBuf
AbstractByteBufAllocator. heapBuffer()
ByteBuf
AbstractByteBufAllocator. heapBuffer(int initialCapacity)
ByteBuf
AbstractByteBufAllocator. heapBuffer(int initialCapacity, int maxCapacity)
ByteBuf
ByteBufAllocator. heapBuffer()
Allocate a heapByteBuf
.ByteBuf
ByteBufAllocator. heapBuffer(int initialCapacity)
Allocate a heapByteBuf
with the given initial capacity.ByteBuf
ByteBufAllocator. heapBuffer(int initialCapacity, int maxCapacity)
Allocate a heapByteBuf
with the given initial capacity and the given maximal capacity.ByteBuf
CompositeByteBuf. internalComponent(int cIndex)
Return the internalByteBuf
on the specified index.ByteBuf
WrappedCompositeByteBuf. internalComponent(int cIndex)
ByteBuf
CompositeByteBuf. internalComponentAtOffset(int offset)
Return the internalByteBuf
on the specified offset.ByteBuf
WrappedCompositeByteBuf. internalComponentAtOffset(int offset)
ByteBuf
AbstractByteBufAllocator. ioBuffer()
ByteBuf
AbstractByteBufAllocator. ioBuffer(int initialCapacity)
ByteBuf
AbstractByteBufAllocator. ioBuffer(int initialCapacity, int maxCapacity)
ByteBuf
ByteBufAllocator. ioBuffer()
Allocate aByteBuf
, preferably a direct buffer which is suitable for I/O.ByteBuf
ByteBufAllocator. ioBuffer(int initialCapacity)
Allocate aByteBuf
, preferably a direct buffer which is suitable for I/O.ByteBuf
ByteBufAllocator. ioBuffer(int initialCapacity, int maxCapacity)
Allocate aByteBuf
, preferably a direct buffer which is suitable for I/O.ByteBuf
AbstractByteBuf. markReaderIndex()
abstract ByteBuf
ByteBuf. markReaderIndex()
Marks the currentreaderIndex
in this buffer.ByteBuf
EmptyByteBuf. markReaderIndex()
ByteBuf
SwappedByteBuf. markReaderIndex()
Deprecated.ByteBuf
WrappedByteBuf. markReaderIndex()
ByteBuf
AbstractByteBuf. markWriterIndex()
abstract ByteBuf
ByteBuf. markWriterIndex()
Marks the currentwriterIndex
in this buffer.ByteBuf
EmptyByteBuf. markWriterIndex()
ByteBuf
SwappedByteBuf. markWriterIndex()
Deprecated.ByteBuf
WrappedByteBuf. markWriterIndex()
protected abstract ByteBuf
AbstractByteBufAllocator. newDirectBuffer(int initialCapacity, int maxCapacity)
Create a directByteBuf
with the given initialCapacity and maxCapacity.protected ByteBuf
PooledByteBufAllocator. newDirectBuffer(int initialCapacity, int maxCapacity)
protected ByteBuf
UnpooledByteBufAllocator. newDirectBuffer(int initialCapacity, int maxCapacity)
protected abstract ByteBuf
AbstractByteBufAllocator. newHeapBuffer(int initialCapacity, int maxCapacity)
Create a heapByteBuf
with the given initialCapacity and maxCapacity.protected ByteBuf
PooledByteBufAllocator. newHeapBuffer(int initialCapacity, int maxCapacity)
protected ByteBuf
UnpooledByteBufAllocator. newHeapBuffer(int initialCapacity, int maxCapacity)
ByteBuf
CompositeByteBuf.CompositeByteBufIterator. next()
ByteBuf
AbstractByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
AdvancedLeakAwareByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. order(java.nio.ByteOrder endianness)
abstract ByteBuf
ByteBuf. order(java.nio.ByteOrder endianness)
Deprecated.use the Little Endian accessors, e.g.ByteBuf
EmptyByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
SimpleLeakAwareByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
SimpleLeakAwareCompositeByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
SwappedByteBuf. order(java.nio.ByteOrder endianness)
Deprecated.ByteBuf
UnreleasableByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
WrappedByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
WrappedCompositeByteBuf. order(java.nio.ByteOrder endianness)
ByteBuf
AbstractByteBuf. readBytes(byte[] dst)
ByteBuf
AbstractByteBuf. readBytes(byte[] dst, int dstIndex, int length)
ByteBuf
AbstractByteBuf. readBytes(int length)
ByteBuf
AbstractByteBuf. readBytes(ByteBuf dst)
ByteBuf
AbstractByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
AbstractByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
AbstractByteBuf. readBytes(java.io.OutputStream out, int length)
ByteBuf
AbstractByteBuf. readBytes(java.nio.ByteBuffer dst)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(byte[] dst)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(byte[] dst, int dstIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(int length)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(ByteBuf dst)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(java.io.OutputStream out, int length)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(java.nio.ByteBuffer dst)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. readBytes(int length)
abstract ByteBuf
ByteBuf. readBytes(byte[] dst)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=dst.length
).abstract ByteBuf
ByteBuf. readBytes(byte[] dst, int dstIndex, int length)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. readBytes(int length)
Transfers this buffer's data to a newly created buffer starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. readBytes(ByteBuf dst)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
until the destination becomes non-writable, and increases thereaderIndex
by the number of the transferred bytes.abstract ByteBuf
ByteBuf. readBytes(ByteBuf dst, int length)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. readBytes(java.io.OutputStream out, int length)
Transfers this buffer's data to the specified stream starting at the currentreaderIndex
.abstract ByteBuf
ByteBuf. readBytes(java.nio.ByteBuffer dst)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
until the destination's position reaches its limit, and increases thereaderIndex
by the number of the transferred bytes.static ByteBuf
ByteBufUtil. readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length)
Read the given amount of bytes into a newByteBuf
that is allocated from theByteBufAllocator
.ByteBuf
EmptyByteBuf. readBytes(byte[] dst)
ByteBuf
EmptyByteBuf. readBytes(byte[] dst, int dstIndex, int length)
ByteBuf
EmptyByteBuf. readBytes(int length)
ByteBuf
EmptyByteBuf. readBytes(ByteBuf dst)
ByteBuf
EmptyByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
EmptyByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
EmptyByteBuf. readBytes(java.io.OutputStream out, int length)
ByteBuf
EmptyByteBuf. readBytes(java.nio.ByteBuffer dst)
ByteBuf
PooledDirectByteBuf. readBytes(byte[] dst, int dstIndex, int length)
ByteBuf
PooledDirectByteBuf. readBytes(java.io.OutputStream out, int length)
ByteBuf
PooledDirectByteBuf. readBytes(java.nio.ByteBuffer dst)
ByteBuf
SwappedByteBuf. readBytes(byte[] dst)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(byte[] dst, int dstIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(int length)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(ByteBuf dst)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(ByteBuf dst, int length)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(java.io.OutputStream out, int length)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(java.nio.ByteBuffer dst)
Deprecated.ByteBuf
UnpooledDirectByteBuf. readBytes(byte[] dst, int dstIndex, int length)
ByteBuf
UnpooledDirectByteBuf. readBytes(java.io.OutputStream out, int length)
ByteBuf
UnpooledDirectByteBuf. readBytes(java.nio.ByteBuffer dst)
ByteBuf
WrappedByteBuf. readBytes(byte[] dst)
ByteBuf
WrappedByteBuf. readBytes(byte[] dst, int dstIndex, int length)
ByteBuf
WrappedByteBuf. readBytes(int length)
ByteBuf
WrappedByteBuf. readBytes(ByteBuf dst)
ByteBuf
WrappedByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
WrappedByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
WrappedByteBuf. readBytes(java.io.OutputStream out, int length)
ByteBuf
WrappedByteBuf. readBytes(java.nio.ByteBuffer dst)
ByteBuf
WrappedCompositeByteBuf. readBytes(int length)
ByteBuf
AbstractByteBuf. readerIndex(int readerIndex)
abstract ByteBuf
ByteBuf. readerIndex(int readerIndex)
Sets thereaderIndex
of this buffer.ByteBuf
EmptyByteBuf. readerIndex(int readerIndex)
ByteBuf
SwappedByteBuf. readerIndex(int readerIndex)
Deprecated.ByteBuf
WrappedByteBuf. readerIndex(int readerIndex)
ByteBuf
AbstractByteBuf. readRetainedSlice(int length)
ByteBuf
AdvancedLeakAwareByteBuf. readRetainedSlice(int length)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. readRetainedSlice(int length)
abstract ByteBuf
ByteBuf. readRetainedSlice(int length)
Returns a new retained slice of this buffer's sub-region starting at the currentreaderIndex
and increases thereaderIndex
by the size of the new slice (=length
).ByteBuf
EmptyByteBuf. readRetainedSlice(int length)
ByteBuf
SimpleLeakAwareByteBuf. readRetainedSlice(int length)
ByteBuf
SimpleLeakAwareCompositeByteBuf. readRetainedSlice(int length)
ByteBuf
SwappedByteBuf. readRetainedSlice(int length)
Deprecated.ByteBuf
UnreleasableByteBuf. readRetainedSlice(int length)
ByteBuf
WrappedByteBuf. readRetainedSlice(int length)
ByteBuf
WrappedCompositeByteBuf. readRetainedSlice(int length)
ByteBuf
AbstractByteBuf. readSlice(int length)
ByteBuf
AdvancedLeakAwareByteBuf. readSlice(int length)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. readSlice(int length)
abstract ByteBuf
ByteBuf. readSlice(int length)
Returns a new slice of this buffer's sub-region starting at the currentreaderIndex
and increases thereaderIndex
by the size of the new slice (=length
).ByteBuf
EmptyByteBuf. readSlice(int length)
ByteBuf
SimpleLeakAwareByteBuf. readSlice(int length)
ByteBuf
SimpleLeakAwareCompositeByteBuf. readSlice(int length)
ByteBuf
SwappedByteBuf. readSlice(int length)
Deprecated.ByteBuf
UnreleasableByteBuf. readSlice(int length)
ByteBuf
WrappedByteBuf. readSlice(int length)
ByteBuf
WrappedCompositeByteBuf. readSlice(int length)
ByteBuf
AbstractByteBuf. resetReaderIndex()
abstract ByteBuf
ByteBuf. resetReaderIndex()
Repositions the currentreaderIndex
to the markedreaderIndex
in this buffer.ByteBuf
EmptyByteBuf. resetReaderIndex()
ByteBuf
SwappedByteBuf. resetReaderIndex()
Deprecated.ByteBuf
WrappedByteBuf. resetReaderIndex()
ByteBuf
AbstractByteBuf. resetWriterIndex()
abstract ByteBuf
ByteBuf. resetWriterIndex()
Repositions the currentwriterIndex
to the markedwriterIndex
in this buffer.ByteBuf
EmptyByteBuf. resetWriterIndex()
ByteBuf
SwappedByteBuf. resetWriterIndex()
Deprecated.ByteBuf
WrappedByteBuf. resetWriterIndex()
ByteBuf
AbstractDerivedByteBuf. retain()
Deprecated.ByteBuf
AbstractDerivedByteBuf. retain(int increment)
Deprecated.ByteBuf
AbstractReferenceCountedByteBuf. retain()
ByteBuf
AbstractReferenceCountedByteBuf. retain(int increment)
ByteBuf
AdvancedLeakAwareByteBuf. retain()
ByteBuf
AdvancedLeakAwareByteBuf. retain(int increment)
abstract ByteBuf
ByteBuf. retain()
abstract ByteBuf
ByteBuf. retain(int increment)
ByteBuf
EmptyByteBuf. retain()
ByteBuf
EmptyByteBuf. retain(int increment)
ByteBuf
SwappedByteBuf. retain()
Deprecated.ByteBuf
SwappedByteBuf. retain(int increment)
Deprecated.ByteBuf
UnreleasableByteBuf. retain()
ByteBuf
UnreleasableByteBuf. retain(int increment)
ByteBuf
WrappedByteBuf. retain()
ByteBuf
WrappedByteBuf. retain(int increment)
(package private) ByteBuf
AbstractDerivedByteBuf. retain0()
Deprecated.(package private) ByteBuf
AbstractDerivedByteBuf. retain0(int increment)
Deprecated.(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. retain0()
(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. retain0(int increment)
(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. retain0()
(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. retain0(int increment)
ByteBuf
AbstractByteBuf. retainedDuplicate()
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. retainedDuplicate()
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. retainedDuplicate()
ByteBuf
AdvancedLeakAwareByteBuf. retainedDuplicate()
ByteBuf
AdvancedLeakAwareCompositeByteBuf. retainedDuplicate()
abstract ByteBuf
ByteBuf. retainedDuplicate()
Returns a retained buffer which shares the whole region of this buffer.ByteBuf
EmptyByteBuf. retainedDuplicate()
ByteBuf
PooledByteBuf. retainedDuplicate()
ByteBuf
PooledDuplicatedByteBuf. retainedDuplicate()
ByteBuf
PooledSlicedByteBuf. retainedDuplicate()
ByteBuf
SimpleLeakAwareByteBuf. retainedDuplicate()
ByteBuf
SimpleLeakAwareCompositeByteBuf. retainedDuplicate()
ByteBuf
SwappedByteBuf. retainedDuplicate()
Deprecated.ByteBuf
UnreleasableByteBuf. retainedDuplicate()
ByteBuf
WrappedByteBuf. retainedDuplicate()
ByteBuf
WrappedCompositeByteBuf. retainedDuplicate()
ByteBuf
AbstractByteBuf. retainedSlice()
ByteBuf
AbstractByteBuf. retainedSlice(int index, int length)
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. retainedSlice()
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. retainedSlice(int index, int length)
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. retainedSlice()
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. retainedSlice(int index, int length)
ByteBuf
AbstractPooledDerivedByteBuf. retainedSlice()
ByteBuf
AdvancedLeakAwareByteBuf. retainedSlice()
ByteBuf
AdvancedLeakAwareByteBuf. retainedSlice(int index, int length)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. retainedSlice()
ByteBuf
AdvancedLeakAwareCompositeByteBuf. retainedSlice(int index, int length)
abstract ByteBuf
ByteBuf. retainedSlice()
Returns a retained slice of this buffer's readable bytes.abstract ByteBuf
ByteBuf. retainedSlice(int index, int length)
Returns a retained slice of this buffer's sub-region.ByteBuf
EmptyByteBuf. retainedSlice()
ByteBuf
EmptyByteBuf. retainedSlice(int index, int length)
ByteBuf
PooledByteBuf. retainedSlice()
ByteBuf
PooledByteBuf. retainedSlice(int index, int length)
ByteBuf
PooledDuplicatedByteBuf. retainedSlice(int index, int length)
ByteBuf
PooledSlicedByteBuf. retainedSlice(int index, int length)
ByteBuf
SimpleLeakAwareByteBuf. retainedSlice()
ByteBuf
SimpleLeakAwareByteBuf. retainedSlice(int index, int length)
ByteBuf
SimpleLeakAwareCompositeByteBuf. retainedSlice()
ByteBuf
SimpleLeakAwareCompositeByteBuf. retainedSlice(int index, int length)
ByteBuf
SwappedByteBuf. retainedSlice()
Deprecated.ByteBuf
SwappedByteBuf. retainedSlice(int index, int length)
Deprecated.ByteBuf
UnreleasableByteBuf. retainedSlice()
ByteBuf
UnreleasableByteBuf. retainedSlice(int index, int length)
ByteBuf
WrappedByteBuf. retainedSlice()
ByteBuf
WrappedByteBuf. retainedSlice(int index, int length)
ByteBuf
WrappedCompositeByteBuf. retainedSlice()
ByteBuf
WrappedCompositeByteBuf. retainedSlice(int index, int length)
ByteBuf
AbstractByteBuf. 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 absoluteindex
in this buffer.ByteBuf
EmptyByteBuf. setBoolean(int index, boolean value)
ByteBuf
SwappedByteBuf. setBoolean(int index, boolean value)
Deprecated.ByteBuf
WrappedByteBuf. setBoolean(int index, boolean value)
ByteBuf
AbstractByteBuf. setByte(int index, int value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setByte(int index, int value)
ByteBuf
AdvancedLeakAwareByteBuf. setByte(int index, int value)
abstract ByteBuf
ByteBuf. setByte(int index, int value)
Sets the specified byte at the specified absoluteindex
in this buffer.ByteBuf
DuplicatedByteBuf. setByte(int index, int value)
Deprecated.ByteBuf
EmptyByteBuf. setByte(int index, int value)
ByteBuf
FixedCompositeByteBuf. setByte(int index, int value)
ByteBuf
PooledDuplicatedByteBuf. setByte(int index, int value)
ByteBuf
PooledSlicedByteBuf. setByte(int index, int value)
ByteBuf
ReadOnlyByteBuf. setByte(int index, int value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setByte(int index, int value)
ByteBuf
SwappedByteBuf. setByte(int index, int value)
Deprecated.ByteBuf
UnpooledDirectByteBuf. setByte(int index, int value)
ByteBuf
UnpooledHeapByteBuf. setByte(int index, int value)
ByteBuf
UnpooledUnsafeDirectByteBuf. setByte(int index, int value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setByte(int index, int value)
ByteBuf
WrappedByteBuf. setByte(int index, int value)
ByteBuf
AbstractByteBuf. setBytes(int index, byte[] src)
ByteBuf
AbstractByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
AbstractByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, byte[] src)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, java.nio.ByteBuffer src)
abstract ByteBuf
ByteBuf. setBytes(int index, byte[] src)
Transfers the specified source array's data to this buffer starting at the specified absoluteindex
.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 absoluteindex
.abstract ByteBuf
ByteBuf. setBytes(int index, ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
until the source buffer becomes unreadable.abstract ByteBuf
ByteBuf. setBytes(int index, ByteBuf src, int length)
Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
.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 absoluteindex
.abstract ByteBuf
ByteBuf. setBytes(int index, java.nio.ByteBuffer src)
Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
until the source buffer's position reaches its limit.ByteBuf
DuplicatedByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
Deprecated.ByteBuf
DuplicatedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
DuplicatedByteBuf. setBytes(int index, java.nio.ByteBuffer src)
Deprecated.ByteBuf
EmptyByteBuf. setBytes(int index, byte[] src)
ByteBuf
EmptyByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
EmptyByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
EmptyByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
EmptyByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
EmptyByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
FixedCompositeByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
FixedCompositeByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
FixedCompositeByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
PooledDirectByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
PooledDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledDirectByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
PooledDuplicatedByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
PooledDuplicatedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledDuplicatedByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
PooledHeapByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
PooledHeapByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledHeapByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
PooledSlicedByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
PooledSlicedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledSlicedByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
PooledUnsafeDirectByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
PooledUnsafeDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledUnsafeDirectByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
ReadOnlyByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
Deprecated.ByteBuf
ReadOnlyByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
ReadOnlyByteBuf. setBytes(int index, java.nio.ByteBuffer src)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
ReadOnlyByteBufferBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
ReadOnlyByteBufferBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
SwappedByteBuf. setBytes(int index, byte[] src)
Deprecated.ByteBuf
SwappedByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. setBytes(int index, ByteBuf src)
Deprecated.ByteBuf
SwappedByteBuf. setBytes(int index, ByteBuf src, int length)
Deprecated.ByteBuf
SwappedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. setBytes(int index, java.nio.ByteBuffer src)
Deprecated.ByteBuf
UnpooledDirectByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
UnpooledDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
UnpooledDirectByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
UnpooledHeapByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
UnpooledHeapByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
UnpooledHeapByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
UnpooledUnsafeDirectByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
UnpooledUnsafeDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
UnpooledUnsafeDirectByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
WrappedByteBuf. setBytes(int index, byte[] src)
ByteBuf
WrappedByteBuf. setBytes(int index, byte[] src, int srcIndex, int length)
ByteBuf
WrappedByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
WrappedByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
WrappedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
WrappedByteBuf. setBytes(int index, java.nio.ByteBuffer src)
ByteBuf
AbstractByteBuf. setChar(int index, int value)
ByteBuf
AbstractUnsafeSwappedByteBuf. 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 absoluteindex
in this buffer.ByteBuf
EmptyByteBuf. setChar(int index, int value)
ByteBuf
SwappedByteBuf. setChar(int index, int value)
Deprecated.ByteBuf
WrappedByteBuf. setChar(int index, int value)
ByteBuf
AbstractByteBuf. setDouble(int index, double value)
ByteBuf
AbstractUnsafeSwappedByteBuf. 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 absoluteindex
in this buffer.ByteBuf
EmptyByteBuf. setDouble(int index, double value)
ByteBuf
SwappedByteBuf. setDouble(int index, double value)
Deprecated.ByteBuf
WrappedByteBuf. setDouble(int index, double value)
ByteBuf
ByteBuf. setDoubleLE(int index, double value)
Sets the specified 64-bit floating-point number at the specified absoluteindex
in this buffer in Little Endian Byte Order.ByteBuf
AbstractByteBuf. setFloat(int index, float value)
ByteBuf
AbstractUnsafeSwappedByteBuf. 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 absoluteindex
in this buffer.ByteBuf
EmptyByteBuf. setFloat(int index, float value)
ByteBuf
SwappedByteBuf. setFloat(int index, float value)
Deprecated.ByteBuf
WrappedByteBuf. setFloat(int index, float value)
ByteBuf
ByteBuf. setFloatLE(int index, float value)
Sets the specified 32-bit floating-point number at the specified absoluteindex
in this buffer in Little Endian Byte Order.ByteBuf
AbstractByteBuf. setIndex(int readerIndex, int writerIndex)
abstract ByteBuf
ByteBuf. setIndex(int readerIndex, int writerIndex)
Sets thereaderIndex
andwriterIndex
of this buffer in one shot.ByteBuf
EmptyByteBuf. setIndex(int readerIndex, int writerIndex)
ByteBuf
SwappedByteBuf. setIndex(int readerIndex, int writerIndex)
Deprecated.ByteBuf
WrappedByteBuf. setIndex(int readerIndex, int writerIndex)
ByteBuf
AbstractByteBuf. setInt(int index, int value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setInt(int index, int value)
ByteBuf
AbstractUnsafeSwappedByteBuf. setInt(int index, int value)
ByteBuf
AdvancedLeakAwareByteBuf. setInt(int index, int value)
abstract ByteBuf
ByteBuf. setInt(int index, int value)
Sets the specified 32-bit integer at the specified absoluteindex
in this buffer.ByteBuf
DuplicatedByteBuf. setInt(int index, int value)
Deprecated.ByteBuf
EmptyByteBuf. setInt(int index, int value)
ByteBuf
FixedCompositeByteBuf. setInt(int index, int value)
ByteBuf
PooledDuplicatedByteBuf. setInt(int index, int value)
ByteBuf
PooledSlicedByteBuf. setInt(int index, int value)
ByteBuf
ReadOnlyByteBuf. setInt(int index, int value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setInt(int index, int value)
ByteBuf
SwappedByteBuf. setInt(int index, int value)
Deprecated.ByteBuf
UnpooledDirectByteBuf. setInt(int index, int value)
ByteBuf
UnpooledHeapByteBuf. setInt(int index, int value)
ByteBuf
UnpooledUnsafeDirectByteBuf. setInt(int index, int value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setInt(int index, int value)
ByteBuf
WrappedByteBuf. setInt(int index, int value)
ByteBuf
AbstractByteBuf. setIntLE(int index, int value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setIntLE(int index, int value)
ByteBuf
AdvancedLeakAwareByteBuf. setIntLE(int index, int value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. setIntLE(int index, int value)
abstract ByteBuf
ByteBuf. setIntLE(int index, int value)
Sets the specified 32-bit integer at the specified absoluteindex
in this buffer with Little Endian byte order .ByteBuf
DuplicatedByteBuf. setIntLE(int index, int value)
Deprecated.ByteBuf
EmptyByteBuf. setIntLE(int index, int value)
ByteBuf
PooledDuplicatedByteBuf. setIntLE(int index, int value)
ByteBuf
PooledSlicedByteBuf. setIntLE(int index, int value)
ByteBuf
ReadOnlyByteBuf. setIntLE(int index, int value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setIntLE(int index, int value)
ByteBuf
SwappedByteBuf. setIntLE(int index, int value)
Deprecated.ByteBuf
UnpooledHeapByteBuf. setIntLE(int index, int value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setIntLE(int index, int value)
ByteBuf
WrappedByteBuf. setIntLE(int index, int value)
ByteBuf
WrappedCompositeByteBuf. setIntLE(int index, int value)
ByteBuf
AbstractByteBuf. setLong(int index, long value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setLong(int index, long value)
ByteBuf
AbstractUnsafeSwappedByteBuf. setLong(int index, long value)
ByteBuf
AdvancedLeakAwareByteBuf. setLong(int index, long value)
abstract ByteBuf
ByteBuf. setLong(int index, long value)
Sets the specified 64-bit long integer at the specified absoluteindex
in this buffer.ByteBuf
DuplicatedByteBuf. setLong(int index, long value)
Deprecated.ByteBuf
EmptyByteBuf. setLong(int index, long value)
ByteBuf
FixedCompositeByteBuf. setLong(int index, long value)
ByteBuf
PooledDuplicatedByteBuf. setLong(int index, long value)
ByteBuf
PooledSlicedByteBuf. setLong(int index, long value)
ByteBuf
ReadOnlyByteBuf. setLong(int index, long value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setLong(int index, long value)
ByteBuf
SwappedByteBuf. setLong(int index, long value)
Deprecated.ByteBuf
UnpooledDirectByteBuf. setLong(int index, long value)
ByteBuf
UnpooledHeapByteBuf. setLong(int index, long value)
ByteBuf
UnpooledUnsafeDirectByteBuf. setLong(int index, long value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setLong(int index, long value)
ByteBuf
WrappedByteBuf. setLong(int index, long value)
ByteBuf
AbstractByteBuf. setLongLE(int index, long value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setLongLE(int index, long value)
ByteBuf
AdvancedLeakAwareByteBuf. setLongLE(int index, long value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. setLongLE(int index, long value)
abstract ByteBuf
ByteBuf. setLongLE(int index, long value)
Sets the specified 64-bit long integer at the specified absoluteindex
in this buffer in Little Endian Byte Order.ByteBuf
DuplicatedByteBuf. setLongLE(int index, long value)
Deprecated.ByteBuf
EmptyByteBuf. setLongLE(int index, long value)
ByteBuf
PooledDuplicatedByteBuf. setLongLE(int index, long value)
ByteBuf
PooledSlicedByteBuf. setLongLE(int index, long value)
ByteBuf
ReadOnlyByteBuf. setLongLE(int index, long value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setLongLE(int index, long value)
ByteBuf
SwappedByteBuf. setLongLE(int index, long value)
Deprecated.ByteBuf
UnpooledHeapByteBuf. setLongLE(int index, long value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setLongLE(int index, long value)
ByteBuf
WrappedByteBuf. setLongLE(int index, long value)
ByteBuf
WrappedCompositeByteBuf. setLongLE(int index, long value)
ByteBuf
AbstractByteBuf. setMedium(int index, int value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setMedium(int index, int value)
ByteBuf
AdvancedLeakAwareByteBuf. setMedium(int index, int value)
abstract ByteBuf
ByteBuf. setMedium(int index, int value)
Sets the specified 24-bit medium integer at the specified absoluteindex
in this buffer.ByteBuf
DuplicatedByteBuf. setMedium(int index, int value)
Deprecated.ByteBuf
EmptyByteBuf. setMedium(int index, int value)
ByteBuf
FixedCompositeByteBuf. setMedium(int index, int value)
ByteBuf
PooledDuplicatedByteBuf. setMedium(int index, int value)
ByteBuf
PooledSlicedByteBuf. setMedium(int index, int value)
ByteBuf
ReadOnlyByteBuf. setMedium(int index, int value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setMedium(int index, int value)
ByteBuf
SwappedByteBuf. setMedium(int index, int value)
Deprecated.ByteBuf
UnpooledDirectByteBuf. setMedium(int index, int value)
ByteBuf
UnpooledHeapByteBuf. setMedium(int index, int value)
ByteBuf
UnpooledUnsafeDirectByteBuf. setMedium(int index, int value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setMedium(int index, int value)
ByteBuf
WrappedByteBuf. setMedium(int index, int value)
ByteBuf
AbstractByteBuf. setMediumLE(int index, int value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setMediumLE(int index, int value)
ByteBuf
AdvancedLeakAwareByteBuf. setMediumLE(int index, int value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. setMediumLE(int index, int value)
abstract ByteBuf
ByteBuf. setMediumLE(int index, int value)
Sets the specified 24-bit medium integer at the specified absoluteindex
in this buffer in the Little Endian Byte Order.ByteBuf
DuplicatedByteBuf. setMediumLE(int index, int value)
Deprecated.ByteBuf
EmptyByteBuf. setMediumLE(int index, int value)
ByteBuf
PooledDuplicatedByteBuf. setMediumLE(int index, int value)
ByteBuf
PooledSlicedByteBuf. setMediumLE(int index, int value)
ByteBuf
ReadOnlyByteBuf. setMediumLE(int index, int value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setMediumLE(int index, int value)
ByteBuf
SwappedByteBuf. setMediumLE(int index, int value)
Deprecated.ByteBuf
UnpooledHeapByteBuf. setMediumLE(int index, int value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setMediumLE(int index, int value)
ByteBuf
WrappedByteBuf. setMediumLE(int index, int value)
ByteBuf
WrappedCompositeByteBuf. setMediumLE(int index, int value)
ByteBuf
AbstractByteBuf. setShort(int index, int value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setShort(int index, int value)
ByteBuf
AbstractUnsafeSwappedByteBuf. setShort(int index, int value)
ByteBuf
AdvancedLeakAwareByteBuf. setShort(int index, int value)
abstract ByteBuf
ByteBuf. setShort(int index, int value)
Sets the specified 16-bit short integer at the specified absoluteindex
in this buffer.ByteBuf
DuplicatedByteBuf. setShort(int index, int value)
Deprecated.ByteBuf
EmptyByteBuf. setShort(int index, int value)
ByteBuf
FixedCompositeByteBuf. setShort(int index, int value)
ByteBuf
PooledDuplicatedByteBuf. setShort(int index, int value)
ByteBuf
PooledSlicedByteBuf. setShort(int index, int value)
ByteBuf
ReadOnlyByteBuf. setShort(int index, int value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setShort(int index, int value)
ByteBuf
SwappedByteBuf. setShort(int index, int value)
Deprecated.ByteBuf
UnpooledDirectByteBuf. setShort(int index, int value)
ByteBuf
UnpooledHeapByteBuf. setShort(int index, int value)
ByteBuf
UnpooledUnsafeDirectByteBuf. setShort(int index, int value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setShort(int index, int value)
ByteBuf
WrappedByteBuf. setShort(int index, int value)
static ByteBuf
ByteBufUtil. setShortBE(ByteBuf buf, int index, int shortValue)
Sets a big-endian 16-bit short integer to the buffer.ByteBuf
AbstractByteBuf. setShortLE(int index, int value)
ByteBuf
AbstractUnpooledSlicedByteBuf. setShortLE(int index, int value)
ByteBuf
AdvancedLeakAwareByteBuf. setShortLE(int index, int value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. setShortLE(int index, int value)
abstract ByteBuf
ByteBuf. setShortLE(int index, int value)
Sets the specified 16-bit short integer at the specified absoluteindex
in this buffer with the Little Endian Byte Order.ByteBuf
DuplicatedByteBuf. setShortLE(int index, int value)
Deprecated.ByteBuf
EmptyByteBuf. setShortLE(int index, int value)
ByteBuf
PooledDuplicatedByteBuf. setShortLE(int index, int value)
ByteBuf
PooledSlicedByteBuf. setShortLE(int index, int value)
ByteBuf
ReadOnlyByteBuf. setShortLE(int index, int value)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setShortLE(int index, int value)
ByteBuf
SwappedByteBuf. setShortLE(int index, int value)
Deprecated.ByteBuf
UnpooledHeapByteBuf. setShortLE(int index, int value)
ByteBuf
UnpooledUnsafeHeapByteBuf. setShortLE(int index, int value)
ByteBuf
WrappedByteBuf. setShortLE(int index, int value)
ByteBuf
WrappedCompositeByteBuf. setShortLE(int index, int value)
ByteBuf
AbstractByteBuf. setZero(int index, int length)
ByteBuf
AdvancedLeakAwareByteBuf. setZero(int index, int length)
abstract ByteBuf
ByteBuf. setZero(int index, int length)
Fills this buffer with NUL (0x00) starting at the specified absoluteindex
.ByteBuf
EmptyByteBuf. setZero(int index, int length)
ByteBuf
PooledUnsafeDirectByteBuf. setZero(int index, int length)
ByteBuf
PooledUnsafeHeapByteBuf. setZero(int index, int length)
ByteBuf
SwappedByteBuf. setZero(int index, int length)
Deprecated.ByteBuf
UnpooledUnsafeDirectByteBuf. setZero(int index, int length)
ByteBuf
UnpooledUnsafeHeapByteBuf. setZero(int index, int length)
ByteBuf
WrappedByteBuf. setZero(int index, int length)
ByteBuf
AbstractByteBuf. skipBytes(int length)
ByteBuf
AdvancedLeakAwareByteBuf. skipBytes(int length)
abstract ByteBuf
ByteBuf. skipBytes(int length)
Increases the currentreaderIndex
by the specifiedlength
in this buffer.ByteBuf
EmptyByteBuf. skipBytes(int length)
ByteBuf
SwappedByteBuf. skipBytes(int length)
Deprecated.ByteBuf
WrappedByteBuf. skipBytes(int length)
ByteBuf
AbstractByteBuf. slice()
ByteBuf
AbstractByteBuf. slice(int index, int length)
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. slice(int index, int length)
ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. slice(int index, int length)
ByteBuf
AbstractPooledDerivedByteBuf. slice(int index, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. slice(int index, int length)
ByteBuf
AdvancedLeakAwareByteBuf. slice()
ByteBuf
AdvancedLeakAwareByteBuf. slice(int index, int length)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. slice()
ByteBuf
AdvancedLeakAwareCompositeByteBuf. slice(int index, int length)
abstract ByteBuf
ByteBuf. slice()
Returns a slice of this buffer's readable bytes.abstract ByteBuf
ByteBuf. slice(int index, int length)
Returns a slice of this buffer's sub-region.(package private) ByteBuf
CompositeByteBuf.Component. slice()
ByteBuf
DuplicatedByteBuf. slice(int index, int length)
Deprecated.ByteBuf
EmptyByteBuf. slice()
ByteBuf
EmptyByteBuf. slice(int index, int length)
ByteBuf
PooledSlicedByteBuf. slice(int index, int length)
ByteBuf
ReadOnlyByteBuf. slice(int index, int length)
Deprecated.ByteBuf
SimpleLeakAwareByteBuf. slice()
ByteBuf
SimpleLeakAwareByteBuf. slice(int index, int length)
ByteBuf
SimpleLeakAwareCompositeByteBuf. slice()
ByteBuf
SimpleLeakAwareCompositeByteBuf. slice(int index, int length)
ByteBuf
SwappedByteBuf. slice()
Deprecated.ByteBuf
SwappedByteBuf. slice(int index, int length)
Deprecated.ByteBuf
UnreleasableByteBuf. slice()
ByteBuf
UnreleasableByteBuf. slice(int index, int length)
ByteBuf
WrappedByteBuf. slice()
ByteBuf
WrappedByteBuf. slice(int index, int length)
ByteBuf
WrappedCompositeByteBuf. slice()
ByteBuf
WrappedCompositeByteBuf. slice(int index, int length)
static ByteBuf
ByteBufUtil. threadLocalDirectBuffer()
Returns a cached thread-local direct buffer, if available.protected static ByteBuf
AbstractByteBufAllocator. toLeakAwareBuffer(ByteBuf buf)
ByteBuf
AbstractDerivedByteBuf. touch()
Deprecated.ByteBuf
AbstractDerivedByteBuf. touch(java.lang.Object hint)
Deprecated.ByteBuf
AbstractReferenceCountedByteBuf. touch()
ByteBuf
AbstractReferenceCountedByteBuf. touch(java.lang.Object hint)
ByteBuf
AdvancedLeakAwareByteBuf. touch()
ByteBuf
AdvancedLeakAwareByteBuf. touch(java.lang.Object hint)
abstract ByteBuf
ByteBuf. touch()
abstract ByteBuf
ByteBuf. touch(java.lang.Object hint)
ByteBuf
EmptyByteBuf. touch()
ByteBuf
EmptyByteBuf. touch(java.lang.Object hint)
ByteBuf
SimpleLeakAwareByteBuf. touch()
ByteBuf
SimpleLeakAwareByteBuf. touch(java.lang.Object hint)
ByteBuf
SwappedByteBuf. touch()
Deprecated.ByteBuf
SwappedByteBuf. touch(java.lang.Object hint)
Deprecated.ByteBuf
UnreleasableByteBuf. touch()
ByteBuf
UnreleasableByteBuf. touch(java.lang.Object hint)
ByteBuf
WrappedByteBuf. touch()
ByteBuf
WrappedByteBuf. touch(java.lang.Object hint)
(package private) ByteBuf
AbstractDerivedByteBuf. touch0()
Deprecated.(package private) ByteBuf
AbstractDerivedByteBuf. touch0(java.lang.Object hint)
Deprecated.(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. touch0()
(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedDuplicateByteBuf. touch0(java.lang.Object hint)
(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. touch0()
(package private) ByteBuf
AbstractPooledDerivedByteBuf.PooledNonRetainedSlicedByteBuf. touch0(java.lang.Object hint)
static ByteBuf
Unpooled. unmodifiableBuffer(ByteBuf buffer)
Deprecated.UseasReadOnly()
.static ByteBuf
Unpooled. unmodifiableBuffer(ByteBuf... buffers)
Deprecated.static ByteBuf
Unpooled. unreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the givenByteBuf
which will just ignore release and retain calls.ByteBuf
AbstractUnpooledSlicedByteBuf. unwrap()
abstract ByteBuf
ByteBuf. unwrap()
Return the underlying buffer instance if this buffer is a wrapper of another buffer.ByteBuf
CompositeByteBuf. unwrap()
ByteBuf
DuplicatedByteBuf. unwrap()
Deprecated.ByteBuf
EmptyByteBuf. unwrap()
ByteBuf
FixedCompositeByteBuf. unwrap()
ByteBuf
PooledByteBuf. unwrap()
ByteBuf
ReadOnlyByteBuf. unwrap()
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. unwrap()
ByteBuf
SwappedByteBuf. unwrap()
Deprecated.ByteBuf
UnpooledDirectByteBuf. unwrap()
ByteBuf
UnpooledHeapByteBuf. unwrap()
ByteBuf
WrappedByteBuf. unwrap()
ByteBuf
WrappedCompositeByteBuf. unwrap()
private ByteBuf
SimpleLeakAwareByteBuf. unwrappedDerived(ByteBuf derived)
private static ByteBuf
SimpleLeakAwareByteBuf. unwrapSwapped(ByteBuf buf)
ByteBuf
CompositeByteBuf.ByteWrapper. wrap(T bytes)
static ByteBuf
Unpooled. wrappedBuffer(byte[] array)
Creates a new big-endian buffer which wraps the specifiedarray
.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, int offset, int length)
Creates a new big-endian buffer which wraps the sub-region of the specifiedarray
.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.(package private) static <T> ByteBuf
Unpooled. wrappedBuffer(int maxNumComponents, CompositeByteBuf.ByteWrapper<T> wrapper, T[] array)
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
Unpooled. wrappedBuffer(ByteBuf buffer)
Creates a new buffer which wraps the specified buffer's readable bytes.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(java.nio.ByteBuffer buffer)
Creates a new buffer which wraps the specified NIO buffer's current slice.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.private static ByteBuf
Unpooled. wrappedUnmodifiableBuffer(boolean copy, ByteBuf... buffers)
static ByteBuf
Unpooled. wrappedUnmodifiableBuffer(ByteBuf... buffers)
static ByteBuf
ByteBufUtil. writeAscii(ByteBufAllocator alloc, java.lang.CharSequence seq)
ByteBuf
AbstractByteBuf. writeBoolean(boolean value)
ByteBuf
AdvancedLeakAwareByteBuf. writeBoolean(boolean value)
abstract ByteBuf
ByteBuf. writeBoolean(boolean value)
Sets the specified boolean at the currentwriterIndex
and increases thewriterIndex
by1
in this buffer.ByteBuf
EmptyByteBuf. writeBoolean(boolean value)
ByteBuf
SwappedByteBuf. writeBoolean(boolean value)
Deprecated.ByteBuf
WrappedByteBuf. writeBoolean(boolean value)
ByteBuf
AbstractByteBuf. writeByte(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeByte(int value)
abstract ByteBuf
ByteBuf. writeByte(int value)
Sets the specified byte at the currentwriterIndex
and increases thewriterIndex
by1
in this buffer.ByteBuf
EmptyByteBuf. writeByte(int value)
ByteBuf
SwappedByteBuf. writeByte(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeByte(int value)
ByteBuf
AbstractByteBuf. writeBytes(byte[] src)
ByteBuf
AbstractByteBuf. writeBytes(byte[] src, int srcIndex, int length)
ByteBuf
AbstractByteBuf. writeBytes(ByteBuf src)
ByteBuf
AbstractByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
AbstractByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
AbstractByteBuf. writeBytes(java.nio.ByteBuffer src)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(byte[] src)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(byte[] src, int srcIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(ByteBuf src)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(java.nio.ByteBuffer src)
abstract ByteBuf
ByteBuf. writeBytes(byte[] src)
Transfers the specified source array's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=src.length
).abstract ByteBuf
ByteBuf. writeBytes(byte[] src, int srcIndex, int length)
Transfers the specified source array's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. writeBytes(ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
until the source buffer becomes unreadable, and increases thewriterIndex
by the number of the transferred bytes.abstract ByteBuf
ByteBuf. writeBytes(ByteBuf src, int length)
Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. writeBytes(java.nio.ByteBuffer src)
Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
until the source buffer's position reaches its limit, and increases thewriterIndex
by the number of the transferred bytes.ByteBuf
EmptyByteBuf. writeBytes(byte[] src)
ByteBuf
EmptyByteBuf. writeBytes(byte[] src, int srcIndex, int length)
ByteBuf
EmptyByteBuf. writeBytes(ByteBuf src)
ByteBuf
EmptyByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
EmptyByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
EmptyByteBuf. writeBytes(java.nio.ByteBuffer src)
ByteBuf
SwappedByteBuf. writeBytes(byte[] src)
Deprecated.ByteBuf
SwappedByteBuf. writeBytes(byte[] src, int srcIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. writeBytes(ByteBuf src)
Deprecated.ByteBuf
SwappedByteBuf. writeBytes(ByteBuf src, int length)
Deprecated.ByteBuf
SwappedByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
SwappedByteBuf. writeBytes(java.nio.ByteBuffer src)
Deprecated.ByteBuf
WrappedByteBuf. writeBytes(byte[] src)
ByteBuf
WrappedByteBuf. writeBytes(byte[] src, int srcIndex, int length)
ByteBuf
WrappedByteBuf. writeBytes(ByteBuf src)
ByteBuf
WrappedByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
WrappedByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
WrappedByteBuf. writeBytes(java.nio.ByteBuffer src)
ByteBuf
AbstractByteBuf. writeChar(int value)
ByteBuf
AbstractUnsafeSwappedByteBuf. writeChar(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeChar(int value)
abstract ByteBuf
ByteBuf. writeChar(int value)
Sets the specified 2-byte UTF-16 character at the currentwriterIndex
and increases thewriterIndex
by2
in this buffer.ByteBuf
EmptyByteBuf. writeChar(int value)
ByteBuf
SwappedByteBuf. writeChar(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeChar(int value)
ByteBuf
AbstractByteBuf. writeDouble(double value)
ByteBuf
AbstractUnsafeSwappedByteBuf. writeDouble(double value)
ByteBuf
AdvancedLeakAwareByteBuf. writeDouble(double value)
abstract ByteBuf
ByteBuf. writeDouble(double value)
Sets the specified 64-bit floating point number at the currentwriterIndex
and increases thewriterIndex
by8
in this buffer.ByteBuf
EmptyByteBuf. writeDouble(double value)
ByteBuf
SwappedByteBuf. writeDouble(double value)
Deprecated.ByteBuf
WrappedByteBuf. writeDouble(double value)
ByteBuf
ByteBuf. writeDoubleLE(double value)
Sets the specified 64-bit floating point number at the currentwriterIndex
in Little Endian Byte Order and increases thewriterIndex
by8
in this buffer.ByteBuf
AbstractByteBuf. writeFloat(float value)
ByteBuf
AbstractUnsafeSwappedByteBuf. writeFloat(float value)
ByteBuf
AdvancedLeakAwareByteBuf. writeFloat(float value)
abstract ByteBuf
ByteBuf. writeFloat(float value)
Sets the specified 32-bit floating point number at the currentwriterIndex
and increases thewriterIndex
by4
in this buffer.ByteBuf
EmptyByteBuf. writeFloat(float value)
ByteBuf
SwappedByteBuf. writeFloat(float value)
Deprecated.ByteBuf
WrappedByteBuf. writeFloat(float value)
ByteBuf
ByteBuf. writeFloatLE(float value)
Sets the specified 32-bit floating point number at the currentwriterIndex
in Little Endian Byte Order and increases thewriterIndex
by4
in this buffer.ByteBuf
AbstractByteBuf. writeInt(int value)
ByteBuf
AbstractUnsafeSwappedByteBuf. writeInt(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeInt(int value)
abstract ByteBuf
ByteBuf. writeInt(int value)
Sets the specified 32-bit integer at the currentwriterIndex
and increases thewriterIndex
by4
in this buffer.ByteBuf
EmptyByteBuf. writeInt(int value)
ByteBuf
SwappedByteBuf. writeInt(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeInt(int value)
ByteBuf
AbstractByteBuf. writeIntLE(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeIntLE(int value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. writeIntLE(int value)
abstract ByteBuf
ByteBuf. writeIntLE(int value)
Sets the specified 32-bit integer at the currentwriterIndex
in the Little Endian Byte Order and increases thewriterIndex
by4
in this buffer.ByteBuf
EmptyByteBuf. writeIntLE(int value)
ByteBuf
SwappedByteBuf. writeIntLE(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeIntLE(int value)
ByteBuf
WrappedCompositeByteBuf. writeIntLE(int value)
ByteBuf
AbstractByteBuf. writeLong(long value)
ByteBuf
AbstractUnsafeSwappedByteBuf. writeLong(long value)
ByteBuf
AdvancedLeakAwareByteBuf. writeLong(long value)
abstract ByteBuf
ByteBuf. writeLong(long value)
Sets the specified 64-bit long integer at the currentwriterIndex
and increases thewriterIndex
by8
in this buffer.ByteBuf
EmptyByteBuf. writeLong(long value)
ByteBuf
SwappedByteBuf. writeLong(long value)
Deprecated.ByteBuf
WrappedByteBuf. writeLong(long value)
ByteBuf
AbstractByteBuf. writeLongLE(long value)
ByteBuf
AdvancedLeakAwareByteBuf. writeLongLE(long value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. writeLongLE(long value)
abstract ByteBuf
ByteBuf. writeLongLE(long value)
Sets the specified 64-bit long integer at the currentwriterIndex
in the Little Endian Byte Order and increases thewriterIndex
by8
in this buffer.ByteBuf
EmptyByteBuf. writeLongLE(long value)
ByteBuf
SwappedByteBuf. writeLongLE(long value)
Deprecated.ByteBuf
WrappedByteBuf. writeLongLE(long value)
ByteBuf
WrappedCompositeByteBuf. writeLongLE(long value)
ByteBuf
AbstractByteBuf. writeMedium(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeMedium(int value)
abstract ByteBuf
ByteBuf. writeMedium(int value)
Sets the specified 24-bit medium integer at the currentwriterIndex
and increases thewriterIndex
by3
in this buffer.ByteBuf
EmptyByteBuf. writeMedium(int value)
ByteBuf
SwappedByteBuf. writeMedium(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeMedium(int value)
static ByteBuf
ByteBufUtil. writeMediumBE(ByteBuf buf, int mediumValue)
Writes a big-endian 24-bit medium integer to the buffer.ByteBuf
AbstractByteBuf. writeMediumLE(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeMediumLE(int value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. writeMediumLE(int value)
abstract ByteBuf
ByteBuf. writeMediumLE(int value)
Sets the specified 24-bit medium integer at the currentwriterIndex
in the Little Endian Byte Order and increases thewriterIndex
by3
in this buffer.ByteBuf
EmptyByteBuf. writeMediumLE(int value)
ByteBuf
SwappedByteBuf. writeMediumLE(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeMediumLE(int value)
ByteBuf
WrappedCompositeByteBuf. writeMediumLE(int value)
ByteBuf
AbstractByteBuf. writerIndex(int writerIndex)
abstract ByteBuf
ByteBuf. writerIndex(int writerIndex)
Sets thewriterIndex
of this buffer.ByteBuf
EmptyByteBuf. writerIndex(int writerIndex)
ByteBuf
SwappedByteBuf. writerIndex(int writerIndex)
Deprecated.ByteBuf
WrappedByteBuf. writerIndex(int writerIndex)
ByteBuf
AbstractByteBuf. writeShort(int value)
ByteBuf
AbstractUnsafeSwappedByteBuf. writeShort(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeShort(int value)
abstract ByteBuf
ByteBuf. writeShort(int value)
Sets the specified 16-bit short integer at the currentwriterIndex
and increases thewriterIndex
by2
in this buffer.ByteBuf
EmptyByteBuf. writeShort(int value)
ByteBuf
SwappedByteBuf. writeShort(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeShort(int value)
static ByteBuf
ByteBufUtil. writeShortBE(ByteBuf buf, int shortValue)
Writes a big-endian 16-bit short integer to the buffer.ByteBuf
AbstractByteBuf. writeShortLE(int value)
ByteBuf
AdvancedLeakAwareByteBuf. writeShortLE(int value)
ByteBuf
AdvancedLeakAwareCompositeByteBuf. writeShortLE(int value)
abstract ByteBuf
ByteBuf. writeShortLE(int value)
Sets the specified 16-bit short integer in the Little Endian Byte Order at the currentwriterIndex
and increases thewriterIndex
by2
in this buffer.ByteBuf
EmptyByteBuf. writeShortLE(int value)
ByteBuf
SwappedByteBuf. writeShortLE(int value)
Deprecated.ByteBuf
WrappedByteBuf. writeShortLE(int value)
ByteBuf
WrappedCompositeByteBuf. writeShortLE(int value)
static ByteBuf
ByteBufUtil. writeUtf8(ByteBufAllocator alloc, java.lang.CharSequence seq)
ByteBuf
AbstractByteBuf. writeZero(int length)
ByteBuf
AdvancedLeakAwareByteBuf. writeZero(int length)
abstract ByteBuf
ByteBuf. writeZero(int length)
Fills this buffer with NUL (0x00) starting at the currentwriterIndex
and increases thewriterIndex
by the specifiedlength
.ByteBuf
EmptyByteBuf. writeZero(int length)
ByteBuf
PooledUnsafeDirectByteBuf. writeZero(int length)
ByteBuf
PooledUnsafeHeapByteBuf. writeZero(int length)
ByteBuf
SwappedByteBuf. writeZero(int length)
Deprecated.ByteBuf
UnpooledUnsafeDirectByteBuf. writeZero(int length)
ByteBuf
UnpooledUnsafeHeapByteBuf. writeZero(int length)
ByteBuf
WrappedByteBuf. writeZero(int length)
Methods in io.netty.buffer that return types with arguments of type ByteBuf Modifier and Type Method Description java.util.List<ByteBuf>
AdvancedLeakAwareCompositeByteBuf. decompose(int offset, int length)
java.util.List<ByteBuf>
CompositeByteBuf. decompose(int offset, int length)
Same withAbstractByteBuf.slice(int, int)
except that this method returns a list.java.util.List<ByteBuf>
WrappedCompositeByteBuf. decompose(int offset, int length)
java.util.Iterator<ByteBuf>
AdvancedLeakAwareCompositeByteBuf. iterator()
java.util.Iterator<ByteBuf>
CompositeByteBuf. iterator()
java.util.Iterator<ByteBuf>
WrappedCompositeByteBuf. iterator()
Methods in io.netty.buffer with parameters of type ByteBuf Modifier and Type Method Description CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponent(boolean increaseWriterIndex, int cIndex, ByteBuf buffer)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponent(boolean increaseWriterIndex, ByteBuf buffer)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponent(int cIndex, ByteBuf buffer)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponent(ByteBuf buffer)
CompositeByteBuf
CompositeByteBuf. addComponent(boolean increaseWriterIndex, int cIndex, ByteBuf buffer)
Add the givenByteBuf
on the specific index and increase thewriterIndex
ifincreaseWriterIndex
istrue
.CompositeByteBuf
CompositeByteBuf. addComponent(boolean increaseWriterIndex, ByteBuf buffer)
CompositeByteBuf
CompositeByteBuf. addComponent(int cIndex, ByteBuf buffer)
Add the givenByteBuf
on the specific index.CompositeByteBuf
CompositeByteBuf. addComponent(ByteBuf buffer)
Add the givenByteBuf
.CompositeByteBuf
WrappedCompositeByteBuf. addComponent(boolean increaseWriterIndex, int cIndex, ByteBuf buffer)
CompositeByteBuf
WrappedCompositeByteBuf. addComponent(boolean increaseWriterIndex, ByteBuf buffer)
CompositeByteBuf
WrappedCompositeByteBuf. addComponent(int cIndex, ByteBuf buffer)
CompositeByteBuf
WrappedCompositeByteBuf. addComponent(ByteBuf buffer)
private int
CompositeByteBuf. addComponent0(boolean increaseWriterIndex, int cIndex, ByteBuf buffer)
Precondition is thatbuffer != null
.CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponents(boolean increaseWriterIndex, ByteBuf... buffers)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponents(int cIndex, ByteBuf... buffers)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponents(ByteBuf... buffers)
CompositeByteBuf
CompositeByteBuf. addComponents(boolean increaseWriterIndex, ByteBuf... buffers)
CompositeByteBuf
CompositeByteBuf. addComponents(int cIndex, ByteBuf... buffers)
Add the givenByteBuf
s on the specific indexCompositeByteBuf
CompositeByteBuf. addComponents(ByteBuf... buffers)
Add the givenByteBuf
s.CompositeByteBuf
WrappedCompositeByteBuf. addComponents(boolean increaseWriterIndex, ByteBuf... buffers)
CompositeByteBuf
WrappedCompositeByteBuf. addComponents(int cIndex, ByteBuf... buffers)
CompositeByteBuf
WrappedCompositeByteBuf. addComponents(ByteBuf... buffers)
private CompositeByteBuf
CompositeByteBuf. addComponents0(boolean increaseWriterIndex, int cIndex, ByteBuf[] buffers, int arrOffset)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addFlattenedComponents(boolean increaseWriterIndex, ByteBuf buffer)
CompositeByteBuf
CompositeByteBuf. addFlattenedComponents(boolean increaseWriterIndex, ByteBuf buffer)
CompositeByteBuf
WrappedCompositeByteBuf. addFlattenedComponents(boolean increaseWriterIndex, ByteBuf buffer)
static void
ByteBufUtil. appendPrettyHexDump(java.lang.StringBuilder dump, ByteBuf buf)
Appends the prettified multi-line hexadecimal dump of the specifiedByteBuf
to the specifiedStringBuilder
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 specifiedByteBuf
to the specifiedStringBuilder
that is easy to read by humans, starting at the givenoffset
using the givenlength
.private static void
ByteBufUtil.HexUtil. appendPrettyHexDump(java.lang.StringBuilder dump, ByteBuf buf, int offset, int length)
private static void
AbstractByteBuf. checkReadableBounds(ByteBuf src, int length)
(package private) static void
AbstractUnpooledSlicedByteBuf. checkSliceOutOfBounds(int index, int length, ByteBuf buffer)
private void
SimpleLeakAwareCompositeByteBuf. closeLeak(ByteBuf trackedByteBuf)
static int
ByteBufUtil. compare(ByteBuf bufferA, ByteBuf bufferB)
Compares the two specified buffers as described incompareTo(ByteBuf)
.int
AbstractByteBuf. compareTo(ByteBuf that)
abstract int
ByteBuf. compareTo(ByteBuf buffer)
Compares the content of the specified buffer to the content of this buffer.int
EmptyByteBuf. compareTo(ByteBuf buffer)
int
SwappedByteBuf. compareTo(ByteBuf buffer)
Deprecated.int
WrappedByteBuf. compareTo(ByteBuf buffer)
int
WrappedCompositeByteBuf. compareTo(ByteBuf that)
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 buffer)
Creates a new buffer whose content is a copy of the specifiedbuffer
's readable bytes.static ByteBuf
Unpooled. copiedBuffer(ByteBuf... buffers)
Creates a new buffer whose content is a merged copy of the specifiedbuffers
' readable bytes.static void
ByteBufUtil. copy(AsciiString src, int srcIdx, ByteBuf dst, int length)
static void
ByteBufUtil. copy(AsciiString src, int srcIdx, ByteBuf dst, int dstIdx, int length)
static void
ByteBufUtil. copy(AsciiString src, ByteBuf dst)
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 ByteBuf
ByteBufUtil. ensureAccessible(ByteBuf buffer)
private static ByteBuf
CompositeByteBuf. ensureAccessible(ByteBuf buf)
static boolean
ByteBufUtil. equals(ByteBuf a, int aStartIndex, ByteBuf b, int bStartIndex, int length)
Returnstrue
if and only if the two specified buffers are identical to each other forlength
bytes starting ataStartIndex
index for thea
buffer andbStartIndex
index for theb
buffer.static boolean
ByteBufUtil. equals(ByteBuf bufferA, ByteBuf bufferB)
Returnstrue
if and only if the two specified buffers are identical to each other as described inequals(Object)
.ByteBuf
AbstractByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
AbstractByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
AdvancedLeakAwareByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. getBytes(int index, ByteBuf dst)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. getBytes(int index, ByteBuf dst, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
abstract ByteBuf
ByteBuf. getBytes(int index, ByteBuf dst)
Transfers this buffer's data to the specified destination starting at the specified absoluteindex
until the destination becomes non-writable.abstract ByteBuf
ByteBuf. getBytes(int index, ByteBuf dst, int length)
Transfers this buffer's data to the specified destination starting at the specified absoluteindex
.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 absoluteindex
.static byte[]
ByteBufUtil. getBytes(ByteBuf buf)
Create a copy of the underlying storage frombuf
into a byte array.static byte[]
ByteBufUtil. getBytes(ByteBuf buf, int start, int length)
Create a copy of the underlying storage frombuf
into a byte array.static byte[]
ByteBufUtil. getBytes(ByteBuf buf, int start, int length, boolean copy)
Return an array of the underlying storage frombuf
into a byte array.CompositeByteBuf
CompositeByteBuf. getBytes(int index, ByteBuf dst)
CompositeByteBuf
CompositeByteBuf. getBytes(int index, ByteBuf dst, int length)
CompositeByteBuf
CompositeByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
DuplicatedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
EmptyByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
EmptyByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
EmptyByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
FixedCompositeByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledDuplicatedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledHeapByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledSlicedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
PooledUnsafeDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
ReadOnlyByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
ReadOnlyUnsafeDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
SwappedByteBuf. getBytes(int index, ByteBuf dst)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, ByteBuf dst, int length)
Deprecated.ByteBuf
SwappedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
UnpooledDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
UnpooledHeapByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
UnpooledUnsafeDirectByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
(package private) static void
UnsafeByteBufUtil. getBytes(AbstractByteBuf buf, long addr, int index, ByteBuf dst, int dstIndex, int length)
ByteBuf
WrappedByteBuf. getBytes(int index, ByteBuf dst)
ByteBuf
WrappedByteBuf. getBytes(int index, ByteBuf dst, int length)
ByteBuf
WrappedByteBuf. getBytes(int index, ByteBuf dst, int dstIndex, int length)
CompositeByteBuf
WrappedCompositeByteBuf. getBytes(int index, ByteBuf dst)
CompositeByteBuf
WrappedCompositeByteBuf. getBytes(int index, ByteBuf dst, int length)
CompositeByteBuf
WrappedCompositeByteBuf. 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 ofindexOf(int, int, byte)
.static int
ByteBufUtil. indexOf(ByteBuf needle, ByteBuf haystack)
Returns the reader index of needle in haystack, or -1 if needle is not in haystack.(package private) <U extends AbstractPooledDerivedByteBuf>
UAbstractPooledDerivedByteBuf. init(AbstractByteBuf unwrapped, ByteBuf wrapped, int readerIndex, int writerIndex, int maxCapacity)
static boolean
ByteBufUtil. isAccessible(ByteBuf buffer)
private static boolean
ByteBufUtil. isAscii(ByteBuf buf, int index, int length)
Returnstrue
if the specifiedByteBuf
starting atindex
withlength
is valid ASCII text, otherwise returnfalse
.static boolean
ByteBufUtil. isText(ByteBuf buf, int index, int length, java.nio.charset.Charset charset)
Returnstrue
if the specifiedByteBuf
starting atindex
withlength
is valid text using the givenCharset
, otherwise returnfalse
.static boolean
ByteBufUtil. isText(ByteBuf buf, java.nio.charset.Charset charset)
private static boolean
ByteBufUtil. isUtf8(ByteBuf buf, int index, int length)
Returnstrue
if the specifiedByteBuf
starting atindex
withlength
is valid UTF8 text, otherwise returnfalse
.private static long
ByteBufUtil. maxSuf(ByteBuf x, int m, int start, boolean isSuffix)
private CompositeByteBuf.Component
CompositeByteBuf. newComponent(ByteBuf buf, int offset)
(package private) static PooledDuplicatedByteBuf
PooledDuplicatedByteBuf. newInstance(AbstractByteBuf unwrapped, ByteBuf wrapped, int readerIndex, int writerIndex)
(package private) static PooledSlicedByteBuf
PooledSlicedByteBuf. newInstance(AbstractByteBuf unwrapped, ByteBuf wrapped, int index, int length)
private static PooledSlicedByteBuf
PooledSlicedByteBuf. newInstance0(AbstractByteBuf unwrapped, ByteBuf wrapped, int adjustment, int length)
protected AdvancedLeakAwareByteBuf
AdvancedLeakAwareByteBuf. newLeakAwareByteBuf(ByteBuf buf, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
protected AdvancedLeakAwareByteBuf
AdvancedLeakAwareCompositeByteBuf. newLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
protected SimpleLeakAwareByteBuf
SimpleLeakAwareByteBuf. newLeakAwareByteBuf(ByteBuf buf, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
private SimpleLeakAwareByteBuf
SimpleLeakAwareByteBuf. newLeakAwareByteBuf(ByteBuf wrapped, ResourceLeakTracker<ByteBuf> leakTracker)
private SimpleLeakAwareByteBuf
SimpleLeakAwareCompositeByteBuf. newLeakAwareByteBuf(ByteBuf wrapped)
protected SimpleLeakAwareByteBuf
SimpleLeakAwareCompositeByteBuf. newLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
private SimpleLeakAwareByteBuf
SimpleLeakAwareByteBuf. newSharedLeakAwareByteBuf(ByteBuf wrapped)
(package private) void
AbstractPooledDerivedByteBuf. parent(ByteBuf newParent)
private static java.lang.String
ByteBufUtil.HexUtil. prettyHexDump(ByteBuf buffer, int offset, int length)
static java.lang.String
ByteBufUtil. prettyHexDump(ByteBuf buffer)
Returns a multi-line hexadecimal dump of the specifiedByteBuf
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 specifiedByteBuf
that is easy to read by humans, starting at the givenoffset
using the givenlength
.ByteBuf
AbstractByteBuf. readBytes(ByteBuf dst)
ByteBuf
AbstractByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
AbstractByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(ByteBuf dst)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
AdvancedLeakAwareByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. readBytes(ByteBuf dst)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. readBytes(ByteBuf dst, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
abstract ByteBuf
ByteBuf. readBytes(ByteBuf dst)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
until the destination becomes non-writable, and increases thereaderIndex
by the number of the transferred bytes.abstract ByteBuf
ByteBuf. readBytes(ByteBuf dst, int length)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).static ByteBuf
ByteBufUtil. readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length)
Read the given amount of bytes into a newByteBuf
that is allocated from theByteBufAllocator
.CompositeByteBuf
CompositeByteBuf. readBytes(ByteBuf dst)
CompositeByteBuf
CompositeByteBuf. readBytes(ByteBuf dst, int length)
CompositeByteBuf
CompositeByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
EmptyByteBuf. readBytes(ByteBuf dst)
ByteBuf
EmptyByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
EmptyByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
SwappedByteBuf. readBytes(ByteBuf dst)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(ByteBuf dst, int length)
Deprecated.ByteBuf
SwappedByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
Deprecated.ByteBuf
WrappedByteBuf. readBytes(ByteBuf dst)
ByteBuf
WrappedByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
WrappedByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
CompositeByteBuf
WrappedCompositeByteBuf. readBytes(ByteBuf dst)
CompositeByteBuf
WrappedCompositeByteBuf. readBytes(ByteBuf dst, int length)
CompositeByteBuf
WrappedCompositeByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
static int
ByteBufUtil. readIntBE(ByteBuf buf)
Reads a big-endian 32-bit integer from the buffer.static int
ByteBufUtil. readUnsignedShortBE(ByteBuf buf)
Reads a big-endian unsigned 16-bit short integer from the buffer.ByteBufHolder
ByteBufHolder. replace(ByteBuf content)
Returns a newByteBufHolder
which contains the specifiedcontent
.ByteBufHolder
DefaultByteBufHolder. replace(ByteBuf content)
Returns a newByteBufHolder
which contains the specifiedcontent
.static int
ByteBufUtil. reserveAndWriteUtf8(ByteBuf buf, java.lang.CharSequence seq, int reserveBytes)
static int
ByteBufUtil. reserveAndWriteUtf8(ByteBuf buf, java.lang.CharSequence seq, int start, int end, int reserveBytes)
Equivalent to
but avoids subsequence object allocation if possible.reserveAndWriteUtf8(buf, seq.subSequence(start, end), reserveBytes)
private static int
ByteBufUtil. reserveAndWriteUtf8Seq(ByteBuf buf, java.lang.CharSequence seq, int start, int end, int reserveBytes)
ByteBuf
AbstractByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
AbstractByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
AbstractUnpooledSlicedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
AdvancedLeakAwareByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. setBytes(int index, ByteBuf src)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. setBytes(int index, ByteBuf src, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
abstract ByteBuf
ByteBuf. setBytes(int index, ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
until the source buffer becomes unreadable.abstract ByteBuf
ByteBuf. setBytes(int index, ByteBuf src, int length)
Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
.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 absoluteindex
.CompositeByteBuf
CompositeByteBuf. setBytes(int index, ByteBuf src)
CompositeByteBuf
CompositeByteBuf. setBytes(int index, ByteBuf src, int length)
CompositeByteBuf
CompositeByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
DuplicatedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
EmptyByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
EmptyByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
EmptyByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
FixedCompositeByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledDuplicatedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledHeapByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledSlicedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
PooledUnsafeDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
ReadOnlyByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
ReadOnlyByteBufferBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
SwappedByteBuf. setBytes(int index, ByteBuf src)
Deprecated.ByteBuf
SwappedByteBuf. setBytes(int index, ByteBuf src, int length)
Deprecated.ByteBuf
SwappedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
UnpooledDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
UnpooledHeapByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
UnpooledUnsafeDirectByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
(package private) static void
UnsafeByteBufUtil. setBytes(AbstractByteBuf buf, long addr, int index, ByteBuf src, int srcIndex, int length)
ByteBuf
WrappedByteBuf. setBytes(int index, ByteBuf src)
ByteBuf
WrappedByteBuf. setBytes(int index, ByteBuf src, int length)
ByteBuf
WrappedByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
CompositeByteBuf
WrappedCompositeByteBuf. setBytes(int index, ByteBuf src)
CompositeByteBuf
WrappedCompositeByteBuf. setBytes(int index, ByteBuf src, int length)
CompositeByteBuf
WrappedCompositeByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
static ByteBuf
ByteBufUtil. setShortBE(ByteBuf buf, int index, int shortValue)
Sets a big-endian 16-bit short integer to the buffer.protected static ByteBuf
AbstractByteBufAllocator. toLeakAwareBuffer(ByteBuf buf)
(package private) void
CompositeByteBuf.Component. transferTo(ByteBuf dst)
static ByteBuf
Unpooled. unmodifiableBuffer(ByteBuf buffer)
Deprecated.UseasReadOnly()
.static ByteBuf
Unpooled. unmodifiableBuffer(ByteBuf... buffers)
Deprecated.static ByteBuf
Unpooled. unreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the givenByteBuf
which will just ignore release and retain calls.private ByteBuf
SimpleLeakAwareByteBuf. unwrappedDerived(ByteBuf derived)
private static ByteBuf
SimpleLeakAwareByteBuf. unwrapSwapped(ByteBuf buf)
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(ByteBuf buffer)
Creates a new buffer which wraps the specified buffer's readable bytes.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.private static ByteBuf
Unpooled. wrappedUnmodifiableBuffer(boolean copy, ByteBuf... buffers)
static ByteBuf
Unpooled. wrappedUnmodifiableBuffer(ByteBuf... buffers)
static int
ByteBufUtil. writeAscii(ByteBuf buf, java.lang.CharSequence seq)
ByteBuf
AbstractByteBuf. writeBytes(ByteBuf src)
ByteBuf
AbstractByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
AbstractByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(ByteBuf src)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
AdvancedLeakAwareByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. writeBytes(ByteBuf src)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. writeBytes(ByteBuf src, int length)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
abstract ByteBuf
ByteBuf. writeBytes(ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
until the source buffer becomes unreadable, and increases thewriterIndex
by the number of the transferred bytes.abstract ByteBuf
ByteBuf. writeBytes(ByteBuf src, int length)
Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=length
).abstract ByteBuf
ByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=length
).CompositeByteBuf
CompositeByteBuf. writeBytes(ByteBuf src)
CompositeByteBuf
CompositeByteBuf. writeBytes(ByteBuf src, int length)
CompositeByteBuf
CompositeByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
EmptyByteBuf. writeBytes(ByteBuf src)
ByteBuf
EmptyByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
EmptyByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
SwappedByteBuf. writeBytes(ByteBuf src)
Deprecated.ByteBuf
SwappedByteBuf. writeBytes(ByteBuf src, int length)
Deprecated.ByteBuf
SwappedByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
Deprecated.ByteBuf
WrappedByteBuf. writeBytes(ByteBuf src)
ByteBuf
WrappedByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
WrappedByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
CompositeByteBuf
WrappedCompositeByteBuf. writeBytes(ByteBuf src)
CompositeByteBuf
WrappedCompositeByteBuf. writeBytes(ByteBuf src, int length)
CompositeByteBuf
WrappedCompositeByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
static ByteBuf
ByteBufUtil. writeMediumBE(ByteBuf buf, int mediumValue)
Writes a big-endian 24-bit medium integer to the buffer.static ByteBuf
ByteBufUtil. writeShortBE(ByteBuf buf, int shortValue)
Writes a big-endian 16-bit short integer to the buffer.static int
ByteBufUtil. writeUtf8(ByteBuf buf, java.lang.CharSequence seq)
static int
ByteBufUtil. writeUtf8(ByteBuf buf, java.lang.CharSequence seq, int start, int end)
Equivalent to
but avoids subsequence object allocation.writeUtf8(buf, seq.subSequence(start, end))
Method parameters in io.netty.buffer with type arguments of type ByteBuf Modifier and Type Method Description CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponents(boolean increaseWriterIndex, java.lang.Iterable<ByteBuf> buffers)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponents(int cIndex, java.lang.Iterable<ByteBuf> buffers)
CompositeByteBuf
AdvancedLeakAwareCompositeByteBuf. addComponents(java.lang.Iterable<ByteBuf> buffers)
private CompositeByteBuf
CompositeByteBuf. addComponents(boolean increaseIndex, int cIndex, java.lang.Iterable<ByteBuf> buffers)
CompositeByteBuf
CompositeByteBuf. addComponents(boolean increaseWriterIndex, java.lang.Iterable<ByteBuf> buffers)
CompositeByteBuf
CompositeByteBuf. addComponents(int cIndex, java.lang.Iterable<ByteBuf> buffers)
Add the givenByteBuf
s on the specific index Be aware that this method does not increase thewriterIndex
of theCompositeByteBuf
.CompositeByteBuf
CompositeByteBuf. addComponents(java.lang.Iterable<ByteBuf> buffers)
Add the givenByteBuf
s.CompositeByteBuf
WrappedCompositeByteBuf. addComponents(boolean increaseWriterIndex, java.lang.Iterable<ByteBuf> buffers)
CompositeByteBuf
WrappedCompositeByteBuf. addComponents(int cIndex, java.lang.Iterable<ByteBuf> buffers)
CompositeByteBuf
WrappedCompositeByteBuf. addComponents(java.lang.Iterable<ByteBuf> buffers)
protected AdvancedLeakAwareByteBuf
AdvancedLeakAwareByteBuf. newLeakAwareByteBuf(ByteBuf buf, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
protected AdvancedLeakAwareByteBuf
AdvancedLeakAwareCompositeByteBuf. newLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
protected SimpleLeakAwareByteBuf
SimpleLeakAwareByteBuf. newLeakAwareByteBuf(ByteBuf buf, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
private SimpleLeakAwareByteBuf
SimpleLeakAwareByteBuf. newLeakAwareByteBuf(ByteBuf wrapped, ResourceLeakTracker<ByteBuf> leakTracker)
protected SimpleLeakAwareByteBuf
SimpleLeakAwareCompositeByteBuf. newLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)
(package private) static void
AdvancedLeakAwareByteBuf. recordLeakNonRefCountingOperation(ResourceLeakTracker<ByteBuf> leak)
Constructors in io.netty.buffer with parameters of type ByteBuf Constructor Description AbstractUnpooledSlicedByteBuf(ByteBuf buffer, int index, int length)
AdvancedLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leak)
AdvancedLeakAwareByteBuf(ByteBuf buf, ResourceLeakTracker<ByteBuf> leak)
ByteBufInputStream(ByteBuf buffer)
Creates a new stream which reads data from the specifiedbuffer
starting at the currentreaderIndex
and ending at the currentwriterIndex
.ByteBufInputStream(ByteBuf buffer, boolean releaseOnClose)
Creates a new stream which reads data from the specifiedbuffer
starting at the currentreaderIndex
and ending at the currentwriterIndex
.ByteBufInputStream(ByteBuf buffer, int length)
Creates a new stream which reads data from the specifiedbuffer
starting at the currentreaderIndex
and ending atreaderIndex + length
.ByteBufInputStream(ByteBuf buffer, int length, boolean releaseOnClose)
Creates a new stream which reads data from the specifiedbuffer
starting at the currentreaderIndex
and ending atreaderIndex + length
.ByteBufOutputStream(ByteBuf buffer)
Creates a new stream which writes data to the specifiedbuffer
.Component(ByteBuf srcBuf, int srcOffset, ByteBuf buf, int bufOffset, int offset, int len, ByteBuf slice)
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)
DefaultByteBufHolder(ByteBuf data)
DuplicatedByteBuf(ByteBuf buffer)
Deprecated.DuplicatedByteBuf(ByteBuf buffer, int readerIndex, int writerIndex)
Deprecated.FixedCompositeByteBuf(ByteBufAllocator allocator, ByteBuf... buffers)
PooledNonRetainedDuplicateByteBuf(ByteBuf referenceCountDelegate, AbstractByteBuf buffer)
PooledNonRetainedSlicedByteBuf(ByteBuf referenceCountDelegate, AbstractByteBuf buffer, int index, int length)
ReadOnlyByteBuf(ByteBuf buffer)
Deprecated.SimpleLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leak)
SimpleLeakAwareByteBuf(ByteBuf wrapped, ResourceLeakTracker<ByteBuf> leak)
SlicedByteBuf(ByteBuf buffer, int index, int length)
Deprecated.SwappedByteBuf(ByteBuf buf)
Deprecated.UnreleasableByteBuf(ByteBuf buf)
WrappedByteBuf(ByteBuf buf)
Constructor parameters in io.netty.buffer with type arguments of type ByteBuf Constructor Description AdvancedLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leak)
AdvancedLeakAwareByteBuf(ByteBuf buf, ResourceLeakTracker<ByteBuf> leak)
AdvancedLeakAwareCompositeByteBuf(CompositeByteBuf wrapped, ResourceLeakTracker<ByteBuf> leak)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, java.lang.Iterable<ByteBuf> buffers)
SimpleLeakAwareByteBuf(ByteBuf wrapped, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leak)
SimpleLeakAwareByteBuf(ByteBuf wrapped, ResourceLeakTracker<ByteBuf> leak)
SimpleLeakAwareCompositeByteBuf(CompositeByteBuf wrapped, ResourceLeakTracker<ByteBuf> leak)
-
Uses of ByteBuf in io.netty.channel
Methods in io.netty.channel that return ByteBuf Modifier and Type Method Description ByteBuf
DefaultMaxBytesRecvByteBufAllocator.HandleImpl. allocate(ByteBufAllocator alloc)
ByteBuf
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle. allocate(ByteBufAllocator alloc)
ByteBuf
RecvByteBufAllocator.DelegatingHandle. allocate(ByteBufAllocator alloc)
ByteBuf
RecvByteBufAllocator.Handle. allocate(ByteBufAllocator alloc)
Deprecated.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
PreferHeapByteBufAllocator. buffer()
ByteBuf
PreferHeapByteBufAllocator. buffer(int initialCapacity)
ByteBuf
PreferHeapByteBufAllocator. buffer(int initialCapacity, int maxCapacity)
protected abstract ByteBuf
AbstractCoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
Calculate the result ofcurrent + next
.protected ByteBuf
CoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
AbstractCoalescingBufferQueue. composeFirst(ByteBufAllocator allocator, ByteBuf first)
Calculate the firstByteBuf
which will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(ByteBufAllocator, ByteBuf, ByteBuf)
.protected ByteBuf
AbstractCoalescingBufferQueue. composeIntoComposite(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
AbstractCoalescingBufferQueue. copyAndCompose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
ByteBuf
PreferHeapByteBufAllocator. directBuffer()
ByteBuf
PreferHeapByteBufAllocator. directBuffer(int initialCapacity)
ByteBuf
PreferHeapByteBufAllocator. directBuffer(int initialCapacity, int maxCapacity)
ByteBuf
PreferHeapByteBufAllocator. heapBuffer()
ByteBuf
PreferHeapByteBufAllocator. heapBuffer(int initialCapacity)
ByteBuf
PreferHeapByteBufAllocator. heapBuffer(int initialCapacity, int maxCapacity)
ByteBuf
PreferHeapByteBufAllocator. ioBuffer()
ByteBuf
PreferHeapByteBufAllocator. ioBuffer(int initialCapacity)
ByteBuf
PreferHeapByteBufAllocator. ioBuffer(int initialCapacity, int maxCapacity)
ByteBuf
AbstractCoalescingBufferQueue. remove(ByteBufAllocator alloc, int bytes, ChannelPromise aggregatePromise)
Remove aByteBuf
from the queue with the specified number of bytes.ByteBuf
CoalescingBufferQueue. remove(int bytes, ChannelPromise aggregatePromise)
Remove aByteBuf
from the queue with the specified number of bytes.protected abstract ByteBuf
AbstractCoalescingBufferQueue. removeEmptyValue()
The value to return whenAbstractCoalescingBufferQueue.remove(ByteBufAllocator, int, ChannelPromise)
is called but the queue is empty.protected ByteBuf
CoalescingBufferQueue. removeEmptyValue()
ByteBuf
AbstractCoalescingBufferQueue. removeFirst(ChannelPromise aggregatePromise)
Remove the firstByteBuf
from the queue.Methods in io.netty.channel with parameters of type ByteBuf Modifier and Type Method Description void
AbstractCoalescingBufferQueue. add(ByteBuf buf)
Add a buffer to the end of the queue.void
AbstractCoalescingBufferQueue. add(ByteBuf buf, ChannelFutureListener listener)
Add a buffer to the end of the queue and associate a listener with it that should be completed when all the buffers bytes have been consumed from the queue and written.void
AbstractCoalescingBufferQueue. add(ByteBuf buf, ChannelPromise promise)
Add a buffer to the end of the queue and associate a promise with it that should be completed when all the buffer's bytes have been consumed from the queue and written.private void
AbstractCoalescingBufferQueue. addFirst(ByteBuf buf, ChannelFutureListener listener)
void
AbstractCoalescingBufferQueue. addFirst(ByteBuf buf, ChannelPromise promise)
Add a buffer to the front of the queue and associate a promise with it that should be completed when all the buffer's bytes have been consumed from the queue and written.protected abstract ByteBuf
AbstractCoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
Calculate the result ofcurrent + next
.protected ByteBuf
CoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
AbstractCoalescingBufferQueue. composeFirst(ByteBufAllocator allocator, ByteBuf first)
Calculate the firstByteBuf
which will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(ByteBufAllocator, ByteBuf, ByteBuf)
.protected ByteBuf
AbstractCoalescingBufferQueue. composeIntoComposite(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
AbstractCoalescingBufferQueue. copyAndCompose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
private static int
ChannelOutboundBuffer. nioBuffers(ChannelOutboundBuffer.Entry entry, ByteBuf buf, java.nio.ByteBuffer[] nioBuffers, int nioBufferCount, int maxCount)
-
Uses of ByteBuf in io.netty.channel.epoll
Methods in io.netty.channel.epoll that return ByteBuf Modifier and Type Method Description ByteBuf
EpollRecvByteAllocatorHandle. allocate(ByteBufAllocator alloc)
protected ByteBuf
AbstractEpollChannel. newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the original one.protected ByteBuf
AbstractEpollChannel. newDirectBuffer(java.lang.Object holder, ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the specified holder.private static ByteBuf
AbstractEpollChannel. newDirectBuffer0(java.lang.Object holder, ByteBuf buf, ByteBufAllocator alloc, int capacity)
Methods in io.netty.channel.epoll with parameters of type ByteBuf Modifier and Type Method Description private boolean
NativeDatagramPacketArray. add0(ByteBuf buf, int index, int len, int segmentLen, java.net.InetSocketAddress recipient)
(package private) boolean
NativeDatagramPacketArray. addWritable(ByteBuf buf, int index, int len)
private boolean
EpollDatagramChannel. connectedRead(EpollRecvByteAllocatorHandle allocHandle, ByteBuf byteBuf, int maxDatagramPacketSize)
protected int
AbstractEpollChannel. doReadBytes(ByteBuf byteBuf)
Read bytes into the givenByteBuf
and return the amount.protected int
AbstractEpollChannel. doWriteBytes(ChannelOutboundBuffer in, ByteBuf buf)
(package private) long
AbstractEpollChannel. doWriteOrSendBytes(ByteBuf data, java.net.InetSocketAddress remoteAddress, boolean fastOpen)
Write bytes to the socket, with or without a remote address.private void
AbstractEpollStreamChannel.EpollStreamUnsafe. handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close, EpollRecvByteAllocatorHandle allocHandle)
(package private) DatagramPacket
NativeDatagramPacketArray.NativeDatagramPacket. newDatagramPacket(ByteBuf buffer, java.net.InetSocketAddress recipient)
protected ByteBuf
AbstractEpollChannel. newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the original one.protected ByteBuf
AbstractEpollChannel. newDirectBuffer(java.lang.Object holder, ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the specified holder.private static ByteBuf
AbstractEpollChannel. newDirectBuffer0(java.lang.Object holder, ByteBuf buf, ByteBufAllocator alloc, int capacity)
private boolean
EpollDatagramChannel. recvmsg(EpollRecvByteAllocatorHandle allocHandle, NativeDatagramPacketArray array, ByteBuf byteBuf)
private static void
EpollDatagramChannel. releaseAndRecycle(ByteBuf byteBuf, RecyclableArrayList packetList)
SegmentedDatagramPacket
SegmentedDatagramPacket. replace(ByteBuf content)
Deprecated.private boolean
EpollDatagramChannel. scatteringRead(EpollRecvByteAllocatorHandle allocHandle, NativeDatagramPacketArray array, ByteBuf byteBuf, int datagramSize, int numDatagram)
private int
AbstractEpollStreamChannel. writeBytes(ChannelOutboundBuffer in, ByteBuf buf)
Write bytes form the givenByteBuf
to the underlyingChannel
.Constructors in io.netty.channel.epoll with parameters of type ByteBuf Constructor Description SegmentedDatagramPacket(ByteBuf data, int segmentSize, java.net.InetSocketAddress recipient)
Deprecated.Create a new instance.SegmentedDatagramPacket(ByteBuf data, int segmentSize, java.net.InetSocketAddress recipient, java.net.InetSocketAddress sender)
Deprecated.Create a new instance. -
Uses of ByteBuf in io.netty.channel.kqueue
Methods in io.netty.channel.kqueue that return ByteBuf Modifier and Type Method Description ByteBuf
KQueueRecvByteAllocatorHandle. allocate(ByteBufAllocator alloc)
protected ByteBuf
AbstractKQueueChannel. newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the original one.protected ByteBuf
AbstractKQueueChannel. newDirectBuffer(java.lang.Object holder, ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the specified holder.private static ByteBuf
AbstractKQueueChannel. newDirectBuffer0(java.lang.Object holder, ByteBuf buf, ByteBufAllocator alloc, int capacity)
Methods in io.netty.channel.kqueue with parameters of type ByteBuf Modifier and Type Method Description protected int
AbstractKQueueChannel. doReadBytes(ByteBuf byteBuf)
Read bytes into the givenByteBuf
and return the amount.protected int
AbstractKQueueChannel. doWriteBytes(ChannelOutboundBuffer in, ByteBuf buf)
private void
AbstractKQueueStreamChannel.KQueueStreamUnsafe. handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close, KQueueRecvByteAllocatorHandle allocHandle)
protected ByteBuf
AbstractKQueueChannel. newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the original one.protected ByteBuf
AbstractKQueueChannel. newDirectBuffer(java.lang.Object holder, ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the specified holder.private static ByteBuf
AbstractKQueueChannel. newDirectBuffer0(java.lang.Object holder, ByteBuf buf, ByteBufAllocator alloc, int capacity)
private int
AbstractKQueueStreamChannel. writeBytes(ChannelOutboundBuffer in, ByteBuf buf)
Write bytes form the givenByteBuf
to the underlyingChannel
. -
Uses of ByteBuf in io.netty.channel.nio
Methods in io.netty.channel.nio that return ByteBuf Modifier and Type Method Description protected ByteBuf
AbstractNioChannel. newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the original one.protected ByteBuf
AbstractNioChannel. newDirectBuffer(ReferenceCounted holder, ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the specified holder.Methods in io.netty.channel.nio with parameters of type ByteBuf Modifier and Type Method Description protected abstract int
AbstractNioByteChannel. doReadBytes(ByteBuf buf)
Read bytes into the givenByteBuf
and return the amount.protected abstract int
AbstractNioByteChannel. doWriteBytes(ByteBuf buf)
Write bytes form the givenByteBuf
to the underlyingChannel
.private void
AbstractNioByteChannel.NioByteUnsafe. handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close, RecvByteBufAllocator.Handle allocHandle)
protected ByteBuf
AbstractNioChannel. newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the original one.protected ByteBuf
AbstractNioChannel. newDirectBuffer(ReferenceCounted holder, ByteBuf buf)
Returns an off-heap copy of the specifiedByteBuf
, and releases the specified holder. -
Uses of ByteBuf in io.netty.channel.oio
Methods in io.netty.channel.oio with parameters of type ByteBuf Modifier and Type Method Description protected abstract int
AbstractOioByteChannel. doReadBytes(ByteBuf buf)
Deprecated.Read bytes from the underlying Socket.protected int
OioByteStreamChannel. doReadBytes(ByteBuf buf)
Deprecated.protected abstract void
AbstractOioByteChannel. doWriteBytes(ByteBuf buf)
Deprecated.Write the data which is hold by theByteBuf
to the underlying Socket.protected void
OioByteStreamChannel. doWriteBytes(ByteBuf buf)
Deprecated.private void
AbstractOioByteChannel. handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close, RecvByteBufAllocator.Handle allocHandle)
Deprecated. -
Uses of ByteBuf in io.netty.channel.socket
Methods in io.netty.channel.socket with parameters of type ByteBuf Modifier and Type Method Description DatagramPacket
DatagramPacket. replace(ByteBuf content)
Constructors in io.netty.channel.socket with parameters of type ByteBuf Constructor Description DatagramPacket(ByteBuf data, java.net.InetSocketAddress recipient)
Create a new instance with the specified packetdata
andrecipient
address.DatagramPacket(ByteBuf data, java.net.InetSocketAddress recipient, java.net.InetSocketAddress sender)
Create a new instance with the specified packetdata
,recipient
address, andsender
address. -
Uses of ByteBuf in io.netty.channel.socket.nio
Methods in io.netty.channel.socket.nio with parameters of type ByteBuf Modifier and Type Method 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. -
Uses of ByteBuf in io.netty.channel.socket.oio
Methods in io.netty.channel.socket.oio with parameters of type ByteBuf Modifier and Type Method Description protected int
OioSocketChannel. doReadBytes(ByteBuf buf)
Deprecated. -
Uses of ByteBuf in io.netty.channel.unix
Fields in io.netty.channel.unix declared as ByteBuf Modifier and Type Field Description private ByteBuf
IovArray. memory
Methods in io.netty.channel.unix that return ByteBuf Modifier and Type Method Description ByteBuf
PreferredDirectByteBufAllocator. buffer()
ByteBuf
PreferredDirectByteBufAllocator. buffer(int initialCapacity)
ByteBuf
PreferredDirectByteBufAllocator. buffer(int initialCapacity, int maxCapacity)
ByteBuf
PreferredDirectByteBufAllocator. directBuffer()
ByteBuf
PreferredDirectByteBufAllocator. directBuffer(int initialCapacity)
ByteBuf
PreferredDirectByteBufAllocator. directBuffer(int initialCapacity, int maxCapacity)
ByteBuf
PreferredDirectByteBufAllocator. heapBuffer()
ByteBuf
PreferredDirectByteBufAllocator. heapBuffer(int initialCapacity)
ByteBuf
PreferredDirectByteBufAllocator. heapBuffer(int initialCapacity, int maxCapacity)
ByteBuf
PreferredDirectByteBufAllocator. ioBuffer()
ByteBuf
PreferredDirectByteBufAllocator. ioBuffer(int initialCapacity)
ByteBuf
PreferredDirectByteBufAllocator. ioBuffer(int initialCapacity, int maxCapacity)
Methods in io.netty.channel.unix with parameters of type ByteBuf Modifier and Type Method Description boolean
IovArray. add(ByteBuf buf)
Deprecated.boolean
IovArray. add(ByteBuf buf, int offset, int len)
static boolean
UnixChannelUtil. isBufferCopyNeededForWrite(ByteBuf byteBuf)
Checks if the specified buffer has memory address or is composed of n(n <= IOV_MAX) NIO direct buffers.(package private) static boolean
UnixChannelUtil. isBufferCopyNeededForWrite(ByteBuf byteBuf, int iovMax)
DomainDatagramPacket
DomainDatagramPacket. replace(ByteBuf content)
SegmentedDatagramPacket
SegmentedDatagramPacket. replace(ByteBuf content)
Constructors in io.netty.channel.unix with parameters of type ByteBuf Constructor Description DomainDatagramPacket(ByteBuf data, DomainSocketAddress recipient)
Create a new instance with the specified packetdata
andrecipient
address.DomainDatagramPacket(ByteBuf data, DomainSocketAddress recipient, DomainSocketAddress sender)
Create a new instance with the specified packetdata
,recipient
address, andsender
address.IovArray(ByteBuf memory)
SegmentedDatagramPacket(ByteBuf data, int segmentSize, java.net.InetSocketAddress recipient)
Create a new instance.SegmentedDatagramPacket(ByteBuf data, int segmentSize, java.net.InetSocketAddress recipient, java.net.InetSocketAddress sender)
Create a new instance. -
Uses of ByteBuf in io.netty.handler.codec
Subclasses of ByteBuf in io.netty.handler.codec Modifier and Type Class Description (package private) class
ReplayingDecoderByteBuf
SpecialByteBuf
implementation which is used by theReplayingDecoder
Fields in io.netty.handler.codec declared as ByteBuf Modifier and Type Field Description private ByteBuf
AsciiHeadersEncoder. buf
private ByteBuf
ReplayingDecoderByteBuf. buffer
(package private) ByteBuf
ByteToMessageDecoder. cumulation
private ByteBuf[]
DelimiterBasedFrameDecoder. delimiters
Fields in io.netty.handler.codec with type parameters of type ByteBuf Modifier and Type Field Description private MessageToMessageDecoder<ByteBuf>
DatagramPacketDecoder. decoder
Methods in io.netty.handler.codec that return ByteBuf Modifier and Type Method Description protected ByteBuf
MessageToByteEncoder. allocateBuffer(ChannelHandlerContext ctx, I msg, boolean preferDirect)
Allocate aByteBuf
which will be used as argument of#encode(ChannelHandlerContext, I, ByteBuf)
.ByteBuf
ReplayingDecoderByteBuf. asReadOnly()
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 oldCumulation, ByteBuf in)
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, 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)
ByteBuf
ReplayingDecoderByteBuf. getBytes(int index, java.nio.ByteBuffer dst)
protected ByteBuf
ByteToMessageDecoder. internalBuffer()
Returns the internal cumulative buffer of this decoder.static ByteBuf[]
Delimiters. lineDelimiter()
ReturnsCR ('\r')
andLF ('\n')
delimiters, which could be used for text-based line protocols.ByteBuf
ReplayingDecoderByteBuf. markReaderIndex()
ByteBuf
ReplayingDecoderByteBuf. markWriterIndex()
static ByteBuf[]
Delimiters. nulDelimiter()
Returns aNUL (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(int length)
ByteBuf
ReplayingDecoderByteBuf. readBytes(ByteBuf dst)
ByteBuf
ReplayingDecoderByteBuf. readBytes(ByteBuf dst, int length)
ByteBuf
ReplayingDecoderByteBuf. readBytes(ByteBuf dst, int dstIndex, int length)
ByteBuf
ReplayingDecoderByteBuf. readBytes(java.io.OutputStream out, int length)
ByteBuf
ReplayingDecoderByteBuf. readBytes(java.nio.ByteBuffer dst)
ByteBuf
ReplayingDecoderByteBuf. readerIndex(int readerIndex)
ByteBuf
ReplayingDecoderByteBuf. readRetainedSlice(int length)
ByteBuf
ReplayingDecoderByteBuf. readSlice(int length)
ByteBuf
ReplayingDecoderByteBuf. resetReaderIndex()
ByteBuf
ReplayingDecoderByteBuf. resetWriterIndex()
ByteBuf
ReplayingDecoderByteBuf. retain()
ByteBuf
ReplayingDecoderByteBuf. retain(int increment)
ByteBuf
ReplayingDecoderByteBuf. retainedDuplicate()
ByteBuf
ReplayingDecoderByteBuf. retainedSlice()
ByteBuf
ReplayingDecoderByteBuf. retainedSlice(int index, int length)
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, ByteBuf src, int length)
ByteBuf
ReplayingDecoderByteBuf. setBytes(int index, ByteBuf src, int srcIndex, int length)
ByteBuf
ReplayingDecoderByteBuf. setBytes(int index, java.nio.ByteBuffer src)
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. setIntLE(int index, int value)
ByteBuf
ReplayingDecoderByteBuf. setLong(int index, long value)
ByteBuf
ReplayingDecoderByteBuf. setLongLE(int index, long value)
ByteBuf
ReplayingDecoderByteBuf. setMedium(int index, int value)
ByteBuf
ReplayingDecoderByteBuf. setMediumLE(int index, int value)
ByteBuf
ReplayingDecoderByteBuf. setShort(int index, int value)
ByteBuf
ReplayingDecoderByteBuf. setShortLE(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. touch()
ByteBuf
ReplayingDecoderByteBuf. touch(java.lang.Object hint)
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(ByteBuf src, int length)
ByteBuf
ReplayingDecoderByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
ByteBuf
ReplayingDecoderByteBuf. writeBytes(java.nio.ByteBuffer src)
ByteBuf
ReplayingDecoderByteBuf. writeChar(int value)
ByteBuf
ReplayingDecoderByteBuf. writeDouble(double value)
ByteBuf
ReplayingDecoderByteBuf. writeFloat(float value)
ByteBuf
ReplayingDecoderByteBuf. writeInt(int value)
ByteBuf
ReplayingDecoderByteBuf. writeIntLE(int value)
ByteBuf
ReplayingDecoderByteBuf. writeLong(long value)
ByteBuf
ReplayingDecoderByteBuf. writeLongLE(long value)
ByteBuf
ReplayingDecoderByteBuf. writeMedium(int value)
ByteBuf
ReplayingDecoderByteBuf. writeMediumLE(int value)
ByteBuf
ReplayingDecoderByteBuf. writerIndex(int writerIndex)
ByteBuf
ReplayingDecoderByteBuf. writeShort(int value)
ByteBuf
ReplayingDecoderByteBuf. writeShortLE(int value)
ByteBuf
ReplayingDecoderByteBuf. writeZero(int length)
Methods in io.netty.handler.codec with parameters of type ByteBuf Modifier and Type Method Description private static void
MessageAggregator. appendPartialContent(CompositeByteBuf content, ByteBuf partialContent)
protected abstract O
MessageAggregator. beginAggregation(S start, ByteBuf content)
Creates a new aggregated message from the specified start message and the specified content.protected void
ByteToMessageDecoder. callDecode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
Called once data should be decoded from the givenByteBuf
.protected void
ReplayingDecoder. callDecode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
int
ReplayingDecoderByteBuf. compareTo(ByteBuf buffer)
ByteBuf
ByteToMessageDecoder.Cumulator. cumulate(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf in)
protected abstract void
ByteToMessageCodec. 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 oneByteBuf
to an other.protected java.lang.Object
DelimiterBasedFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf buffer)
Create a frame out of theByteBuf
and return it.protected void
DelimiterBasedFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected java.lang.Object
FixedLengthFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in)
Create a frame out of theByteBuf
and return it.protected void
FixedLengthFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected java.lang.Object
LengthFieldBasedFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in)
Create a frame out of theByteBuf
and return it.protected void
LengthFieldBasedFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected java.lang.Object
LineBasedFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf buffer)
Create a frame out of theByteBuf
and return it.protected void
LineBasedFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
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 theChannelHandlerContext
goes in-active.(package private) void
ByteToMessageDecoder. decodeRemovalReentryProtection(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
Decode the from oneByteBuf
to an other.private void
LengthFieldBasedFrameDecoder. discardingTooLongFrame(ByteBuf in)
protected abstract void
ByteToMessageCodec. encode(ChannelHandlerContext ctx, I msg, ByteBuf out)
protected void
ByteToMessageCodec.Encoder. encode(ChannelHandlerContext ctx, I msg, ByteBuf out)
protected void
LengthFieldPrepender. encode(ChannelHandlerContext ctx, ByteBuf msg, java.util.List<java.lang.Object> out)
protected abstract void
MessageToByteEncoder. encode(ChannelHandlerContext ctx, I msg, ByteBuf out)
Encode a message into aByteBuf
.private void
LengthFieldBasedFrameDecoder. exceededFrameLength(ByteBuf in, long frameLength)
(package private) static ByteBuf
ByteToMessageDecoder. expandCumulation(ByteBufAllocator alloc, ByteBuf oldCumulation, ByteBuf in)
protected ByteBuf
LengthFieldBasedFrameDecoder. extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length)
Extract the sub-region of the specified buffer.private static void
LengthFieldBasedFrameDecoder. failOnFrameLengthLessThanInitialBytesToStrip(ByteBuf in, long frameLength, int initialBytesToStrip)
private static void
LengthFieldBasedFrameDecoder. failOnFrameLengthLessThanLengthFieldEndOffset(ByteBuf in, long frameLength, int lengthFieldEndOffset)
private static void
LengthFieldBasedFrameDecoder. failOnNegativeLengthField(ByteBuf in, long frameLength, int lengthFieldEndOffset)
private 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)
private static void
AsciiHeadersEncoder. writeAscii(ByteBuf buf, int offset, java.lang.CharSequence value)
ByteBuf
ReplayingDecoderByteBuf. writeBytes(ByteBuf src)
ByteBuf
ReplayingDecoderByteBuf. writeBytes(ByteBuf src, int length)
ByteBuf
ReplayingDecoderByteBuf. writeBytes(ByteBuf src, int srcIndex, int length)
Constructors in io.netty.handler.codec with parameters of type ByteBuf Constructor Description AsciiHeadersEncoder(ByteBuf buf)
AsciiHeadersEncoder(ByteBuf buf, AsciiHeadersEncoder.SeparatorType separatorType, AsciiHeadersEncoder.NewlineType newlineType)
DelimiterBasedFrameDecoder(int maxFrameLength, boolean stripDelimiter, boolean failFast, ByteBuf delimiter)
Creates a new instance.DelimiterBasedFrameDecoder(int maxFrameLength, boolean stripDelimiter, boolean failFast, ByteBuf... delimiters)
Creates a new instance.DelimiterBasedFrameDecoder(int maxFrameLength, boolean stripDelimiter, ByteBuf delimiter)
Creates a new instance.DelimiterBasedFrameDecoder(int maxFrameLength, boolean stripDelimiter, ByteBuf... delimiters)
Creates a new instance.DelimiterBasedFrameDecoder(int maxFrameLength, ByteBuf delimiter)
Creates a new instance.DelimiterBasedFrameDecoder(int maxFrameLength, ByteBuf... delimiters)
Creates a new instance.ReplayingDecoderByteBuf(ByteBuf buffer)
Constructor parameters in io.netty.handler.codec with type arguments of type ByteBuf Constructor Description DatagramPacketDecoder(MessageToMessageDecoder<ByteBuf> decoder)
Create aDatagramPacket
decoder using the specifiedByteBuf
decoder. -
Uses of ByteBuf in io.netty.handler.codec.base64
Fields in io.netty.handler.codec.base64 declared as ByteBuf Modifier and Type Field Description private ByteBuf
Base64.Decoder. dest
Methods in io.netty.handler.codec.base64 that return ByteBuf Modifier and Type Method Description static ByteBuf
Base64. decode(ByteBuf src)
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. decode(ByteBuf src, Base64Dialect dialect)
(package private) ByteBuf
Base64.Decoder. decode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect)
static ByteBuf
Base64. encode(ByteBuf src)
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, 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)
static ByteBuf
Base64. encode(ByteBuf src, int off, int len, Base64Dialect dialect)
static ByteBuf
Base64. encode(ByteBuf src, Base64Dialect dialect)
Methods in io.netty.handler.codec.base64 with parameters of type ByteBuf Modifier and Type Method Description static ByteBuf
Base64. decode(ByteBuf src)
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. decode(ByteBuf src, Base64Dialect dialect)
(package private) ByteBuf
Base64.Decoder. decode(ByteBuf src, int off, int len, ByteBufAllocator allocator, Base64Dialect dialect)
protected void
Base64Decoder. decode(ChannelHandlerContext ctx, ByteBuf msg, java.util.List<java.lang.Object> out)
private static int
Base64.Decoder. decode4to3(byte[] src, ByteBuf dest, int destOffset, byte[] decodabet)
static ByteBuf
Base64. encode(ByteBuf src)
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, 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)
static ByteBuf
Base64. encode(ByteBuf src, int off, int len, Base64Dialect dialect)
static ByteBuf
Base64. encode(ByteBuf src, Base64Dialect dialect)
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, byte[] alphabet)
private static void
Base64. encode3to4BigEndian(int inBuff, int numSigBytes, ByteBuf dest, int destOffset, byte[] alphabet)
private static void
Base64. encode3to4LittleEndian(int inBuff, int numSigBytes, ByteBuf dest, int destOffset, byte[] alphabet)
-
Uses of ByteBuf in io.netty.handler.codec.bytes
Methods in io.netty.handler.codec.bytes with parameters of type ByteBuf Modifier and Type Method Description protected void
ByteArrayDecoder. decode(ChannelHandlerContext ctx, ByteBuf msg, java.util.List<java.lang.Object> out)
-
Uses of ByteBuf in io.netty.handler.codec.compression
Fields in io.netty.handler.codec.compression declared as ByteBuf Modifier and Type Field Description private ByteBuf
Bzip2BitReader. in
TheByteBuf
from which to read data.Methods in io.netty.handler.codec.compression that return ByteBuf Modifier and Type Method Description protected ByteBuf
JdkZlibEncoder. allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect)
protected ByteBuf
ZlibDecoder. prepareDecompressBuffer(ChannelHandlerContext ctx, ByteBuf buffer, int preferredSize)
Allocate or expand the decompression buffer, without exceeding the maximum allocation.Methods in io.netty.handler.codec.compression with parameters of type ByteBuf Modifier and Type Method Description protected ByteBuf
JdkZlibEncoder. allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect)
private static void
SnappyFrameEncoder. calculateAndWriteChecksum(ByteBuf slice, ByteBuf out)
Calculates and writes the 4-byte checksum to the output buffer(package private) static int
Snappy. calculateChecksum(ByteBuf data)
Computes the CRC32C checksum of the supplied data and performs the "mask" operation on the computed checksum(package private) 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(package private) static void
CompressionUtil. checkChecksum(ByteBufChecksum checksum, ByteBuf uncompressed, int currentChecksum)
(package private) void
Bzip2BlockCompressor. close(ByteBuf out)
Compresses and writes out the block.private void
Bzip2Encoder. closeBlock(ByteBuf out)
Close current block and updateBzip2Encoder.streamCRC
.(package private) static int
FastLz. compress(ByteBuf input, int inOffset, int inLength, ByteBuf output, int outOffset, int proposedLevel)
Compress a block of data in the input buffer and returns the size of compressed block.protected void
Bzip2Decoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
FastLzFrameDecoder. 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)
void
Snappy. decode(ByteBuf in, ByteBuf out)
protected void
SnappyFrameDecoder. 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.(package private) static int
FastLz. decompress(ByteBuf input, int inOffset, int inLength, ByteBuf output, int outOffset, int outLength)
Decompress a block of compressed data and returns the size of the decompressed block.protected void
JdkZlibDecoder. decompressionBufferExhausted(ByteBuf buffer)
protected void
JZlibDecoder. decompressionBufferExhausted(ByteBuf buffer)
protected void
ZlibDecoder. decompressionBufferExhausted(ByteBuf buffer)
Called when the decompression buffer cannot be expanded further.private void
JdkZlibEncoder. deflate(ByteBuf out)
private void
JdkZlibEncoder. deflateJdk6(ByteBuf out)
protected void
Bzip2Encoder. encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out)
(package private) void
Bzip2HuffmanStageEncoder. encode(ByteBuf out)
Encodes and writes the block data.protected void
FastLzFrameEncoder. encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out)
protected void
JdkZlibEncoder. encode(ChannelHandlerContext ctx, ByteBuf uncompressed, ByteBuf out)
protected void
JZlibEncoder. encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out)
void
Snappy. encode(ByteBuf in, ByteBuf out, int length)
protected void
SnappyFrameEncoder. encode(ChannelHandlerContext ctx, ByteBuf in, 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 void
JdkZlibEncoder. encodeSome(ByteBuf in, ByteBuf out)
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.(package private) void
Bzip2BitWriter. flush(ByteBuf out)
Writes any remaining bits to the outputByteBuf
, zero padding to a whole byte as required.(package private) int
Snappy. getPreamble(ByteBuf in)
Get 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 boolean
JdkZlibDecoder. handleGzipFooter(ByteBuf in)
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 static int
FastLz. hashFunction(ByteBuf p, int offset)
protected ByteBuf
ZlibDecoder. prepareDecompressBuffer(ChannelHandlerContext ctx, ByteBuf buffer, int preferredSize)
Allocate or expand the decompression buffer, without exceeding the maximum allocation.private boolean
JdkZlibDecoder. readGZIPFooter(ByteBuf in)
Read the GZIP footer.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 int
FastLz. readU16(ByteBuf data, int offset)
(package private) static java.nio.ByteBuffer
CompressionUtil. safeNioBuffer(ByteBuf buffer, int index, int length)
(package private) static java.nio.ByteBuffer
CompressionUtil. safeReadableNioBuffer(ByteBuf buffer)
(package private) void
Bzip2BitReader. setByteBuf(ByteBuf in)
Set theByteBuf
from which to read data.private static void
SnappyFrameEncoder. setChunkLength(ByteBuf out, int lengthIdx)
private boolean
JdkZlibDecoder. skipIfNeeded(ByteBuf in, int flagMask)
Skip bytes in the input if needed until we find the end marker0x00
.void
ByteBufChecksum.ReflectiveByteBufChecksum. update(ByteBuf b, int off, int len)
void
ByteBufChecksum. update(ByteBuf b, int off, int len)
(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 boolean
JdkZlibDecoder. verifyCrc(ByteBuf in)
Verifies CRC.private boolean
JdkZlibDecoder. verifyCrc16(ByteBuf in)
(package private) int
Bzip2BlockCompressor. write(ByteBuf buffer, int offset, int length)
Writes an array to the block.(package private) void
Bzip2BitWriter. writeBits(ByteBuf out, int count, long value)
Writes up to 32 bits to the outputByteBuf
.private void
Bzip2HuffmanStageEncoder. writeBlockData(ByteBuf out)
Writes out the encoded block data.(package private) void
Bzip2BitWriter. writeBoolean(ByteBuf out, boolean value)
Writes a single bit to the outputByteBuf
.private static void
SnappyFrameEncoder. writeChunkLength(ByteBuf out, int chunkLength)
Writes the 2-byte chunk length to the output buffer.(package private) void
Bzip2BitWriter. writeInt(ByteBuf out, int value)
Writes an integer as 32 bits to the outputByteBuf
.private void
Bzip2HuffmanStageEncoder. writeSelectorsAndHuffmanTables(ByteBuf out)
Write out the selector list and Huffman tables.private void
Bzip2BlockCompressor. writeSymbolMap(ByteBuf out)
Write the Huffman symbol to output byte map.(package private) void
Bzip2BitWriter. writeUnary(ByteBuf out, int value)
Writes a zero-terminated unary number to the outputByteBuf
.private static void
SnappyFrameEncoder. writeUnencodedChunk(ByteBuf in, ByteBuf out, int dataLength)
-
Uses of ByteBuf in io.netty.handler.codec.dns
Fields in io.netty.handler.codec.dns declared as ByteBuf Modifier and Type Field Description private ByteBuf
DefaultDnsRawRecord. content
Methods in io.netty.handler.codec.dns that return ByteBuf Modifier and Type Method Description protected ByteBuf
DatagramDnsQueryEncoder. allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsQuery,java.net.InetSocketAddress> msg)
Allocate aByteBuf
which will be used for constructing a datagram packet.protected ByteBuf
DatagramDnsResponseEncoder. allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse,java.net.InetSocketAddress> msg)
Allocate aByteBuf
which will be used for constructing a datagram packet.protected ByteBuf
TcpDnsQueryEncoder. allocateBuffer(ChannelHandlerContext ctx, DnsQuery msg, boolean preferDirect)
ByteBuf
DefaultDnsRawRecord. content()
(package private) static ByteBuf
DnsCodecUtil. decompressDomainName(ByteBuf compression)
Decompress pointer data.protected ByteBuf
TcpDnsResponseDecoder. extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length)
Methods in io.netty.handler.codec.dns with parameters of type ByteBuf Modifier and Type Method Description (package private) DnsResponse
DnsResponseDecoder. decode(A sender, A recipient, ByteBuf buffer)
protected java.lang.Object
TcpDnsQueryDecoder. decode(ChannelHandlerContext ctx, ByteBuf in)
protected java.lang.Object
TcpDnsResponseDecoder. decode(ChannelHandlerContext ctx, ByteBuf in)
(package private) static DnsQuery
DnsMessageUtil. decodeDnsQuery(DnsRecordDecoder decoder, ByteBuf buf, DnsMessageUtil.DnsQueryFactory supplier)
(package private) static java.lang.String
DnsCodecUtil. decodeDomainName(ByteBuf in)
static java.lang.String
DefaultDnsRecordDecoder. decodeName(ByteBuf in)
Retrieves a domain name given a buffer containing a DNS packet.protected java.lang.String
DefaultDnsRecordDecoder. decodeName0(ByteBuf in)
Retrieves a domain name given a buffer containing a DNS packet.DnsQuestion
DefaultDnsRecordDecoder. decodeQuestion(ByteBuf in)
DnsQuestion
DnsRecordDecoder. decodeQuestion(ByteBuf in)
Decodes a DNS question into its object representation.private static void
DnsMessageUtil. decodeQuestions(DnsRecordDecoder decoder, DnsQuery query, ByteBuf buf, int questionCount)
private void
DnsResponseDecoder. decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount)
<T extends DnsRecord>
TDefaultDnsRecordDecoder. decodeRecord(ByteBuf in)
protected DnsRecord
DefaultDnsRecordDecoder. decodeRecord(java.lang.String name, DnsRecordType type, int dnsClass, long timeToLive, ByteBuf in, int offset, int length)
Decodes a record from the information decoded so far byDefaultDnsRecordDecoder.decodeRecord(ByteBuf)
.<T extends DnsRecord>
TDnsRecordDecoder. decodeRecord(ByteBuf in)
Decodes a DNS record into its object representation.private static void
DnsMessageUtil. decodeRecords(DnsRecordDecoder decoder, DnsQuery query, DnsSection section, ByteBuf buf, int count)
private boolean
DnsResponseDecoder. decodeRecords(DnsResponse response, DnsSection section, ByteBuf buf, int count)
(package private) static ByteBuf
DnsCodecUtil. decompressDomainName(ByteBuf compression)
Decompress pointer data.(package private) void
DnsQueryEncoder. encode(DnsQuery query, ByteBuf out)
protected void
TcpDnsQueryEncoder. encode(ChannelHandlerContext ctx, DnsQuery msg, ByteBuf out)
(package private) static void
DnsMessageUtil. encodeDnsResponse(DnsRecordEncoder encoder, DnsResponse response, ByteBuf buf)
(package private) static void
DnsCodecUtil. encodeDomainName(java.lang.String name, ByteBuf buf)
private static void
DnsMessageUtil. encodeHeader(DnsResponse response, ByteBuf buf)
Encodes the header that is always 12 bytes long.private static void
DnsQueryEncoder. encodeHeader(DnsQuery query, ByteBuf buf)
Encodes the header that is always 12 bytes long.protected void
DefaultDnsRecordEncoder. encodeName(java.lang.String name, ByteBuf buf)
private void
DefaultDnsRecordEncoder. encodeOptEcsRecord(DnsOptEcsRecord record, ByteBuf out)
private void
DefaultDnsRecordEncoder. encodeOptPseudoRecord(DnsOptPseudoRecord record, ByteBuf out)
private void
DefaultDnsRecordEncoder. encodePtrRecord(DnsPtrRecord record, ByteBuf out)
void
DefaultDnsRecordEncoder. encodeQuestion(DnsQuestion question, ByteBuf out)
void
DnsRecordEncoder. encodeQuestion(DnsQuestion question, ByteBuf out)
Encodes aDnsQuestion
.private static void
DnsMessageUtil. encodeQuestions(DnsRecordEncoder encoder, DnsResponse response, ByteBuf buf)
private void
DnsQueryEncoder. encodeQuestions(DnsQuery query, ByteBuf buf)
private void
DefaultDnsRecordEncoder. encodeRawRecord(DnsRawRecord record, ByteBuf out)
void
DefaultDnsRecordEncoder. encodeRecord(DnsRecord record, ByteBuf out)
void
DnsRecordEncoder. encodeRecord(DnsRecord record, ByteBuf out)
Encodes aDnsRecord
.private void
DefaultDnsRecordEncoder. encodeRecord0(DnsRecord record, ByteBuf out)
private static void
DnsMessageUtil. encodeRecords(DnsRecordEncoder encoder, DnsResponse response, DnsSection section, ByteBuf buf)
private void
DnsQueryEncoder. encodeRecords(DnsQuery query, DnsSection section, ByteBuf buf)
protected ByteBuf
TcpDnsResponseDecoder. extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length)
private static DnsQuery
DnsMessageUtil. newQuery(ByteBuf buf, DnsMessageUtil.DnsQueryFactory supplier)
DnsRawRecord
DefaultDnsRawRecord. replace(ByteBuf content)
DnsRawRecord
DnsRawRecord. replace(ByteBuf content)
Constructors in io.netty.handler.codec.dns with parameters of type ByteBuf Constructor Description DefaultDnsRawRecord(java.lang.String name, DnsRecordType type, int dnsClass, long timeToLive, ByteBuf content)
Creates a new record.DefaultDnsRawRecord(java.lang.String name, DnsRecordType type, long timeToLive, ByteBuf content)
Creates a newIN-class
record. -
Uses of ByteBuf in io.netty.handler.codec.haproxy
Methods in io.netty.handler.codec.haproxy that return ByteBuf Modifier and Type Method Description private ByteBuf
HAProxyMessageDecoder. decodeLine(ChannelHandlerContext ctx, ByteBuf buffer)
Create a frame out of theByteBuf
and return it.private ByteBuf
HAProxyMessageDecoder. decodeStruct(ChannelHandlerContext ctx, ByteBuf buffer)
Create a frame out of theByteBuf
and return it.ByteBuf
HAProxyMessageDecoder.HeaderExtractor. extract(ChannelHandlerContext ctx, ByteBuf buffer)
Create a frame out of theByteBuf
and return it.Methods in io.netty.handler.codec.haproxy with parameters of type ByteBuf Modifier and Type Method 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 theByteBuf
and return it.private ByteBuf
HAProxyMessageDecoder. decodeStruct(ChannelHandlerContext ctx, ByteBuf buffer)
Create a frame out of theByteBuf
and return it.protected abstract int
HAProxyMessageDecoder.HeaderExtractor. delimiterLength(ByteBuf buffer, int eoh)
Get the length of the header delimiter.protected int
HAProxyMessageDecoder.LineHeaderExtractor. delimiterLength(ByteBuf buffer, int eoh)
protected int
HAProxyMessageDecoder.StructHeaderExtractor. delimiterLength(ByteBuf buffer, int eoh)
static ProtocolDetectionResult<HAProxyProtocolVersion>
HAProxyMessageDecoder. detectProtocol(ByteBuf buffer)
Returns theProtocolDetectionResult
for the givenByteBuf
.protected void
HAProxyMessageEncoder. encode(ChannelHandlerContext ctx, HAProxyMessage msg, ByteBuf out)
private static void
HAProxyMessageEncoder. encodeTlv(HAProxyTLV haProxyTLV, ByteBuf out)
private static void
HAProxyMessageEncoder. encodeTlvs(java.util.List<HAProxyTLV> haProxyTLVs, ByteBuf out)
private static void
HAProxyMessageEncoder. encodeV1(HAProxyMessage msg, ByteBuf out)
private static void
HAProxyMessageEncoder. encodeV2(HAProxyMessage msg, ByteBuf out)
ByteBuf
HAProxyMessageDecoder.HeaderExtractor. extract(ChannelHandlerContext ctx, ByteBuf buffer)
Create a frame out of theByteBuf
and return it.private static int
HAProxyMessageDecoder. findEndOfHeader(ByteBuf buffer)
Returns the index in the buffer of the end of header if found.protected abstract int
HAProxyMessageDecoder.HeaderExtractor. findEndOfHeader(ByteBuf buffer)
Find the end of the header from the givenByteBuf
,the end may be a CRLF, or the length given by the header.protected int
HAProxyMessageDecoder.LineHeaderExtractor. findEndOfHeader(ByteBuf buffer)
protected int
HAProxyMessageDecoder.StructHeaderExtractor. findEndOfHeader(ByteBuf buffer)
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 representationprivate static boolean
HAProxyMessageDecoder. match(byte[] prefix, ByteBuf buffer, int idx)
private static HAProxyTLV
HAProxyMessage. readNextTLV(ByteBuf header, int nestingLevel)
private static java.util.List<HAProxyTLV>
HAProxyMessage. readTlvs(ByteBuf header)
HAProxyTLV
HAProxyTLV. replace(ByteBuf content)
Constructors in io.netty.handler.codec.haproxy with parameters of type ByteBuf Constructor Description HAProxySSLTLV(int verify, byte clientBitField, java.util.List<HAProxyTLV> tlvs, ByteBuf rawContent)
Creates a new HAProxySSLTLVHAProxyTLV(byte typeByteValue, ByteBuf content)
Creates a new HAProxyTLVHAProxyTLV(HAProxyTLV.Type type, byte typeByteValue, ByteBuf content)
Creates a new HAProxyTLVHAProxyTLV(HAProxyTLV.Type type, ByteBuf content)
Creates a new HAProxyTLV -
Uses of ByteBuf in io.netty.handler.codec.http
Fields in io.netty.handler.codec.http declared as ByteBuf Modifier and Type Field Description private ByteBuf
DefaultFullHttpRequest. content
private ByteBuf
DefaultFullHttpResponse. content
private ByteBuf
DefaultHttpContent. content
private ByteBuf
HttpObjectAggregator.AggregatedFullHttpMessage. content
private static ByteBuf
HttpObjectEncoder. CRLF_BUF
private ByteBuf
HttpObjectDecoder. parserScratchBuffer
protected ByteBuf
HttpObjectDecoder.HeaderParser. seq
private static ByteBuf
HttpObjectEncoder. ZERO_CRLF_CRLF_BUF
Fields in io.netty.handler.codec.http with type parameters of type ByteBuf Modifier and Type Field Description private ChunkedInput<ByteBuf>
HttpChunkedInput. input
Methods in io.netty.handler.codec.http that return ByteBuf Modifier and Type Method Description ByteBuf
ComposedLastHttpContent. content()
ByteBuf
DefaultFullHttpRequest. content()
ByteBuf
DefaultFullHttpResponse. content()
ByteBuf
DefaultHttpContent. content()
ByteBuf
HttpObjectAggregator.AggregatedFullHttpMessage. content()
private ByteBuf
HttpObjectEncoder. encodeInitHttpMessage(ChannelHandlerContext ctx, H m)
ByteBuf
HttpObjectDecoder.HeaderParser. parse(ByteBuf buffer)
ByteBuf
HttpObjectDecoder.LineParser. parse(ByteBuf buffer)
Methods in io.netty.handler.codec.http that return types with arguments of type ByteBuf Modifier and Type Method Description MessageToByteEncoder<ByteBuf>
CompressionEncoderFactory. createEncoder()
MessageToByteEncoder<ByteBuf>
HttpContentCompressor.DeflateEncoderFactory. createEncoder()
MessageToByteEncoder<ByteBuf>
HttpContentCompressor.GzipEncoderFactory. createEncoder()
Methods in io.netty.handler.codec.http with parameters of type ByteBuf Modifier and Type Method Description protected FullHttpMessage
HttpObjectAggregator. beginAggregation(HttpMessage start, ByteBuf content)
private static boolean
HttpObjectEncoder. bypassEncoderIfEmpty(ByteBuf msg, java.util.List<java.lang.Object> out)
protected void
HttpClientCodec.Decoder. decode(ChannelHandlerContext ctx, ByteBuf buffer, java.util.List<java.lang.Object> out)
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
HttpServerCodec.HttpServerRequestDecoder. 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)
private void
HttpContentEncoder. encode(ByteBuf in, java.util.List<java.lang.Object> out)
(package private) void
HttpResponseStatus. encode(ByteBuf buf)
(package private) void
HttpVersion. encode(ByteBuf buf)
static void
HttpHeaders. encodeAscii(java.lang.CharSequence seq, ByteBuf buf)
Deprecated.protected static void
HttpObjectEncoder. encodeAscii(java.lang.String s, ByteBuf buf)
Deprecated.private void
HttpObjectEncoder. encodeByteBufAndTrailers(int state, ChannelHandlerContext ctx, java.util.List<java.lang.Object> out, ByteBuf content, HttpHeaders trailingHeaders)
private void
HttpObjectEncoder. encodeByteBufContent(ChannelHandlerContext ctx, ByteBuf content, java.util.List<java.lang.Object> out)
private void
HttpObjectEncoder. encodeByteBufHttpContent(int state, ChannelHandlerContext ctx, ByteBuf buf, ByteBuf content, HttpHeaders trailingHeaders, java.util.List<java.lang.Object> out)
private void
HttpObjectEncoder. encodeChunkedHttpContent(ChannelHandlerContext ctx, ByteBuf content, HttpHeaders trailingHeaders, java.util.List<java.lang.Object> out)
private static boolean
HttpObjectEncoder. encodeContentNonChunk(java.util.List<java.lang.Object> out, ByteBuf buf, ByteBuf content)
protected void
HttpObjectEncoder. encodeHeaders(HttpHeaders headers, ByteBuf buf)
Encode theHttpHeaders
into aByteBuf
.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)
(package private) static void
HttpHeadersEncoder. encoderHeader(java.lang.CharSequence name, java.lang.CharSequence value, ByteBuf buf)
private HttpContent
HttpObjectDecoder. invalidChunk(ByteBuf in, java.lang.Exception cause)
private HttpMessage
HttpObjectDecoder. invalidMessage(HttpMessage current, ByteBuf in, java.lang.Exception cause)
ByteBuf
HttpObjectDecoder.HeaderParser. parse(ByteBuf buffer)
ByteBuf
HttpObjectDecoder.LineParser. parse(ByteBuf buffer)
private HttpObjectDecoder.State
HttpObjectDecoder. readHeaders(ByteBuf buffer)
private LastHttpContent
HttpObjectDecoder. readTrailingHeaders(ByteBuf buffer)
LastHttpContent
ComposedLastHttpContent. replace(ByteBuf content)
FullHttpRequest
DefaultFullHttpRequest. replace(ByteBuf content)
FullHttpResponse
DefaultFullHttpResponse. replace(ByteBuf content)
HttpContent
DefaultHttpContent. replace(ByteBuf content)
LastHttpContent
DefaultLastHttpContent. replace(ByteBuf content)
FullHttpMessage
FullHttpMessage. replace(ByteBuf content)
FullHttpRequest
FullHttpRequest. replace(ByteBuf content)
FullHttpResponse
FullHttpResponse. replace(ByteBuf content)
HttpContent
HttpContent. replace(ByteBuf content)
FullHttpRequest
HttpObjectAggregator.AggregatedFullHttpRequest. replace(ByteBuf content)
FullHttpResponse
HttpObjectAggregator.AggregatedFullHttpResponse. replace(ByteBuf content)
LastHttpContent
LastHttpContent. replace(ByteBuf content)
private boolean
HttpObjectDecoder.LineParser. skipControlChars(ByteBuf buffer, int readableBytes, int readerIndex)
private java.lang.String[]
HttpObjectDecoder. splitInitialLine(ByteBuf asciiBuffer)
private static void
HttpHeadersEncoder. writeAscii(ByteBuf buf, int offset, java.lang.CharSequence value)
Constructors in io.netty.handler.codec.http with parameters of type ByteBuf Constructor 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)
Create a full HTTP response with the given HTTP version, method, URI, and contents.DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri, ByteBuf content, boolean validateHeaders)
Deprecated.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory)
Create a full HTTP response with the given HTTP version, method, URI, contents, and factories for creating headers and trailers.DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeader)
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content)
Create an HTTP response with the given HTTP version, status, and contents.DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders)
Deprecated.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory)
Create an HTTP response with the given HTTP version, status, contents, and with headers and trailers created by the given header factories.DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeaders)
Create an HTTP response with the given HTTP version, status, contents, headers and trailers.DefaultHttpContent(ByteBuf content)
Creates a new instance with the specified chunk content.DefaultLastHttpContent(ByteBuf content)
Create a new last HTTP content message with the given contents.DefaultLastHttpContent(ByteBuf content, boolean validateHeaders)
Deprecated.Prefer theDefaultLastHttpContent(ByteBuf)
constructor instead, to always have header validation enabled.DefaultLastHttpContent(ByteBuf content, HttpHeaders trailingHeaders)
Create a new last HTTP content message with the given contents, and trailing headers.DefaultLastHttpContent(ByteBuf content, HttpHeadersFactory trailersFactory)
Create a new last HTTP content message with the given contents, and trailing headers from the given factory.HeaderParser(ByteBuf seq, int maxLength)
LineParser(ByteBuf seq, int maxLength)
Constructor parameters in io.netty.handler.codec.http with type arguments of type ByteBuf Constructor 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. -
Uses of ByteBuf in io.netty.handler.codec.http.multipart
Fields in io.netty.handler.codec.http.multipart declared as ByteBuf Modifier and Type Field Description (package private) ByteBuf
HttpPostBodyUtil.SeekAheadOptimize. buffer
private ByteBuf
AbstractMemoryHttpData. byteBuf
private ByteBuf
HttpPostRequestEncoder. currentBuffer
The ByteBuf currently used by the encoderprivate ByteBuf
HttpPostStandardRequestDecoder.UrlDecoder. output
private ByteBuf
HttpPostMultipartRequestDecoder. undecodedChunk
The current channelBufferprivate ByteBuf
HttpPostStandardRequestDecoder. undecodedChunk
The current channelBufferFields in io.netty.handler.codec.http.multipart with type parameters of type ByteBuf Modifier and Type Field Description private java.util.List<ByteBuf>
InternalAttribute. value
Methods in io.netty.handler.codec.http.multipart that return ByteBuf Modifier and Type Method Description ByteBuf
AbstractHttpData. content()
ByteBuf
AbstractMixedHttpData. content()
ByteBuf
HttpPostRequestEncoder.WrappedFullHttpRequest. content()
private static ByteBuf
HttpPostStandardRequestDecoder. decodeAttribute(ByteBuf b, java.nio.charset.Charset charset)
private ByteBuf
HttpPostRequestEncoder. fillByteBuf()
ByteBuf
AbstractDiskHttpData. getByteBuf()
ByteBuf
AbstractMemoryHttpData. getByteBuf()
Utility to go from a In Memory FileUpload to a Disk (or another implementation) FileUploadByteBuf
AbstractMixedHttpData. getByteBuf()
ByteBuf
HttpData. getByteBuf()
Returns the content of the file item as a ByteBuf.
Note: this method will allocate a lot of memory, if the data is currently stored on the file system.ByteBuf
AbstractDiskHttpData. getChunk(int length)
ByteBuf
AbstractMemoryHttpData. getChunk(int length)
ByteBuf
AbstractMixedHttpData. 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()
Methods in io.netty.handler.codec.http.multipart with parameters of type ByteBuf Modifier and Type Method Description void
AbstractDiskHttpData. addContent(ByteBuf buffer, boolean last)
void
AbstractMemoryHttpData. addContent(ByteBuf buffer, boolean last)
void
AbstractMixedHttpData. addContent(ByteBuf buffer, boolean last)
void
DiskAttribute. addContent(ByteBuf buffer, boolean last)
void
HttpData. addContent(ByteBuf buffer, boolean last)
Add the content from the ChannelBuffervoid
MemoryAttribute. addContent(ByteBuf buffer, boolean last)
private static ByteBuf
HttpPostStandardRequestDecoder. decodeAttribute(ByteBuf b, java.nio.charset.Charset charset)
(package private) static int
HttpPostBodyUtil. findDelimiter(ByteBuf buffer, int index, byte[] delimiter, boolean precededByLineBreak)
Try to find the delimiter, with LF or CRLF in front of it (added as delimiters) if needed(package private) static int
HttpPostBodyUtil. findLastLineBreak(ByteBuf buffer, int index)
Try to find last LF or CRLF as Line Breaking(package private) static int
HttpPostBodyUtil. findLineBreak(ByteBuf buffer, int index)
Try to find first LF or CRLF as Line Breakingprivate static boolean
HttpPostMultipartRequestDecoder. loadDataMultipartOptimized(ByteBuf undecodedChunk, java.lang.String delimiter, HttpData httpData)
Load the field value or file data from a Multipart requestprivate static java.lang.String
HttpPostMultipartRequestDecoder. readDelimiterOptimized(ByteBuf undecodedChunk, java.lang.String delimiter, java.nio.charset.Charset charset)
Read one line up to --delimiter or --delimiter-- and if existing the CRLF or LF Read one line up to --delimiter or --delimiter-- and if existing the CRLF or LF.private static java.lang.String
HttpPostMultipartRequestDecoder. readLineOptimized(ByteBuf undecodedChunk, java.nio.charset.Charset charset)
Read one line up to the CRLF or LFD
AbstractMixedHttpData. replace(ByteBuf content)
Attribute
Attribute. replace(ByteBuf content)
Attribute
DiskAttribute. replace(ByteBuf content)
FileUpload
DiskFileUpload. replace(ByteBuf content)
FileUpload
FileUpload. replace(ByteBuf content)
HttpData
HttpData. replace(ByteBuf content)
FullHttpRequest
HttpPostRequestEncoder.WrappedFullHttpRequest. replace(ByteBuf content)
Attribute
MemoryAttribute. replace(ByteBuf content)
FileUpload
MemoryFileUpload. replace(ByteBuf content)
Attribute
MixedAttribute. replace(ByteBuf content)
FileUpload
MixedFileUpload. replace(ByteBuf content)
private static void
HttpPostMultipartRequestDecoder. rewriteCurrentBuffer(ByteBuf buffer, int lengthToSkip)
Rewrite buffer in order to skip lengthToSkip bytes from current readerIndex, such that any readable bytes available after readerIndex + lengthToSkip (so before writerIndex) are moved at readerIndex position, therefore decreasing writerIndex of lengthToSkip at the end of the process.void
AbstractDiskHttpData. setContent(ByteBuf buffer)
void
AbstractMemoryHttpData. setContent(ByteBuf buffer)
void
AbstractMixedHttpData. setContent(ByteBuf buffer)
void
HttpData. setContent(ByteBuf buffer)
Set the content from the ChannelBuffer (erase any previous data)private void
HttpPostStandardRequestDecoder. setFinalBuffer(ByteBuf buffer)
private static void
HttpPostMultipartRequestDecoder. skipControlCharacters(ByteBuf undecodedChunk)
Skip control Charactersprivate static void
HttpPostMultipartRequestDecoder. skipControlCharactersStandard(ByteBuf undecodedChunk)
Constructors in io.netty.handler.codec.http.multipart with parameters of type ByteBuf Constructor Description SeekAheadOptimize(ByteBuf buffer)
UrlDecoder(ByteBuf output)
-
Uses of ByteBuf in io.netty.handler.codec.http.websocketx
Fields in io.netty.handler.codec.http.websocketx declared as ByteBuf Modifier and Type Field Description private static ByteBuf
WebSocket00FrameEncoder. _0X00
private static ByteBuf
WebSocket00FrameEncoder. _0XFF
private static ByteBuf
WebSocket00FrameEncoder. _0XFF_0X00
private ByteBuf
WebSocketClientHandshaker00. expectedChallengeResponseBytes
Fields in io.netty.handler.codec.http.websocketx with type parameters of type ByteBuf Modifier and Type Field Description private ChunkedInput<ByteBuf>
WebSocketChunkedInput. input
Methods in io.netty.handler.codec.http.websocketx that return ByteBuf Modifier and Type Method Description private static ByteBuf
ContinuationWebSocketFrame. fromText(java.lang.String text)
Sets the string for this frame.private static ByteBuf
TextWebSocketFrame. fromText(java.lang.String text)
private static ByteBuf
CloseWebSocketFrame. newBinaryData(int statusCode, java.lang.String reasonText)
Methods in io.netty.handler.codec.http.websocketx with parameters of type ByteBuf Modifier and Type Method Description protected WebSocketFrame
WebSocketFrameAggregator. beginAggregation(WebSocketFrame start, ByteBuf content)
void
Utf8Validator. check(ByteBuf buffer)
(package private) void
Utf8Validator. check(ByteBuf buffer, int index, int length)
protected void
WebSocket08FrameDecoder. checkCloseFrameBody(ChannelHandlerContext ctx, ByteBuf buffer)
private void
Utf8FrameValidator. checkUTF8String(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. protocolViolation(ChannelHandlerContext ctx, ByteBuf in, CorruptedWebSocketFrameException ex)
private void
WebSocket08FrameDecoder. protocolViolation(ChannelHandlerContext ctx, ByteBuf in, WebSocketCloseStatus status, java.lang.String reason)
private void
WebSocket08FrameDecoder. protocolViolation(ChannelHandlerContext ctx, ByteBuf in, java.lang.String reason)
BinaryWebSocketFrame
BinaryWebSocketFrame. replace(ByteBuf content)
CloseWebSocketFrame
CloseWebSocketFrame. replace(ByteBuf content)
ContinuationWebSocketFrame
ContinuationWebSocketFrame. replace(ByteBuf content)
PingWebSocketFrame
PingWebSocketFrame. replace(ByteBuf content)
PongWebSocketFrame
PongWebSocketFrame. replace(ByteBuf content)
TextWebSocketFrame
TextWebSocketFrame. replace(ByteBuf content)
abstract WebSocketFrame
WebSocketFrame. replace(ByteBuf content)
private void
WebSocket08FrameDecoder. unmask(ByteBuf frame)
Constructors in io.netty.handler.codec.http.websocketx with parameters of type ByteBuf Constructor 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 frameContinuationWebSocketFrame(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 dataPongWebSocketFrame(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 and the final fragment flag.TextWebSocketFrame(ByteBuf binaryData)
Creates a new text frame with the specified binary data.WebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData)
WebSocketFrame(ByteBuf binaryData)
Constructor parameters in io.netty.handler.codec.http.websocketx with type arguments of type ByteBuf Constructor 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. -
Uses of ByteBuf in io.netty.handler.codec.http.websocketx.extensions.compression
Fields in io.netty.handler.codec.http.websocketx.extensions.compression declared as ByteBuf Modifier and Type Field Description (package private) static ByteBuf
DeflateDecoder. EMPTY_DEFLATE_BLOCK
(package private) static ByteBuf
DeflateDecoder. FRAME_TAIL
Methods in io.netty.handler.codec.http.websocketx.extensions.compression that return ByteBuf Modifier and Type Method Description private ByteBuf
DeflateEncoder. compressContent(ChannelHandlerContext ctx, WebSocketFrame msg)
private ByteBuf
DeflateDecoder. decompressContent(ChannelHandlerContext ctx, WebSocketFrame msg)
-
Uses of ByteBuf in io.netty.handler.codec.http2
Fields in io.netty.handler.codec.http2 declared as ByteBuf Modifier and Type Field Description private ByteBuf
Http2ConnectionHandler.PrefaceDecoder. clientPrefaceString
private static ByteBuf
CleartextHttp2ServerUpgradeHandler. CONNECTION_PREFACE
private static ByteBuf
Http2CodecUtil. CONNECTION_PREFACE
private ByteBuf
DefaultHttp2DataFrame. content
(package private) ByteBuf
StreamBufferingEncoder.DataFrame. data
private ByteBuf
DefaultHttp2FrameReader.HeadersBlockBuilder. headerBlock
private static ByteBuf
Http2ConnectionHandler. HTTP_1_X_BUF
(package private) ByteBuf
HpackHuffmanEncoder.EncodeProcessor. out
private ByteBuf
DefaultHttp2HeadersEncoder. tableSizeChangeOutput
private static ByteBuf
DefaultHttp2FrameWriter. ZERO_BUFFER
This buffer is allocated to the maximum size of the padding field, and filled with zeros.Fields in io.netty.handler.codec.http2 with type parameters of type ByteBuf Modifier and Type Field Description private ChunkedInput<ByteBuf>
Http2DataChunkedInput. input
Methods in io.netty.handler.codec.http2 that return ByteBuf Modifier and Type Method Description private static ByteBuf
Http2ConnectionHandler. clientPrefaceString(Http2Connection connection)
Returns the client preface string if this is a client connection, otherwise returnsnull
.static ByteBuf
Http2CodecUtil. connectionPrefaceBuf()
Returns a buffer containing theHttp2CodecUtil.CONNECTION_PREFACE
.ByteBuf
DefaultHttp2DataFrame. content()
ByteBuf
Http2DataFrame. content()
Payload of DATA frame.ByteBuf
Http2GoAwayFrame. content()
Optional debugging information describing cause the GOAWAY.private static ByteBuf
Http2ServerUpgradeCodec. createSettingsFrame(ChannelHandlerContext ctx, ByteBuf payload)
Creates an HTTP2-Settings header with the given payload.private static ByteBuf
CompressorHttp2ConnectionEncoder. nextReadableBuf(EmbeddedChannel compressor)
private static ByteBuf
DelegatingDecompressorFrameListener. nextReadableBuf(EmbeddedChannel decompressor)
static ByteBuf
Http2CodecUtil. toByteBuf(ChannelHandlerContext ctx, java.lang.Throwable cause)
Creates a buffer containing the error message from the given exception.Methods in io.netty.handler.codec.http2 with parameters of type ByteBuf Modifier and Type Method Description (package private) void
DefaultHttp2FrameReader.HeadersBlockBuilder. addFragment(ByteBuf fragment, int len, ByteBufAllocator alloc, boolean endOfHeaders)
Adds a fragment to the block.private static ByteBuf
Http2ServerUpgradeCodec. createSettingsFrame(ChannelHandlerContext ctx, ByteBuf payload)
Creates an HTTP2-Settings header with the given payload.protected void
CleartextHttp2ServerUpgradeHandler. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
Peek inbound message to determine current connection wants to start HTTP/2 by HTTP upgrade or prior knowledge(package private) void
HpackDecoder. decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders)
Decode the header block into header fields.private void
HpackDecoder. decode(ByteBuf in, HpackDecoder.Http2HeadersSink sink)
AsciiString
HpackHuffmanDecoder. decode(ByteBuf buf, int length)
Decompresses the given Huffman coded string literal.abstract void
Http2ConnectionHandler.BaseDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Http2ConnectionHandler. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
void
Http2ConnectionHandler.FrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
void
Http2ConnectionHandler.PrefaceDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
private void
HpackDecoder. decodeDynamicTableSizeUpdates(ByteBuf in)
void
DecoratingHttp2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
void
DefaultHttp2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
void
Http2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
Called by theHttp2ConnectionHandler
to decode the next frame from the input buffer.Http2Headers
DefaultHttp2HeadersDecoder. decodeHeaders(int streamId, ByteBuf headerBlock)
Http2Headers
Http2HeadersDecoder. decodeHeaders(int streamId, ByteBuf headerBlock)
Decodes the given headers block and returns the headers.private Http2Settings
Http2ServerUpgradeCodec. decodeSettings(ChannelHandlerContext ctx, ByteBuf frame)
Decodes the settings frame and returns the settings.(package private) static int
HpackDecoder. decodeULE128(ByteBuf in, int result)
Unsigned Little Endian Base 128 Variable-Length Integer Encoding(package private) static long
HpackDecoder. decodeULE128(ByteBuf in, long result)
Unsigned Little Endian Base 128 Variable-Length Integer Encodingvoid
HpackHuffmanEncoder. encode(ByteBuf out, java.lang.CharSequence data)
Compresses the input string literal using the Huffman coding.private void
HpackEncoder. encodeAndAddEntries(ByteBuf out, java.lang.CharSequence name, int nameHash, java.lang.CharSequence value, int valueHash)
private void
HpackEncoder. encodeHeader(ByteBuf out, java.lang.CharSequence name, java.lang.CharSequence value, boolean sensitive, long headerSize)
Encode the header field into the header block.void
DefaultHttp2HeadersEncoder. encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer)
void
HpackEncoder. encodeHeaders(int streamId, ByteBuf out, Http2Headers headers, Http2HeadersEncoder.SensitivityDetector sensitivityDetector)
Encode the header field into the header block.void
Http2HeadersEncoder. encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer)
Encodes the given headers and writes the output headers block to the given output buffer.private void
HpackEncoder. encodeHeadersEnforceMaxHeaderListSize(int streamId, ByteBuf out, Http2Headers headers, Http2HeadersEncoder.SensitivityDetector sensitivityDetector)
private void
HpackEncoder. encodeHeadersIgnoreMaxHeaderListSize(ByteBuf out, Http2Headers headers, Http2HeadersEncoder.SensitivityDetector sensitivityDetector)
private static void
HpackEncoder. encodeInteger(ByteBuf out, int mask, int n, int i)
Encode integer according to Section 5.1.private static void
HpackEncoder. encodeInteger(ByteBuf out, int mask, int n, long i)
Encode integer according to Section 5.1.private void
HpackEncoder. encodeLiteral(ByteBuf out, java.lang.CharSequence name, java.lang.CharSequence value, HpackUtil.IndexType indexType, int nameIndex)
Encode literal header field according to Section 6.2.private void
HpackHuffmanEncoder. encodeSlowPath(ByteBuf out, java.lang.CharSequence data)
private void
HpackEncoder. encodeStringLiteral(ByteBuf out, java.lang.CharSequence string)
Encode string literal according to Section 5.2.ChannelFuture
Http2ConnectionHandler. goAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise)
ChannelFuture
Http2LifecycleManager. goAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise)
Prevents the peer from creating streams and close the connection iferrorCode
is notHttp2Error.NO_ERROR
.void
DefaultHttp2Connection. goAwayReceived(int lastKnownStream, long errorCode, ByteBuf debugData)
void
Http2Connection. goAwayReceived(int lastKnownStream, long errorCode, ByteBuf message)
Indicates that aGOAWAY
was received from the remote endpoint and sets the last known stream.boolean
DefaultHttp2Connection. goAwaySent(int lastKnownStream, long errorCode, ByteBuf debugData)
boolean
Http2Connection. goAwaySent(int lastKnownStream, long errorCode, ByteBuf message)
Updates the local state of thisHttp2Connection
as a result of aGOAWAY
to send to the remote endpoint.void
Http2FrameLogger. logData(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream)
void
Http2FrameLogger. logGoAway(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2FrameLogger. logUnknownFrame(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf data)
private static java.lang.IllegalArgumentException
HpackDecoder. notEnoughDataException(ByteBuf in)
int
DefaultHttp2ConnectionDecoder.FrameReadListener. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
DefaultHttp2ConnectionDecoder.PrefaceFrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
DelegatingDecompressorFrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
Http2EmptyDataFrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
Http2EventAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
Http2FrameAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
Http2FrameCodec.FrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
Http2FrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
Handles an inboundDATA
frame.int
Http2FrameListenerDecorator. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
int
InboundHttp2ToHttpAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
void
DefaultHttp2ConnectionDecoder.FrameReadListener. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
void
DefaultHttp2ConnectionDecoder.PrefaceFrameListener. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2EventAdapter. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2FrameAdapter. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2FrameCodec.FrameListener. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2FrameListener. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
Handles an inboundGO_AWAY
frame.void
Http2FrameListenerDecorator. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
(package private) void
DefaultHttp2ConnectionDecoder. onGoAwayRead0(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2Connection.Listener. onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData)
Called when aGOAWAY
was received from the remote endpoint.void
Http2ConnectionAdapter. onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2EventAdapter. onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2Connection.Listener. onGoAwaySent(int lastStreamId, long errorCode, ByteBuf debugData)
Called when aGOAWAY
frame was sent for the connection.void
Http2ConnectionAdapter. onGoAwaySent(int lastStreamId, long errorCode, ByteBuf debugData)
void
Http2EventAdapter. onGoAwaySent(int lastStreamId, long errorCode, ByteBuf debugData)
void
DefaultHttp2ConnectionDecoder.FrameReadListener. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
void
DefaultHttp2ConnectionDecoder.PrefaceFrameListener. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
void
Http2EventAdapter. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
void
Http2FrameAdapter. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
void
Http2FrameCodec.FrameListener. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
void
Http2FrameListener. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
Handler for a frame not defined by the HTTP/2 spec.void
Http2FrameListenerDecorator. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
(package private) void
DefaultHttp2ConnectionDecoder. onUnknownFrame0(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload)
private boolean
DefaultHttp2FrameReader. preProcessFrame(ByteBuf in)
(package private) abstract void
DefaultHttp2FrameReader.HeadersContinuation. processFragment(boolean endOfHeaders, ByteBuf fragment, int len, Http2FrameListener listener)
Processes the next fragment for the current header block.private static void
Http2ConnectionHandler. processGoAwayWriteResult(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelFuture future)
private void
DefaultHttp2FrameReader. processPayloadState(ChannelHandlerContext ctx, ByteBuf in, Http2FrameListener listener)
private boolean
Http2ConnectionHandler.PrefaceDecoder. readClientPrefaceString(ByteBuf in)
Decodes the client connection preface string from the input buffer.private void
DefaultHttp2FrameReader. readContinuationFrame(ByteBuf payload, Http2FrameListener listener)
private void
DefaultHttp2FrameReader. readDataFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
void
DefaultHttp2FrameReader. readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener)
void
Http2FrameReader. readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener)
Attempts to read the next frame from the input buffer.void
Http2InboundFrameLogger. readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener)
private void
DefaultHttp2FrameReader. readGoAwayFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
private void
DefaultHttp2FrameReader. readHeadersFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
private int
DefaultHttp2FrameReader. readPadding(ByteBuf payload)
If padding is present in the payload, reads the next byte as padding.private void
DefaultHttp2FrameReader. readPriorityFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
private void
DefaultHttp2FrameReader. readPushPromiseFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
private void
DefaultHttp2FrameReader. readRstStreamFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
private void
DefaultHttp2FrameReader. readSettingsFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
private AsciiString
HpackDecoder. readStringLiteral(ByteBuf in, int length, boolean huffmanEncoded)
private void
DefaultHttp2FrameReader. readUnknownFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
static int
Http2CodecUtil. readUnsignedInt(ByteBuf buf)
Reads a big-endian (31-bit) integer from the buffer.private void
DefaultHttp2FrameReader. readWindowUpdateFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener)
void
DefaultHttp2LocalFlowController. receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream)
void
DelegatingDecompressorFrameListener.ConsumedBytesConverter. receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream)
void
Http2LocalFlowController. receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream)
Receives an inboundDATA
frame from the remote endpoint and applies flow control policies to it for both thestream
as well as the connection.DefaultHttp2DataFrame
DefaultHttp2DataFrame. replace(ByteBuf content)
Http2GoAwayFrame
DefaultHttp2GoAwayFrame. replace(ByteBuf content)
DefaultHttp2UnknownFrame
DefaultHttp2UnknownFrame. replace(ByteBuf content)
Http2DataFrame
Http2DataFrame. replace(ByteBuf content)
Http2GoAwayFrame
Http2GoAwayFrame. replace(ByteBuf content)
Http2UnknownFrame
Http2UnknownFrame. replace(ByteBuf content)
void
HpackEncoder. setMaxHeaderTableSize(ByteBuf out, long maxHeaderTableSize)
Set the maximum table size.static FullHttpRequest
HttpConversionUtil. toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBuf content, boolean validateHttpHeaders)
Create a new object to contain the request datastatic FullHttpResponse
HttpConversionUtil. toFullHttpResponse(int streamId, Http2Headers http2Headers, ByteBuf content, boolean validateHttpHeaders)
Create a new object to contain the response dataprivate java.lang.String
Http2FrameLogger. toString(ByteBuf buf)
private boolean
Http2ConnectionHandler.PrefaceDecoder. verifyFirstFrameIsSettings(ByteBuf in)
Peeks at that the next frame in the buffer and verifies that it is a non-ackSETTINGS
frame.private ChannelFuture
DefaultHttp2FrameWriter. writeContinuationFrames(ChannelHandlerContext ctx, int streamId, ByteBuf headerBlock, Http2CodecUtil.SimpleChannelPromiseAggregator promiseAggregator)
Writes as many continuation frames as needed untilpadding
andheaderBlock
are consumed.ChannelFuture
CompressorHttp2ConnectionEncoder. writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream, ChannelPromise promise)
ChannelFuture
DecoratingHttp2FrameWriter. writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise)
ChannelFuture
DefaultHttp2ConnectionEncoder. writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream, ChannelPromise promise)
ChannelFuture
DefaultHttp2FrameWriter. writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise)
ChannelFuture
Http2DataWriter. writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise)
Writes aDATA
frame to the remote endpoint.ChannelFuture
Http2OutboundFrameLogger. writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise)
ChannelFuture
StreamBufferingEncoder. writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream, ChannelPromise promise)
ChannelFuture
DecoratingHttp2FrameWriter. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise)
ChannelFuture
DefaultHttp2ConnectionEncoder. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise)
ChannelFuture
DefaultHttp2FrameWriter. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise)
ChannelFuture
Http2ConnectionEncoder. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise)
Writes the given data to the internalHttp2FrameWriter
without performing any state checks on the connection/stream.ChannelFuture
Http2FrameWriter. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise)
Generic write method for any HTTP/2 frame.ChannelFuture
Http2OutboundFrameLogger. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise)
static void
Http2CodecUtil. writeFrameHeader(ByteBuf out, int payloadLength, byte type, Http2Flags flags, int streamId)
Writes an HTTP/2 frame header to the output buffer.(package private) static void
Http2CodecUtil. writeFrameHeaderInternal(ByteBuf out, int payloadLength, byte type, Http2Flags flags, int streamId)
ChannelFuture
DecoratingHttp2FrameWriter. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise)
ChannelFuture
DefaultHttp2ConnectionEncoder. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise)
ChannelFuture
DefaultHttp2FrameWriter. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise)
ChannelFuture
Http2FrameWriter. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise)
Writes a GO_AWAY frame to the remote endpoint.ChannelFuture
Http2OutboundFrameLogger. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise)
private static void
DefaultHttp2FrameWriter. writePaddingLength(ByteBuf buf, int padding)
Constructors in io.netty.handler.codec.http2 with parameters of type ByteBuf Constructor Description DataFrame(ByteBuf data, int padding, boolean endOfStream, ChannelPromise promise)
DefaultHttp2DataFrame(ByteBuf content)
Equivalent tonew DefaultHttp2DataFrame(content, false)
.DefaultHttp2DataFrame(ByteBuf content, boolean endStream)
Equivalent tonew DefaultHttp2DataFrame(content, endStream, 0)
.DefaultHttp2DataFrame(ByteBuf content, boolean endStream, int padding)
Construct a new data message.DefaultHttp2GoAwayFrame(int lastStreamId, long errorCode, ByteBuf content)
Construct a new GOAWAY message.DefaultHttp2GoAwayFrame(long errorCode, ByteBuf content)
Construct a new GOAWAY message.DefaultHttp2GoAwayFrame(Http2Error error, ByteBuf content)
DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, ByteBuf data)
FlowControlledData(Http2Stream stream, ByteBuf buf, int padding, boolean endOfStream, ChannelPromise promise)
Constructor parameters in io.netty.handler.codec.http2 with type arguments of type ByteBuf Constructor Description Http2DataChunkedInput(ChunkedInput<ByteBuf> input, Http2FrameStream stream)
Creates a new instance using the specified input. -
Uses of ByteBuf in io.netty.handler.codec.json
Methods in io.netty.handler.codec.json that return ByteBuf Modifier and Type Method Description protected ByteBuf
JsonObjectDecoder. extractObject(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length)
Override this method if you want to filter the json objects/arrays that get passed through the pipeline.Methods in io.netty.handler.codec.json with parameters of type ByteBuf Modifier and Type Method Description protected void
JsonObjectDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
private void
JsonObjectDecoder. decodeByte(byte c, ByteBuf in, int idx)
protected ByteBuf
JsonObjectDecoder. extractObject(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length)
Override this method if you want to filter the json objects/arrays that get passed through the pipeline. -
Uses of ByteBuf in io.netty.handler.codec.memcache
Fields in io.netty.handler.codec.memcache declared as ByteBuf Modifier and Type Field Description private ByteBuf
DefaultMemcacheContent. content
Methods in io.netty.handler.codec.memcache that return ByteBuf Modifier and Type Method Description ByteBuf
DefaultMemcacheContent. content()
protected abstract ByteBuf
AbstractMemcacheObjectEncoder. encodeMessage(ChannelHandlerContext ctx, M msg)
Take the givenMemcacheMessage
and encode it into a writableByteBuf
.Methods in io.netty.handler.codec.memcache with parameters of type ByteBuf Modifier and Type Method Description LastMemcacheContent
DefaultLastMemcacheContent. replace(ByteBuf content)
MemcacheContent
DefaultMemcacheContent. replace(ByteBuf content)
FullMemcacheMessage
FullMemcacheMessage. replace(ByteBuf content)
LastMemcacheContent
LastMemcacheContent. replace(ByteBuf content)
MemcacheContent
MemcacheContent. replace(ByteBuf content)
Constructors in io.netty.handler.codec.memcache with parameters of type ByteBuf Constructor Description DefaultLastMemcacheContent(ByteBuf content)
DefaultMemcacheContent(ByteBuf content)
Creates a new instance with the specified content. -
Uses of ByteBuf in io.netty.handler.codec.memcache.binary
Fields in io.netty.handler.codec.memcache.binary declared as ByteBuf Modifier and Type Field Description private ByteBuf
DefaultFullBinaryMemcacheRequest. content
private ByteBuf
DefaultFullBinaryMemcacheResponse. content
private ByteBuf
AbstractBinaryMemcacheMessage. extras
Contains the optional extras.private ByteBuf
AbstractBinaryMemcacheMessage. key
Contains the optional key.Methods in io.netty.handler.codec.memcache.binary that return ByteBuf Modifier and Type Method Description ByteBuf
DefaultFullBinaryMemcacheRequest. content()
ByteBuf
DefaultFullBinaryMemcacheResponse. content()
protected ByteBuf
AbstractBinaryMemcacheEncoder. encodeMessage(ChannelHandlerContext ctx, M msg)
ByteBuf
AbstractBinaryMemcacheMessage. extras()
ByteBuf
BinaryMemcacheMessage. extras()
Returns aByteBuf
representation of the optional extras.ByteBuf
AbstractBinaryMemcacheMessage. key()
ByteBuf
BinaryMemcacheMessage. key()
Returns the optional key of the document.Methods in io.netty.handler.codec.memcache.binary with parameters of type ByteBuf Modifier and Type Method Description protected FullMemcacheMessage
BinaryMemcacheObjectAggregator. beginAggregation(BinaryMemcacheMessage start, ByteBuf content)
protected void
AbstractBinaryMemcacheDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
BinaryMemcacheClientCodec.Decoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected abstract M
AbstractBinaryMemcacheDecoder. decodeHeader(ByteBuf in)
Decode and return the parsedBinaryMemcacheMessage
.protected BinaryMemcacheRequest
BinaryMemcacheRequestDecoder. decodeHeader(ByteBuf in)
protected BinaryMemcacheResponse
BinaryMemcacheResponseDecoder. decodeHeader(ByteBuf in)
private static void
AbstractBinaryMemcacheEncoder. encodeExtras(ByteBuf buf, ByteBuf extras)
Encode the extras.protected abstract void
AbstractBinaryMemcacheEncoder. encodeHeader(ByteBuf buf, M msg)
Encode the header.protected void
BinaryMemcacheRequestEncoder. encodeHeader(ByteBuf buf, BinaryMemcacheRequest msg)
protected void
BinaryMemcacheResponseEncoder. encodeHeader(ByteBuf buf, BinaryMemcacheResponse msg)
private static void
AbstractBinaryMemcacheEncoder. encodeKey(ByteBuf buf, ByteBuf key)
Encode the key.private DefaultFullBinaryMemcacheRequest
DefaultFullBinaryMemcacheRequest. newInstance(ByteBuf key, ByteBuf extras, ByteBuf content)
private FullBinaryMemcacheResponse
DefaultFullBinaryMemcacheResponse. newInstance(ByteBuf key, ByteBuf extras, ByteBuf content)
FullBinaryMemcacheRequest
DefaultFullBinaryMemcacheRequest. replace(ByteBuf content)
FullBinaryMemcacheResponse
DefaultFullBinaryMemcacheResponse. replace(ByteBuf content)
FullBinaryMemcacheRequest
FullBinaryMemcacheRequest. replace(ByteBuf content)
FullBinaryMemcacheResponse
FullBinaryMemcacheResponse. replace(ByteBuf content)
BinaryMemcacheMessage
AbstractBinaryMemcacheMessage. setExtras(ByteBuf extras)
BinaryMemcacheMessage
BinaryMemcacheMessage. setExtras(ByteBuf extras)
Sets the extras buffer on the message.BinaryMemcacheMessage
AbstractBinaryMemcacheMessage. setKey(ByteBuf key)
BinaryMemcacheMessage
BinaryMemcacheMessage. setKey(ByteBuf key)
Sets the key of the document.private static FullBinaryMemcacheRequest
BinaryMemcacheObjectAggregator. toFullRequest(BinaryMemcacheRequest request, ByteBuf content)
private static FullBinaryMemcacheResponse
BinaryMemcacheObjectAggregator. toFullResponse(BinaryMemcacheResponse response, ByteBuf content)
-
Uses of ByteBuf in io.netty.handler.codec.mqtt
Fields in io.netty.handler.codec.mqtt declared as ByteBuf Modifier and Type Field Description private ByteBuf
MqttMessageBuilders.PublishBuilder. payload
Methods in io.netty.handler.codec.mqtt that return types with arguments of type ByteBuf Modifier and Type Method Description private static MqttDecoder.Result<ByteBuf>
MqttDecoder. decodePublishPayload(ByteBuf buffer, int bytesRemainingInVariablePart)
Methods in io.netty.handler.codec.mqtt with parameters of type ByteBuf Modifier and Type Method Description protected void
MqttDecoder. decode(ChannelHandlerContext ctx, ByteBuf buffer, java.util.List<java.lang.Object> out)
private static byte[]
MqttDecoder. decodeByteArray(ByteBuf buffer)
private static MqttDecoder.Result<MqttConnAckVariableHeader>
MqttDecoder. decodeConnAckVariableHeader(ChannelHandlerContext ctx, ByteBuf buffer)
private static MqttDecoder.Result<MqttConnectPayload>
MqttDecoder. decodeConnectionPayload(ByteBuf buffer, int maxClientIdLength, MqttConnectVariableHeader mqttConnectVariableHeader)
private static MqttDecoder.Result<MqttConnectVariableHeader>
MqttDecoder. decodeConnectionVariableHeader(ChannelHandlerContext ctx, ByteBuf buffer)
private static MqttFixedHeader
MqttDecoder. decodeFixedHeader(ChannelHandlerContext ctx, ByteBuf buffer)
Decodes the fixed header.private static int
MqttDecoder. decodeMessageId(ByteBuf buffer)
private static MqttDecoder.Result<MqttMessageIdAndPropertiesVariableHeader>
MqttDecoder. decodeMessageIdAndPropertiesVariableHeader(ChannelHandlerContext ctx, ByteBuf buffer)
private static int
MqttDecoder. decodeMsbLsb(ByteBuf buffer)
numberOfBytesConsumed = 2.private static MqttDecoder.Result<?>
MqttDecoder. decodePayload(ChannelHandlerContext ctx, ByteBuf buffer, MqttMessageType messageType, int bytesRemainingInVariablePart, int maxClientIdLength, java.lang.Object variableHeader)
Decodes the payload.private static MqttDecoder.Result<MqttProperties>
MqttDecoder. decodeProperties(ByteBuf buffer)
private static MqttDecoder.Result<ByteBuf>
MqttDecoder. decodePublishPayload(ByteBuf buffer, int bytesRemainingInVariablePart)
private MqttDecoder.Result<MqttPublishVariableHeader>
MqttDecoder. decodePublishVariableHeader(ChannelHandlerContext ctx, ByteBuf buffer, MqttFixedHeader mqttFixedHeader)
private MqttDecoder.Result<MqttPubReplyMessageVariableHeader>
MqttDecoder. decodePubReplyMessage(ByteBuf buffer)
private MqttDecoder.Result<MqttReasonCodeAndPropertiesVariableHeader>
MqttDecoder. decodeReasonCodeAndPropertiesVariableHeader(ByteBuf buffer)
private static MqttDecoder.Result<java.lang.String>
MqttDecoder. decodeString(ByteBuf buffer)
private static MqttDecoder.Result<java.lang.String>
MqttDecoder. decodeString(ByteBuf buffer, int minBytes, int maxBytes)
private static MqttDecoder.Result<MqttSubAckPayload>
MqttDecoder. decodeSubackPayload(ByteBuf buffer, int bytesRemainingInVariablePart)
private static MqttDecoder.Result<MqttSubscribePayload>
MqttDecoder. decodeSubscribePayload(ByteBuf buffer, int bytesRemainingInVariablePart)
private static MqttDecoder.Result<MqttUnsubAckPayload>
MqttDecoder. decodeUnsubAckPayload(ChannelHandlerContext ctx, ByteBuf buffer, int bytesRemainingInVariablePart)
private static MqttDecoder.Result<MqttUnsubscribePayload>
MqttDecoder. decodeUnsubscribePayload(ByteBuf buffer, int bytesRemainingInVariablePart)
private static long
MqttDecoder. decodeVariableByteInteger(ByteBuf buffer)
See 1.5.5 Variable Byte Integer section of MQTT 5.0 specification for encoding/decoding rulesprivate MqttDecoder.Result<?>
MqttDecoder. decodeVariableHeader(ChannelHandlerContext ctx, ByteBuf buffer, MqttFixedHeader mqttFixedHeader)
Decodes the variable header (if any)MqttMessageBuilders.PublishBuilder
MqttMessageBuilders.PublishBuilder. payload(ByteBuf payload)
MqttPublishMessage
MqttPublishMessage. replace(ByteBuf content)
private static void
MqttEncoder. writeEagerUTF8String(ByteBuf buf, java.lang.String s)
private static void
MqttEncoder. writeExactUTF8String(ByteBuf buf, java.lang.String s, int utf8Length)
private static void
MqttEncoder. writeUnsafeUTF8String(ByteBuf buf, java.lang.String s)
private static void
MqttEncoder. writeVariableLengthInt(ByteBuf buf, int num)
Constructors in io.netty.handler.codec.mqtt with parameters of type ByteBuf Constructor Description MqttPublishMessage(MqttFixedHeader mqttFixedHeader, MqttPublishVariableHeader variableHeader, ByteBuf payload)
-
Uses of ByteBuf in io.netty.handler.codec.redis
Fields in io.netty.handler.codec.redis with type parameters of type ByteBuf Modifier and Type Field Description private java.util.Map<ByteBuf,ErrorRedisMessage>
FixedRedisMessagePool. byteBufToErrors
private java.util.Map<ByteBuf,IntegerRedisMessage>
FixedRedisMessagePool. byteBufToIntegers
private java.util.Map<ByteBuf,SimpleStringRedisMessage>
FixedRedisMessagePool. byteBufToSimpleStrings
Methods in io.netty.handler.codec.redis that return ByteBuf Modifier and Type Method Description private static ByteBuf
RedisDecoder. readLine(ByteBuf in)
Methods in io.netty.handler.codec.redis with parameters of type ByteBuf Modifier and Type Method Description protected FullBulkStringRedisMessage
RedisBulkStringAggregator. beginAggregation(BulkStringHeaderRedisMessage start, ByteBuf content)
protected void
RedisDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
private boolean
RedisDecoder. decodeBulkString(ByteBuf in, java.util.List<java.lang.Object> out)
private boolean
RedisDecoder. decodeBulkStringContent(ByteBuf in, java.util.List<java.lang.Object> out)
private boolean
RedisDecoder. decodeBulkStringEndOfLine(ByteBuf in, java.util.List<java.lang.Object> out)
private boolean
RedisDecoder. decodeInline(ByteBuf in, java.util.List<java.lang.Object> out)
private boolean
RedisDecoder. decodeLength(ByteBuf in, java.util.List<java.lang.Object> out)
private boolean
RedisDecoder. decodeType(ByteBuf in)
ErrorRedisMessage
FixedRedisMessagePool. getError(ByteBuf content)
ErrorRedisMessage
RedisMessagePool. getError(ByteBuf content)
ReturnsErrorRedisMessage
for givencontent
.IntegerRedisMessage
FixedRedisMessagePool. getInteger(ByteBuf content)
IntegerRedisMessage
RedisMessagePool. getInteger(ByteBuf content)
ReturnsIntegerRedisMessage
for givencontent
.SimpleStringRedisMessage
FixedRedisMessagePool. getSimpleString(ByteBuf content)
SimpleStringRedisMessage
RedisMessagePool. getSimpleString(ByteBuf content)
ReturnsSimpleStringRedisMessage
for givencontent
.private RedisMessage
RedisDecoder. newInlineRedisMessage(RedisMessageType messageType, ByteBuf content)
private long
RedisDecoder. parsePositiveNumber(ByteBuf byteBuf)
private long
RedisDecoder. parseRedisNumber(ByteBuf byteBuf)
private static void
RedisDecoder. readEndOfLine(ByteBuf in)
static RedisMessageType
RedisMessageType. readFrom(ByteBuf in, boolean decodeInlineCommands)
DetermineRedisMessageType
based on the type prefixbyte
read from given the buffer.private static ByteBuf
RedisDecoder. readLine(ByteBuf in)
BulkStringRedisContent
BulkStringRedisContent. replace(ByteBuf content)
BulkStringRedisContent
DefaultBulkStringRedisContent. replace(ByteBuf content)
LastBulkStringRedisContent
DefaultLastBulkStringRedisContent. replace(ByteBuf content)
FullBulkStringRedisMessage
FullBulkStringRedisMessage. replace(ByteBuf content)
LastBulkStringRedisContent
LastBulkStringRedisContent. replace(ByteBuf content)
void
RedisMessageType. writeTo(ByteBuf out)
Write the message type's prefix to the given buffer.Constructors in io.netty.handler.codec.redis with parameters of type ByteBuf Constructor Description DefaultBulkStringRedisContent(ByteBuf content)
Creates aDefaultBulkStringRedisContent
for the givencontent
.DefaultLastBulkStringRedisContent(ByteBuf content)
Creates aDefaultLastBulkStringRedisContent
for the givencontent
.FullBulkStringRedisMessage(ByteBuf content)
Creates aFullBulkStringRedisMessage
for the givencontent
. -
Uses of ByteBuf in io.netty.handler.codec.rtsp
Methods in io.netty.handler.codec.rtsp with parameters of type ByteBuf Modifier and Type Method Description protected void
RtspEncoder. encodeInitialLine(ByteBuf buf, HttpMessage message)
-
Uses of ByteBuf in io.netty.handler.codec.serialization
Methods in io.netty.handler.codec.serialization with parameters of type ByteBuf Modifier and Type Method Description protected java.lang.Object
ObjectDecoder. decode(ChannelHandlerContext ctx, ByteBuf in)
Deprecated.protected void
CompatibleObjectEncoder. encode(ChannelHandlerContext ctx, java.io.Serializable msg, ByteBuf out)
Deprecated.protected void
ObjectEncoder. encode(ChannelHandlerContext ctx, java.io.Serializable msg, ByteBuf out)
Deprecated. -
Uses of ByteBuf in io.netty.handler.codec.smtp
Fields in io.netty.handler.codec.smtp declared as ByteBuf Modifier and Type Field Description private static ByteBuf
SmtpRequestEncoder. DOT_CRLF_BUFFER
Methods in io.netty.handler.codec.smtp with parameters of type ByteBuf Modifier and Type Method Description protected SmtpResponse
SmtpResponseDecoder. decode(ChannelHandlerContext ctx, ByteBuf buffer)
(package private) void
SmtpCommand. encode(ByteBuf buffer)
private static DecoderException
SmtpResponseDecoder. newDecoderException(ByteBuf buffer, int readerIndex, int readable)
private static int
SmtpResponseDecoder. parseCode(ByteBuf buffer)
Parses the io.netty.handler.codec.smtp code without any allocation, which is three digits.LastSmtpContent
DefaultLastSmtpContent. replace(ByteBuf content)
SmtpContent
DefaultSmtpContent. replace(ByteBuf content)
LastSmtpContent
LastSmtpContent. replace(ByteBuf content)
SmtpContent
SmtpContent. replace(ByteBuf content)
private static void
SmtpRequestEncoder. writeParameters(java.util.List<java.lang.CharSequence> parameters, ByteBuf out, boolean commandNotEmpty)
Constructors in io.netty.handler.codec.smtp with parameters of type ByteBuf Constructor Description DefaultLastSmtpContent(ByteBuf data)
Creates a new instance using the given data.DefaultSmtpContent(ByteBuf data)
Creates a new instance using the given data. -
Uses of ByteBuf in io.netty.handler.codec.socks
Methods in io.netty.handler.codec.socks with parameters of type ByteBuf Modifier and Type Method Description protected void
SocksAuthRequestDecoder. 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
SocksCmdRequestDecoder. 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
SocksInitRequestDecoder. 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
SocksAuthRequest. encodeAsByteBuf(ByteBuf byteBuf)
void
SocksAuthResponse. encodeAsByteBuf(ByteBuf byteBuf)
void
SocksCmdRequest. encodeAsByteBuf(ByteBuf byteBuf)
void
SocksCmdResponse. encodeAsByteBuf(ByteBuf byteBuf)
void
SocksInitRequest. encodeAsByteBuf(ByteBuf byteBuf)
void
SocksInitResponse. encodeAsByteBuf(ByteBuf byteBuf)
abstract void
SocksMessage. encodeAsByteBuf(ByteBuf byteBuf)
Deprecated.Do not use; this method was intended for an internal use only.void
UnknownSocksRequest. encodeAsByteBuf(ByteBuf byteBuf)
void
UnknownSocksResponse. encodeAsByteBuf(ByteBuf byteBuf)
(package private) static java.lang.String
SocksCommonUtils. readUsAscii(ByteBuf buffer, int length)
-
Uses of ByteBuf in io.netty.handler.codec.socksx
Methods in io.netty.handler.codec.socksx with parameters of type ByteBuf Modifier and Type Method Description protected void
SocksPortUnificationServerHandler. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
-
Uses of ByteBuf in io.netty.handler.codec.socksx.v4
Methods in io.netty.handler.codec.socksx.v4 with parameters of type ByteBuf Modifier and Type Method Description protected void
Socks4ClientDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Socks4ServerDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Socks4ClientEncoder. encode(ChannelHandlerContext ctx, Socks4CommandRequest msg, ByteBuf out)
protected void
Socks4ServerEncoder. encode(ChannelHandlerContext ctx, Socks4CommandResponse msg, ByteBuf out)
private static java.lang.String
Socks4ServerDecoder. readString(java.lang.String fieldName, ByteBuf in)
Reads a variable-length NUL-terminated string as defined in SOCKS4. -
Uses of ByteBuf in io.netty.handler.codec.socksx.v5
Methods in io.netty.handler.codec.socksx.v5 with parameters of type ByteBuf Modifier and Type Method Description protected void
Socks5CommandRequestDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Socks5CommandResponseDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Socks5InitialRequestDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Socks5InitialResponseDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Socks5PasswordAuthRequestDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
Socks5PasswordAuthResponseDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
java.lang.String
Socks5AddressDecoder. decodeAddress(Socks5AddressType addrType, ByteBuf in)
Decodes a SOCKS5 address field into its string representation.protected void
Socks5ClientEncoder. encode(ChannelHandlerContext ctx, Socks5Message msg, ByteBuf out)
protected void
Socks5ServerEncoder. encode(ChannelHandlerContext ctx, Socks5Message msg, ByteBuf out)
void
Socks5AddressEncoder. encodeAddress(Socks5AddressType addrType, java.lang.String addrValue, ByteBuf out)
Encodes a SOCKS5 address.private static void
Socks5ClientEncoder. encodeAuthMethodRequest(Socks5InitialRequest msg, ByteBuf out)
private static void
Socks5ServerEncoder. encodeAuthMethodResponse(Socks5InitialResponse msg, ByteBuf out)
private void
Socks5ClientEncoder. encodeCommandRequest(Socks5CommandRequest msg, ByteBuf out)
private void
Socks5ServerEncoder. encodeCommandResponse(Socks5CommandResponse msg, ByteBuf out)
private static void
Socks5ClientEncoder. encodePasswordAuthRequest(Socks5PasswordAuthRequest msg, ByteBuf out)
private static void
Socks5ServerEncoder. encodePasswordAuthResponse(Socks5PasswordAuthResponse msg, ByteBuf out)
-
Uses of ByteBuf in io.netty.handler.codec.spdy
Fields in io.netty.handler.codec.spdy declared as ByteBuf Modifier and Type Field Description private ByteBuf
SpdyHeaderBlockRawDecoder. cumulation
private ByteBuf
DefaultSpdyDataFrame. data
private ByteBuf
SpdyHeaderBlockZlibDecoder. decompressed
Methods in io.netty.handler.codec.spdy that return ByteBuf Modifier and Type Method Description ByteBuf
DefaultSpdyDataFrame. content()
ByteBuf
SpdyDataFrame. content()
Returns the data payload of this frame.(package private) abstract ByteBuf
SpdyHeaderBlockEncoder. encode(ByteBufAllocator alloc, SpdyHeadersFrame frame)
private ByteBuf
SpdyHeaderBlockJZlibEncoder. encode(ByteBufAllocator alloc)
ByteBuf
SpdyHeaderBlockJZlibEncoder. encode(ByteBufAllocator alloc, SpdyHeadersFrame frame)
ByteBuf
SpdyHeaderBlockRawEncoder. encode(ByteBufAllocator alloc, SpdyHeadersFrame frame)
private ByteBuf
SpdyHeaderBlockZlibEncoder. encode(ByteBufAllocator alloc, int len)
ByteBuf
SpdyHeaderBlockZlibEncoder. 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)
Methods in io.netty.handler.codec.spdy with parameters of type ByteBuf Modifier and Type Method Description private boolean
SpdyHeaderBlockZlibEncoder. compressInto(ByteBuf compressed)
protected void
SpdyFrameCodec. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
void
SpdyFrameDecoder. decode(ByteBuf buffer)
(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.(package private) void
SpdyHeaderBlockRawDecoder. decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame)
(package private) void
SpdyHeaderBlockZlibDecoder. decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame)
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
SpdyFrameCodec. readDataFrame(int streamId, boolean last, ByteBuf data)
void
SpdyFrameDecoderDelegate. readDataFrame(int streamId, boolean last, ByteBuf data)
Called when a DATA frame is received.void
SpdyFrameCodec. readHeaderBlock(ByteBuf headerBlock)
void
SpdyFrameDecoderDelegate. readHeaderBlock(ByteBuf headerBlock)
Called when the header block within a SYN_STREAM, SYN_REPLY, or HEADERS frame is received.private static int
SpdyHeaderBlockRawDecoder. readLengthField(ByteBuf buffer)
SpdyDataFrame
DefaultSpdyDataFrame. replace(ByteBuf content)
SpdyDataFrame
SpdyDataFrame. replace(ByteBuf content)
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)
Constructors in io.netty.handler.codec.spdy with parameters of type ByteBuf Constructor Description DefaultSpdyDataFrame(int streamId, ByteBuf data)
Creates a new instance. -
Uses of ByteBuf in io.netty.handler.codec.stomp
Fields in io.netty.handler.codec.stomp declared as ByteBuf Modifier and Type Field Description private ByteBuf
DefaultStompFrame. content
Methods in io.netty.handler.codec.stomp that return ByteBuf Modifier and Type Method Description ByteBuf
DefaultStompFrame. content()
private static ByteBuf
StompSubframeEncoder. encodeContent(StompContentSubframe content, ChannelHandlerContext ctx)
private ByteBuf
StompSubframeEncoder. encodeFullFrame(StompFrame frame, ChannelHandlerContext ctx)
Methods in io.netty.handler.codec.stomp with parameters of type ByteBuf Modifier and Type Method Description protected StompFrame
StompSubframeAggregator. beginAggregation(StompHeadersSubframe start, ByteBuf content)
protected java.lang.Object
StompSubframeEncoder. convertContentSubFrame(StompContentSubframe original, ByteBuf encoded)
An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframe
content sub frame.protected java.lang.Object
StompSubframeEncoder. convertFullFrame(StompFrame original, ByteBuf encoded)
An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompFrame
full frame.protected java.lang.Object
StompSubframeEncoder. convertHeadersSubFrame(StompHeadersSubframe original, ByteBuf encoded)
An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframe
headers sub frame.protected void
StompSubframeDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
private static void
StompSubframeEncoder. encodeHeaders(StompHeadersSubframe frame, ByteBuf buf)
(package private) AppendableCharSequence
StompSubframeDecoder.Utf8LineParser. parse(ByteBuf byteBuf)
(package private) boolean
StompSubframeDecoder.HeaderParser. parseHeader(StompHeadersSubframe headersSubframe, ByteBuf buf)
private StompCommand
StompSubframeDecoder. readCommand(ByteBuf in)
private StompSubframeDecoder.State
StompSubframeDecoder. readHeaders(ByteBuf buffer, StompHeadersSubframe headersSubframe)
LastStompContentSubframe
DefaultLastStompContentSubframe. replace(ByteBuf content)
StompContentSubframe
DefaultStompContentSubframe. replace(ByteBuf content)
StompFrame
DefaultStompFrame. replace(ByteBuf content)
LastStompContentSubframe
LastStompContentSubframe. replace(ByteBuf content)
StompContentSubframe
StompContentSubframe. replace(ByteBuf content)
StompFrame
StompFrame. replace(ByteBuf content)
private static void
StompSubframeDecoder. skipControlCharacters(ByteBuf buffer)
private static void
StompSubframeDecoder. skipNullCharacter(ByteBuf buffer)
Constructors in io.netty.handler.codec.stomp with parameters of type ByteBuf Constructor Description DefaultLastStompContentSubframe(ByteBuf content)
DefaultStompContentSubframe(ByteBuf content)
DefaultStompFrame(StompCommand command, ByteBuf content)
DefaultStompFrame(StompCommand command, ByteBuf content, DefaultStompHeaders headers)
-
Uses of ByteBuf in io.netty.handler.codec.string
Methods in io.netty.handler.codec.string with parameters of type ByteBuf Modifier and Type Method Description protected void
StringDecoder. decode(ChannelHandlerContext ctx, ByteBuf msg, java.util.List<java.lang.Object> out)
-
Uses of ByteBuf in io.netty.handler.codec.xml
Methods in io.netty.handler.codec.xml that return ByteBuf Modifier and Type Method Description private static ByteBuf
XmlFrameDecoder. extractFrame(ByteBuf buffer, int index, int length)
Methods in io.netty.handler.codec.xml with parameters of type ByteBuf Modifier and Type Method Description protected void
XmlFrameDecoder. decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
private static ByteBuf
XmlFrameDecoder. extractFrame(ByteBuf buffer, int index, int length)
private static boolean
XmlFrameDecoder. isCDATABlockStart(ByteBuf in, int i)
private static boolean
XmlFrameDecoder. isCommentBlockStart(ByteBuf in, int i)
-
Uses of ByteBuf in io.netty.handler.logging
Methods in io.netty.handler.logging with parameters of type ByteBuf Modifier and Type Method Description private java.lang.String
LoggingHandler. formatByteBuf(ChannelHandlerContext ctx, java.lang.String eventName, ByteBuf msg)
Generates the default log message of the specified event whose argument is aByteBuf
. -
Uses of ByteBuf in io.netty.handler.pcap
Methods in io.netty.handler.pcap with parameters of type ByteBuf Modifier and Type Method Description private void
PcapWriteHandler. completeTCPWrite(java.net.InetSocketAddress srcAddr, java.net.InetSocketAddress dstAddr, ByteBuf tcpBuf, ByteBufAllocator byteBufAllocator, ChannelHandlerContext ctx)
Write TCP/IP L3 and L2 here.private void
PcapWriteHandler. completeUDPWrite(java.net.InetSocketAddress srcAddr, java.net.InetSocketAddress dstAddr, ByteBuf udpBuf, ByteBufAllocator byteBufAllocator, ChannelHandlerContext ctx)
Write UDP/IP L3 and L2 here.(package private) static void
EthernetPacket. writeIPv4(ByteBuf byteBuf, ByteBuf payload)
Write IPv4 Ethernet Packet.(package private) static void
EthernetPacket. writeIPv6(ByteBuf byteBuf, ByteBuf payload)
Write IPv6 Ethernet Packet.private static void
EthernetPacket. writePacket(ByteBuf byteBuf, ByteBuf payload, byte[] srcAddress, byte[] dstAddress, int type)
Write IPv6 Ethernet Packet(package private) void
PcapWriter. writePacket(ByteBuf packetHeaderBuf, ByteBuf packet)
Write Packet in Pcap OutputStream.(package private) static void
TCPPacket. writePacket(ByteBuf byteBuf, ByteBuf payload, int segmentNumber, int ackNumber, int srcPort, int dstPort, TCPPacket.TCPFlag... tcpFlags)
Write TCP Packet(package private) static void
UDPPacket. writePacket(ByteBuf byteBuf, ByteBuf payload, int srcPort, int dstPort)
Write UDP Packet(package private) static void
PcapHeaders. writePacketHeader(ByteBuf byteBuf, int ts_sec, int ts_usec, int incl_len, int orig_len)
Write Pcap Packet Headerprivate static void
IPPacket. writePacketv4(ByteBuf byteBuf, ByteBuf payload, int protocol, int srcAddress, int dstAddress)
private static void
IPPacket. writePacketv6(ByteBuf byteBuf, ByteBuf payload, int protocol, byte[] srcAddress, byte[] dstAddress)
(package private) static void
IPPacket. writeTCPv4(ByteBuf byteBuf, ByteBuf payload, int srcAddress, int dstAddress)
Write IPv4 Packet for TCP Packet(package private) static void
IPPacket. writeTCPv6(ByteBuf byteBuf, ByteBuf payload, byte[] srcAddress, byte[] dstAddress)
Write IPv6 Packet for TCP Packet(package private) static void
IPPacket. writeUDPv4(ByteBuf byteBuf, ByteBuf payload, int srcAddress, int dstAddress)
Write IPv4 Packet for UDP Packet(package private) static void
IPPacket. writeUDPv6(ByteBuf byteBuf, ByteBuf payload, byte[] srcAddress, byte[] dstAddress)
Write IPv6 Packet for UDP Packet -
Uses of ByteBuf in io.netty.handler.ssl
Fields in io.netty.handler.ssl declared as ByteBuf Modifier and Type Field Description private ByteBuf
PemPrivateKey. content
private ByteBuf
PemValue. content
private ByteBuf
PemX509Certificate. content
private ByteBuf
SslClientHelloHandler. handshakeBuffer
Methods in io.netty.handler.ssl that return ByteBuf Modifier and Type Method 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 inOpenSslEngine
.private ByteBuf
SslHandler. allocateOutNetBuf(ChannelHandlerContext ctx, int pendingBytes, int numComponents)
Allocates an outbound network buffer forSSLEngine.wrap(ByteBuffer, ByteBuffer)
which can encrypt the specified amount of pending bytes.(package private) abstract ByteBuf
SslHandler.SslEngineType. allocateWrapBuffer(SslHandler handler, ByteBufAllocator allocator, int pendingBytes, int numComponents)
private static ByteBuf
PemX509Certificate. append(ByteBufAllocator allocator, boolean useDirect, PemEncoded encoded, int count, ByteBuf pem)
Appends thePemEncoded
value to theByteBuf
(last arg) and returns it.private static ByteBuf
PemX509Certificate. append(ByteBufAllocator allocator, boolean useDirect, java.security.cert.X509Certificate cert, int count, ByteBuf pem)
Appends theX509Certificate
value to theByteBuf
(last arg) and returns it.protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue. composeFirst(ByteBufAllocator allocator, ByteBuf first)
ByteBuf
PemPrivateKey. content()
ByteBuf
PemValue. content()
ByteBuf
PemX509Certificate. 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)
protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue. removeEmptyValue()
(package private) static ByteBuf
SslUtils. toBase64(ByteBufAllocator allocator, ByteBuf src)
Same asBase64.encode(ByteBuf, boolean)
but allows the use of a customByteBufAllocator
.private ByteBuf
ReferenceCountedOpenSslEngine. writeEncryptedData(java.nio.ByteBuffer src, int len)
Write encrypted data to the OpenSSL network BIO.Methods in io.netty.handler.ssl with parameters of type ByteBuf Modifier and Type Method Description private static ByteBuf
PemX509Certificate. append(ByteBufAllocator allocator, boolean useDirect, PemEncoded encoded, int count, ByteBuf pem)
Appends thePemEncoded
value to theByteBuf
(last arg) and returns it.private static ByteBuf
PemX509Certificate. append(ByteBufAllocator allocator, boolean useDirect, java.security.cert.X509Certificate cert, int count, ByteBuf pem)
Appends theX509Certificate
value to theByteBuf
(last arg) and returns it.private static boolean
SslHandler. attemptCopyToCumulation(ByteBuf cumulation, ByteBuf next, int wrapDataSize)
protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue. compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next)
protected ByteBuf
SslHandler.SslHandlerCoalescingBufferQueue. composeFirst(ByteBufAllocator allocator, ByteBuf first)
protected void
OptionalSslHandler. decode(ChannelHandlerContext context, ByteBuf in, java.util.List<java.lang.Object> out)
protected void
SslClientHelloHandler. 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. decodeJdkCompatible(ChannelHandlerContext ctx, ByteBuf in)
private void
SslHandler. decodeNonJdkCompatible(ChannelHandlerContext ctx, ByteBuf in)
private void
SslHandler. executeChannelRead(ChannelHandlerContext ctx, ByteBuf decodedOut)
private static java.lang.String
AbstractSniHandler. extractSniHostname(ByteBuf in)
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)
Returnstrue
if the givenByteBuf
is encrypted.protected Future<T>
AbstractSniHandler. lookup(ChannelHandlerContext ctx, ByteBuf clientHello)
protected abstract Future<T>
SslClientHelloHandler. lookup(ChannelHandlerContext ctx, ByteBuf clientHello)
Kicks off a lookup for the givenClientHello
and returns aFuture
which in turn will notify theSslClientHelloHandler.onLookupComplete(ChannelHandlerContext, Future)
on completion.(package private) static long
OpenSsl. memoryAddress(ByteBuf buf)
private static long
ReferenceCountedOpenSslContext. newBIO(ByteBuf buffer)
private static void
SslClientHelloHandler. releaseIfNotNull(ByteBuf buffer)
PemEncoded
PemEncoded. replace(ByteBuf content)
PemPrivateKey
PemPrivateKey. replace(ByteBuf content)
PemValue
PemValue. replace(ByteBuf content)
PemX509Certificate
PemX509Certificate. replace(ByteBuf content)
private void
SslClientHelloHandler. select(ChannelHandlerContext ctx, ByteBuf clientHello)
private static short
SslUtils. shortBE(ByteBuf buffer, int offset)
(package private) static ByteBuf
SslUtils. toBase64(ByteBufAllocator allocator, ByteBuf src)
Same asBase64.encode(ByteBuf, boolean)
but allows the use of a customByteBufAllocator
.private static java.nio.ByteBuffer
SslHandler. toByteBuffer(ByteBuf out, int index, int len)
private static int
SslUtils. unsignedShortBE(ByteBuf buffer, int offset)
(package private) abstract javax.net.ssl.SSLEngineResult
SslHandler.SslEngineType. unwrap(SslHandler handler, ByteBuf in, int len, ByteBuf out)
private int
SslHandler. unwrap(ChannelHandlerContext ctx, ByteBuf packet, int length)
Unwraps inbound SSL records.static PemPrivateKey
PemPrivateKey. valueOf(ByteBuf key)
Creates aPemPrivateKey
from rawByteBuf
.static PemX509Certificate
PemX509Certificate. valueOf(ByteBuf key)
Creates aPemX509Certificate
from rawByteBuf
.private javax.net.ssl.SSLEngineResult
SslHandler. wrap(ByteBufAllocator alloc, javax.net.ssl.SSLEngine engine, ByteBuf in, ByteBuf out)
private javax.net.ssl.SSLEngineResult
SslHandler. wrapMultiple(ByteBufAllocator alloc, javax.net.ssl.SSLEngine engine, ByteBuf in, ByteBuf out)
(package private) static void
SslUtils. zeroout(ByteBuf buffer)
Fills theByteBuf
with zero bytes.(package private) static void
SslUtils. zerooutAndRelease(ByteBuf buffer)
Fills theByteBuf
with zero bytes and releases it.Constructors in io.netty.handler.ssl with parameters of type ByteBuf Constructor Description PemPrivateKey(ByteBuf content)
PemValue(ByteBuf content, boolean sensitive)
PemX509Certificate(ByteBuf content)
-
Uses of ByteBuf in io.netty.handler.ssl.ocsp
Methods in io.netty.handler.ssl.ocsp with parameters of type ByteBuf Modifier and Type Method Description private static Promise<org.bouncycastle.cert.ocsp.OCSPResp>
OcspClient. query(EventLoop eventLoop, ByteBuf ocspRequest, java.lang.String host, int port, java.lang.String path, IoTransport ioTransport, DnsNameResolver dnsNameResolver)
Query the OCSP responder for certificate status using HTTP/1.1 -
Uses of ByteBuf in io.netty.handler.stream
Methods in io.netty.handler.stream that return ByteBuf Modifier and Type Method Description ByteBuf
ChunkedFile. readChunk(ByteBufAllocator allocator)
ByteBuf
ChunkedFile. readChunk(ChannelHandlerContext ctx)
Deprecated.ByteBuf
ChunkedNioFile. readChunk(ByteBufAllocator allocator)
ByteBuf
ChunkedNioFile. readChunk(ChannelHandlerContext ctx)
Deprecated.ByteBuf
ChunkedNioStream. readChunk(ByteBufAllocator allocator)
ByteBuf
ChunkedNioStream. readChunk(ChannelHandlerContext ctx)
Deprecated.ByteBuf
ChunkedStream. readChunk(ByteBufAllocator allocator)
ByteBuf
ChunkedStream. readChunk(ChannelHandlerContext ctx)
Deprecated. -
Uses of ByteBuf in io.netty.resolver.dns
Methods in io.netty.resolver.dns with parameters of type ByteBuf Modifier and Type Method Description (package private) static java.lang.String
DnsResolveContext. decodeDomainName(ByteBuf in)
-