Uses of Class
io.netty.buffer.ByteBuf
Packages that use ByteBuf
Package
Description
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
Old blocking I/O based channel API implementation - recommended for
a small number of connections (< 1000).
Abstract SCTP socket interfaces which extend the core channel API.
Abstract TCP and UDP socket interfaces which extend the core channel API.
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
UDT Transport.
UDT Transport for NIO Channels.
Unix specific transport.
io_uring is a high I/O performance scalable interface for fully
asynchronous Linux syscalls.
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.
Encoder and decoder which transform an array of bytes into a
ByteBuf and vice versa.DNS codec.
Decodes an HAProxy proxy protocol header
Encoder, decoder and their related message types for HTTP.
HTTP multipart support.
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
Handlers for sending and receiving HTTP/2 frames.
HTTP/3 implementation.
JSON specific codecs.
Decoder and Encoder which uses JBoss Marshalling.
Common superset of ascii and binary classes.
Implementations and Interfaces for the Memcache Binary protocol.
Encoder, decoder and different Message Types for MQTT.
Encoder and decoder which transform a
Google Protocol Buffers
Message and MessageNano into a
ByteBuf and vice versa.QUIC implementation
Encoder, decoder for Redis.
An RTSP
extension based on the HTTP codec.
Decoder and encoders to manage message completion and multi-streaming codec in SCTP/IP.
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa.SMTP codec.
Encoder, decoder and their related message types for Socks.
Encoder, decoder and their related message types for SOCKS protocol.
Encoder, decoder and their related message types for SOCKSv4 protocol.
Encoder, decoder and their related message types for SOCKSv5 protocol.
Encoder, decoder, session handler and their related message types for the SPDY protocol.
STOMP codec
XML codec provides asynchronous and non-blocking XML parser based on the
Aalto XML parser.
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError.-
Uses of ByteBuf in io.netty.buffer
Subclasses of ByteBuf in io.netty.bufferModifier and TypeClassDescriptionclassA skeletal implementation of a buffer.classDeprecated.Do not use.classAbstract base class forByteBufimplementations that count references.classA virtual buffer which shows multiple buffers as a single merged buffer.classDeprecated.Do not use.final classAn emptyByteBufwhose capacity and maximum capacity are all0.classDeprecated.Do not use.classDeprecated.Do not use.classDeprecated.use the Little Endian accessors, e.g.classA NIOByteBufferbased buffer.classBig endian Java heap buffer implementation.classA NIOByteBufferbased buffer.classBig endian Java heap buffer implementation.classWraps anotherByteBuf.Classes in io.netty.buffer that implement interfaces with type arguments of type ByteBufModifier and TypeClassDescriptionclassA random and sequential accessible sequence of zero or more bytes (octets).classA virtual buffer which shows multiple buffers as a single merged buffer.Fields in io.netty.buffer declared as ByteBufModifier and TypeFieldDescriptionprotected final ByteBufWrappedByteBuf.bufstatic final ByteBufUnpooled.EMPTY_BUFFERA buffer whose capacity is0.Methods in io.netty.buffer that return ByteBufModifier and TypeMethodDescriptionByteBuf.asByteBuf()AByteBufcan turn into itself.ByteBufConvertible.asByteBuf()Turn this object into aByteBuf.AbstractByteBuf.asReadOnly()abstract ByteBufByteBuf.asReadOnly()Returns a read-only version of this buffer.EmptyByteBuf.asReadOnly()ReadOnlyByteBuf.asReadOnly()Deprecated.SwappedByteBuf.asReadOnly()Deprecated.WrappedByteBuf.asReadOnly()AbstractByteBufAllocator.buffer()AbstractByteBufAllocator.buffer(int initialCapacity) AbstractByteBufAllocator.buffer(int initialCapacity, int maxCapacity) ByteBufAllocator.buffer()Allocate aByteBuf.ByteBufAllocator.buffer(int initialCapacity) Allocate aByteBufwith the given initial capacity.ByteBufAllocator.buffer(int initialCapacity, int maxCapacity) Allocate aByteBufwith the given initial capacity and the given maximal capacity.ByteBufOutputStream.buffer()Returns the buffer where this stream is writing data.static ByteBufUnpooled.buffer()Creates a new big-endian Java heap buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand.static ByteBufUnpooled.buffer(int initialCapacity) Creates a new big-endian Java heap buffer with the specifiedcapacity, which expands its capacity boundlessly on demand.static ByteBufUnpooled.buffer(int initialCapacity, int maxCapacity) Creates a new big-endian Java heap buffer with the specifiedinitialCapacity, that may grow up tomaxCapacityThe new buffer'sreaderIndexandwriterIndexare0.abstract ByteBufByteBuf.capacity(int newCapacity) Adjusts the capacity of this buffer.DuplicatedByteBuf.capacity(int newCapacity) Deprecated.EmptyByteBuf.capacity(int newCapacity) ReadOnlyByteBuf.capacity(int newCapacity) Deprecated.SwappedByteBuf.capacity(int newCapacity) Deprecated.UnpooledDirectByteBuf.capacity(int newCapacity) UnpooledHeapByteBuf.capacity(int newCapacity) WrappedByteBuf.capacity(int newCapacity) AbstractByteBuf.clear()abstract ByteBufByteBuf.clear()Sets thereaderIndexandwriterIndexof this buffer to0.EmptyByteBuf.clear()SwappedByteBuf.clear()Deprecated.final ByteBufWrappedByteBuf.clear()CompositeByteBuf.component(int cIndex) Return a duplicate of theByteBufon the specified component index.CompositeByteBuf.componentAtOffset(int offset) Return theByteBufon the specified indexCompositeByteBuf.componentSlice(int cIndex) Return a slice of theByteBufon the specified component index.ByteBufHolder.content()Return the data which is held by thisByteBufHolder.DefaultByteBufHolder.content()static ByteBufUnpooled.copiedBuffer(byte[] array) Creates a new big-endian buffer whose content is a copy of the specifiedarray.static ByteBufUnpooled.copiedBuffer(byte[]... arrays) Creates a new big-endian buffer whose content is a merged copy of the specifiedarrays.static ByteBufUnpooled.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 ByteBufUnpooled.copiedBuffer(char[] array, int offset, int length, Charset charset) Creates a new big-endian buffer whose content is a subregion of the specifiedarrayencoded in the specifiedcharset.static ByteBufUnpooled.copiedBuffer(char[] array, Charset charset) Creates a new big-endian buffer whose content is the specifiedarrayencoded in the specifiedcharset.static ByteBufUnpooled.copiedBuffer(ByteBuf buffer) Creates a new buffer whose content is a copy of the specifiedbuffer's readable bytes.static ByteBufUnpooled.copiedBuffer(ByteBuf... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers' readable bytes.static ByteBufUnpooled.copiedBuffer(CharSequence string, int offset, int length, Charset charset) Creates a new big-endian buffer whose content is a subregion of the specifiedstringencoded in the specifiedcharset.static ByteBufUnpooled.copiedBuffer(CharSequence string, Charset charset) Creates a new big-endian buffer whose content is the specifiedstringencoded in the specifiedcharset.static ByteBufUnpooled.copiedBuffer(ByteBuffer buffer) Creates a new buffer whose content is a copy of the specifiedbuffer's current slice.static ByteBufUnpooled.copiedBuffer(ByteBuffer... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers' slices.AbstractByteBuf.copy()abstract ByteBufByteBuf.copy()Returns a copy of this buffer's readable bytes.abstract ByteBufByteBuf.copy(int index, int length) Returns a copy of this buffer's sub-region.CompositeByteBuf.copy(int index, int length) DuplicatedByteBuf.copy(int index, int length) Deprecated.EmptyByteBuf.copy()EmptyByteBuf.copy(int index, int length) ReadOnlyByteBuf.copy(int index, int length) Deprecated.SwappedByteBuf.copy()Deprecated.SwappedByteBuf.copy(int index, int length) Deprecated.UnpooledDirectByteBuf.copy(int index, int length) UnpooledHeapByteBuf.copy(int index, int length) UnpooledUnsafeDirectByteBuf.copy(int index, int length) WrappedByteBuf.copy()WrappedByteBuf.copy(int index, int length) static ByteBufUnpooled.copyBoolean(boolean value) Creates a new single-byte big-endian buffer that holds the specified boolean value.static ByteBufUnpooled.copyBoolean(boolean... values) Create a new big-endian buffer that holds a sequence of the specified boolean values.static ByteBufUnpooled.copyDouble(double value) Creates a new 8-byte big-endian buffer that holds the specified 64-bit floating point number.static ByteBufUnpooled.copyDouble(double... values) Create a new big-endian buffer that holds a sequence of the specified 64-bit floating point numbers.static ByteBufUnpooled.copyFloat(float value) Creates a new 4-byte big-endian buffer that holds the specified 32-bit floating point number.static ByteBufUnpooled.copyFloat(float... values) Create a new big-endian buffer that holds a sequence of the specified 32-bit floating point numbers.static ByteBufUnpooled.copyInt(int value) Creates a new 4-byte big-endian buffer that holds the specified 32-bit integer.static ByteBufUnpooled.copyInt(int... values) Create a big-endian buffer that holds a sequence of the specified 32-bit integers.static ByteBufUnpooled.copyLong(long value) Creates a new 8-byte big-endian buffer that holds the specified 64-bit integer.static ByteBufUnpooled.copyLong(long... values) Create a new big-endian buffer that holds a sequence of the specified 64-bit integers.static ByteBufUnpooled.copyMedium(int value) Creates a new 3-byte big-endian buffer that holds the specified 24-bit integer.static ByteBufUnpooled.copyMedium(int... values) Create a new big-endian buffer that holds a sequence of the specified 24-bit integers.static ByteBufUnpooled.copyShort(int value) Creates a new 2-byte big-endian buffer that holds the specified 16-bit integer.static ByteBufUnpooled.copyShort(int... values) Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.static ByteBufUnpooled.copyShort(short... values) Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.AbstractByteBufAllocator.directBuffer()AbstractByteBufAllocator.directBuffer(int initialCapacity) AbstractByteBufAllocator.directBuffer(int initialCapacity, int maxCapacity) ByteBufAllocator.directBuffer()Allocate a directByteBuf.ByteBufAllocator.directBuffer(int initialCapacity) Allocate a directByteBufwith the given initial capacity.ByteBufAllocator.directBuffer(int initialCapacity, int maxCapacity) Allocate a directByteBufwith the given initial capacity and the given maximal capacity.static ByteBufUnpooled.directBuffer()Creates a new big-endian direct buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand.static ByteBufUnpooled.directBuffer(int initialCapacity) Creates a new big-endian direct buffer with the specifiedcapacity, which expands its capacity boundlessly on demand.static ByteBufUnpooled.directBuffer(int initialCapacity, int maxCapacity) Creates a new big-endian direct buffer with the specifiedinitialCapacity, that may grow up tomaxCapacity.AbstractByteBuf.discardReadBytes()abstract ByteBufByteBuf.discardReadBytes()Discards the bytes between the 0th index andreaderIndex.EmptyByteBuf.discardReadBytes()ReadOnlyByteBuf.discardReadBytes()Deprecated.SwappedByteBuf.discardReadBytes()Deprecated.WrappedByteBuf.discardReadBytes()AbstractByteBuf.discardSomeReadBytes()abstract ByteBufByteBuf.discardSomeReadBytes()Similar toByteBuf.discardReadBytes()except that this method might discard some, all, or none of read bytes depending on its internal implementation to reduce overall memory bandwidth consumption at the cost of potentially additional memory consumption.EmptyByteBuf.discardSomeReadBytes()SwappedByteBuf.discardSomeReadBytes()Deprecated.WrappedByteBuf.discardSomeReadBytes()AbstractByteBuf.duplicate()abstract ByteBufByteBuf.duplicate()Returns a buffer which shares the whole region of this buffer.EmptyByteBuf.duplicate()ReadOnlyByteBuf.duplicate()Deprecated.SwappedByteBuf.duplicate()Deprecated.WrappedByteBuf.duplicate()static ByteBufByteBufUtil.encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset) Encode the givenCharBufferusing the givenCharsetinto a newByteBufwhich is allocated via theByteBufAllocator.static ByteBufByteBufUtil.encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset, int extraCapacity) Encode the givenCharBufferusing the givenCharsetinto a newByteBufwhich is allocated via theByteBufAllocator.static ByteBufByteBufUtil.ensureAccessible(ByteBuf buffer) AbstractByteBuf.ensureWritable(int minWritableBytes) abstract ByteBufByteBuf.ensureWritable(int minWritableBytes) Expands the bufferByteBuf.capacity()to make sure the number of writable bytes is equal to or greater than the specified value.EmptyByteBuf.ensureWritable(int minWritableBytes) ReadOnlyByteBuf.ensureWritable(int minWritableBytes) Deprecated.SwappedByteBuf.ensureWritable(int writableBytes) Deprecated.WrappedByteBuf.ensureWritable(int minWritableBytes) AbstractByteBuf.getBytes(int index, byte[] dst) abstract ByteBufByteBuf.getBytes(int index, byte[] dst) Transfers this buffer's data to the specified destination starting at the specified absoluteindex.abstract ByteBufByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) Transfers this buffer's data to the specified destination starting at the specified absoluteindex.abstract ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindexuntil the destination becomes non-writable.abstract ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindex.abstract ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindex.abstract ByteBufByteBuf.getBytes(int index, OutputStream out, int length) Transfers this buffer's data to the specified stream starting at the specified absoluteindex.abstract ByteBufByteBuf.getBytes(int index, ByteBuffer dst) Transfers this buffer's data to the specified destination starting at the specified absoluteindexuntil the destination's position reaches its limit.DuplicatedByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) Deprecated.Deprecated.DuplicatedByteBuf.getBytes(int index, OutputStream out, int length) Deprecated.DuplicatedByteBuf.getBytes(int index, ByteBuffer dst) Deprecated.EmptyByteBuf.getBytes(int index, byte[] dst) EmptyByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) EmptyByteBuf.getBytes(int index, OutputStream out, int length) EmptyByteBuf.getBytes(int index, ByteBuffer dst) ReadOnlyByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) Deprecated.Deprecated.ReadOnlyByteBuf.getBytes(int index, OutputStream out, int length) Deprecated.ReadOnlyByteBuf.getBytes(int index, ByteBuffer dst) Deprecated.SwappedByteBuf.getBytes(int index, byte[] dst) Deprecated.SwappedByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) Deprecated.Deprecated.Deprecated.Deprecated.SwappedByteBuf.getBytes(int index, OutputStream out, int length) Deprecated.SwappedByteBuf.getBytes(int index, ByteBuffer dst) Deprecated.UnpooledDirectByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) UnpooledDirectByteBuf.getBytes(int index, OutputStream out, int length) UnpooledDirectByteBuf.getBytes(int index, ByteBuffer dst) UnpooledHeapByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) UnpooledHeapByteBuf.getBytes(int index, OutputStream out, int length) UnpooledHeapByteBuf.getBytes(int index, ByteBuffer dst) WrappedByteBuf.getBytes(int index, byte[] dst) WrappedByteBuf.getBytes(int index, byte[] dst, int dstIndex, int length) WrappedByteBuf.getBytes(int index, OutputStream out, int length) WrappedByteBuf.getBytes(int index, ByteBuffer dst) AbstractByteBufAllocator.heapBuffer()AbstractByteBufAllocator.heapBuffer(int initialCapacity) AbstractByteBufAllocator.heapBuffer(int initialCapacity, int maxCapacity) ByteBufAllocator.heapBuffer()Allocate a heapByteBuf.ByteBufAllocator.heapBuffer(int initialCapacity) Allocate a heapByteBufwith the given initial capacity.ByteBufAllocator.heapBuffer(int initialCapacity, int maxCapacity) Allocate a heapByteBufwith the given initial capacity and the given maximal capacity.CompositeByteBuf.internalComponent(int cIndex) Return the internalByteBufon the specified index.CompositeByteBuf.internalComponentAtOffset(int offset) Return the internalByteBufon the specified offset.AbstractByteBufAllocator.ioBuffer()AbstractByteBufAllocator.ioBuffer(int initialCapacity) AbstractByteBufAllocator.ioBuffer(int initialCapacity, int maxCapacity) ByteBufAllocator.ioBuffer()Allocate aByteBuf, preferably a direct buffer which is suitable for I/O.ByteBufAllocator.ioBuffer(int initialCapacity) Allocate aByteBuf, preferably a direct buffer which is suitable for I/O.ByteBufAllocator.ioBuffer(int initialCapacity, int maxCapacity) Allocate aByteBuf, preferably a direct buffer which is suitable for I/O.AbstractByteBuf.markReaderIndex()abstract ByteBufByteBuf.markReaderIndex()Marks the currentreaderIndexin this buffer.EmptyByteBuf.markReaderIndex()SwappedByteBuf.markReaderIndex()Deprecated.final ByteBufWrappedByteBuf.markReaderIndex()AbstractByteBuf.markWriterIndex()abstract ByteBufByteBuf.markWriterIndex()Marks the currentwriterIndexin this buffer.EmptyByteBuf.markWriterIndex()SwappedByteBuf.markWriterIndex()Deprecated.final ByteBufWrappedByteBuf.markWriterIndex()protected abstract ByteBufAbstractByteBufAllocator.newDirectBuffer(int initialCapacity, int maxCapacity) Create a directByteBufwith the given initialCapacity and maxCapacity.protected ByteBufAdaptiveByteBufAllocator.newDirectBuffer(int initialCapacity, int maxCapacity) protected ByteBufPooledByteBufAllocator.newDirectBuffer(int initialCapacity, int maxCapacity) protected ByteBufUnpooledByteBufAllocator.newDirectBuffer(int initialCapacity, int maxCapacity) protected abstract ByteBufAbstractByteBufAllocator.newHeapBuffer(int initialCapacity, int maxCapacity) Create a heapByteBufwith the given initialCapacity and maxCapacity.protected ByteBufAdaptiveByteBufAllocator.newHeapBuffer(int initialCapacity, int maxCapacity) protected ByteBufPooledByteBufAllocator.newHeapBuffer(int initialCapacity, int maxCapacity) protected ByteBufUnpooledByteBufAllocator.newHeapBuffer(int initialCapacity, int maxCapacity) abstract ByteBufDeprecated.use the Little Endian accessors, e.g.Deprecated.AbstractByteBuf.readBytes(byte[] dst) AbstractByteBuf.readBytes(byte[] dst, int dstIndex, int length) AbstractByteBuf.readBytes(int length) AbstractByteBuf.readBytes(OutputStream out, int length) AbstractByteBuf.readBytes(ByteBuffer dst) abstract ByteBufByteBuf.readBytes(byte[] dst) Transfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=dst.length).abstract ByteBufByteBuf.readBytes(byte[] dst, int dstIndex, int length) Transfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).abstract ByteBufByteBuf.readBytes(int length) Transfers this buffer's data to a newly created buffer starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).abstract ByteBufTransfers this buffer's data to the specified destination starting at the currentreaderIndexuntil the destination becomes non-writable, and increases thereaderIndexby the number of the transferred bytes.abstract ByteBufTransfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).abstract ByteBufTransfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).abstract ByteBufByteBuf.readBytes(OutputStream out, int length) Transfers this buffer's data to the specified stream starting at the currentreaderIndex.abstract ByteBufByteBuf.readBytes(ByteBuffer dst) Transfers this buffer's data to the specified destination starting at the currentreaderIndexuntil the destination's position reaches its limit, and increases thereaderIndexby the number of the transferred bytes.static ByteBufByteBufUtil.readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length) Read the given amount of bytes into a newByteBufthat is allocated from theByteBufAllocator.EmptyByteBuf.readBytes(byte[] dst) EmptyByteBuf.readBytes(byte[] dst, int dstIndex, int length) EmptyByteBuf.readBytes(int length) EmptyByteBuf.readBytes(OutputStream out, int length) EmptyByteBuf.readBytes(ByteBuffer dst) SwappedByteBuf.readBytes(byte[] dst) Deprecated.SwappedByteBuf.readBytes(byte[] dst, int dstIndex, int length) Deprecated.SwappedByteBuf.readBytes(int length) Deprecated.Deprecated.Deprecated.Deprecated.SwappedByteBuf.readBytes(OutputStream out, int length) Deprecated.SwappedByteBuf.readBytes(ByteBuffer dst) Deprecated.UnpooledDirectByteBuf.readBytes(byte[] dst, int dstIndex, int length) UnpooledDirectByteBuf.readBytes(OutputStream out, int length) UnpooledDirectByteBuf.readBytes(ByteBuffer dst) WrappedByteBuf.readBytes(byte[] dst) WrappedByteBuf.readBytes(byte[] dst, int dstIndex, int length) WrappedByteBuf.readBytes(int length) WrappedByteBuf.readBytes(OutputStream out, int length) WrappedByteBuf.readBytes(ByteBuffer dst) AbstractByteBuf.readerIndex(int readerIndex) abstract ByteBufByteBuf.readerIndex(int readerIndex) Sets thereaderIndexof this buffer.EmptyByteBuf.readerIndex(int readerIndex) SwappedByteBuf.readerIndex(int readerIndex) Deprecated.final ByteBufWrappedByteBuf.readerIndex(int readerIndex) AbstractByteBuf.readRetainedSlice(int length) abstract ByteBufByteBuf.readRetainedSlice(int length) Returns a new retained slice of this buffer's sub-region starting at the currentreaderIndexand increases thereaderIndexby the size of the new slice (=length).EmptyByteBuf.readRetainedSlice(int length) SwappedByteBuf.readRetainedSlice(int length) Deprecated.WrappedByteBuf.readRetainedSlice(int length) AbstractByteBuf.readSlice(int length) abstract ByteBufByteBuf.readSlice(int length) Returns a new slice of this buffer's sub-region starting at the currentreaderIndexand increases thereaderIndexby the size of the new slice (=length).EmptyByteBuf.readSlice(int length) SwappedByteBuf.readSlice(int length) Deprecated.WrappedByteBuf.readSlice(int length) AbstractByteBuf.resetReaderIndex()abstract ByteBufByteBuf.resetReaderIndex()Repositions the currentreaderIndexto the markedreaderIndexin this buffer.EmptyByteBuf.resetReaderIndex()SwappedByteBuf.resetReaderIndex()Deprecated.final ByteBufWrappedByteBuf.resetReaderIndex()AbstractByteBuf.resetWriterIndex()abstract ByteBufByteBuf.resetWriterIndex()Repositions the currentwriterIndexto the markedwriterIndexin this buffer.EmptyByteBuf.resetWriterIndex()SwappedByteBuf.resetWriterIndex()Deprecated.final ByteBufWrappedByteBuf.resetWriterIndex()final ByteBufAbstractDerivedByteBuf.retain()Deprecated.final ByteBufAbstractDerivedByteBuf.retain(int increment) Deprecated.AbstractReferenceCountedByteBuf.retain()AbstractReferenceCountedByteBuf.retain(int increment) abstract ByteBufByteBuf.retain()abstract ByteBufByteBuf.retain(int increment) EmptyByteBuf.retain()EmptyByteBuf.retain(int increment) SwappedByteBuf.retain()Deprecated.SwappedByteBuf.retain(int increment) Deprecated.WrappedByteBuf.retain()WrappedByteBuf.retain(int increment) AbstractByteBuf.retainedDuplicate()abstract ByteBufByteBuf.retainedDuplicate()Returns a retained buffer which shares the whole region of this buffer.EmptyByteBuf.retainedDuplicate()SwappedByteBuf.retainedDuplicate()Deprecated.WrappedByteBuf.retainedDuplicate()AbstractByteBuf.retainedSlice()AbstractByteBuf.retainedSlice(int index, int length) abstract ByteBufByteBuf.retainedSlice()Returns a retained slice of this buffer's readable bytes.abstract ByteBufByteBuf.retainedSlice(int index, int length) Returns a retained slice of this buffer's sub-region.EmptyByteBuf.retainedSlice()EmptyByteBuf.retainedSlice(int index, int length) SwappedByteBuf.retainedSlice()Deprecated.SwappedByteBuf.retainedSlice(int index, int length) Deprecated.WrappedByteBuf.retainedSlice()WrappedByteBuf.retainedSlice(int index, int length) AbstractByteBuf.setBoolean(int index, boolean value) abstract ByteBufByteBuf.setBoolean(int index, boolean value) Sets the specified boolean at the specified absoluteindexin this buffer.EmptyByteBuf.setBoolean(int index, boolean value) SwappedByteBuf.setBoolean(int index, boolean value) Deprecated.WrappedByteBuf.setBoolean(int index, boolean value) AbstractByteBuf.setByte(int index, int value) abstract ByteBufByteBuf.setByte(int index, int value) Sets the specified byte at the specified absoluteindexin this buffer.DuplicatedByteBuf.setByte(int index, int value) Deprecated.EmptyByteBuf.setByte(int index, int value) ReadOnlyByteBuf.setByte(int index, int value) Deprecated.SwappedByteBuf.setByte(int index, int value) Deprecated.UnpooledDirectByteBuf.setByte(int index, int value) UnpooledHeapByteBuf.setByte(int index, int value) UnpooledUnsafeDirectByteBuf.setByte(int index, int value) UnpooledUnsafeHeapByteBuf.setByte(int index, int value) WrappedByteBuf.setByte(int index, int value) AbstractByteBuf.setBytes(int index, byte[] src) abstract ByteBufByteBuf.setBytes(int index, byte[] src) Transfers the specified source array's data to this buffer starting at the specified absoluteindex.abstract ByteBufByteBuf.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 ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindexuntil the source buffer becomes unreadable.abstract ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindex.abstract ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindex.abstract ByteBufByteBuf.setBytes(int index, ByteBuffer src) Transfers the specified source buffer's data to this buffer starting at the specified absoluteindexuntil the source buffer's position reaches its limit.DuplicatedByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) Deprecated.Deprecated.DuplicatedByteBuf.setBytes(int index, ByteBuffer src) Deprecated.EmptyByteBuf.setBytes(int index, byte[] src) EmptyByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) EmptyByteBuf.setBytes(int index, ByteBuffer src) ReadOnlyByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) Deprecated.Deprecated.ReadOnlyByteBuf.setBytes(int index, ByteBuffer src) Deprecated.SwappedByteBuf.setBytes(int index, byte[] src) Deprecated.SwappedByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) Deprecated.Deprecated.Deprecated.Deprecated.SwappedByteBuf.setBytes(int index, ByteBuffer src) Deprecated.UnpooledDirectByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) UnpooledDirectByteBuf.setBytes(int index, ByteBuffer src) UnpooledHeapByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) UnpooledHeapByteBuf.setBytes(int index, ByteBuffer src) UnpooledUnsafeDirectByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) UnpooledUnsafeDirectByteBuf.setBytes(int index, ByteBuffer src) WrappedByteBuf.setBytes(int index, byte[] src) WrappedByteBuf.setBytes(int index, byte[] src, int srcIndex, int length) WrappedByteBuf.setBytes(int index, ByteBuffer src) AbstractByteBuf.setChar(int index, int value) abstract ByteBufByteBuf.setChar(int index, int value) Sets the specified 2-byte UTF-16 character at the specified absoluteindexin this buffer.EmptyByteBuf.setChar(int index, int value) SwappedByteBuf.setChar(int index, int value) Deprecated.WrappedByteBuf.setChar(int index, int value) AbstractByteBuf.setDouble(int index, double value) abstract ByteBufByteBuf.setDouble(int index, double value) Sets the specified 64-bit floating-point number at the specified absoluteindexin this buffer.EmptyByteBuf.setDouble(int index, double value) SwappedByteBuf.setDouble(int index, double value) Deprecated.WrappedByteBuf.setDouble(int index, double value) ByteBuf.setDoubleLE(int index, double value) Sets the specified 64-bit floating-point number at the specified absoluteindexin this buffer in Little Endian Byte Order.AbstractByteBuf.setFloat(int index, float value) abstract ByteBufByteBuf.setFloat(int index, float value) Sets the specified 32-bit floating-point number at the specified absoluteindexin this buffer.EmptyByteBuf.setFloat(int index, float value) SwappedByteBuf.setFloat(int index, float value) Deprecated.WrappedByteBuf.setFloat(int index, float value) ByteBuf.setFloatLE(int index, float value) Sets the specified 32-bit floating-point number at the specified absoluteindexin this buffer in Little Endian Byte Order.AbstractByteBuf.setIndex(int readerIndex, int writerIndex) abstract ByteBufByteBuf.setIndex(int readerIndex, int writerIndex) Sets thereaderIndexandwriterIndexof this buffer in one shot.EmptyByteBuf.setIndex(int readerIndex, int writerIndex) SwappedByteBuf.setIndex(int readerIndex, int writerIndex) Deprecated.WrappedByteBuf.setIndex(int readerIndex, int writerIndex) AbstractByteBuf.setInt(int index, int value) abstract ByteBufByteBuf.setInt(int index, int value) Sets the specified 32-bit integer at the specified absoluteindexin this buffer.DuplicatedByteBuf.setInt(int index, int value) Deprecated.EmptyByteBuf.setInt(int index, int value) ReadOnlyByteBuf.setInt(int index, int value) Deprecated.SwappedByteBuf.setInt(int index, int value) Deprecated.UnpooledDirectByteBuf.setInt(int index, int value) UnpooledHeapByteBuf.setInt(int index, int value) UnpooledUnsafeDirectByteBuf.setInt(int index, int value) UnpooledUnsafeHeapByteBuf.setInt(int index, int value) WrappedByteBuf.setInt(int index, int value) AbstractByteBuf.setIntLE(int index, int value) abstract ByteBufByteBuf.setIntLE(int index, int value) Sets the specified 32-bit integer at the specified absoluteindexin this buffer with Little Endian byte order .DuplicatedByteBuf.setIntLE(int index, int value) Deprecated.EmptyByteBuf.setIntLE(int index, int value) ReadOnlyByteBuf.setIntLE(int index, int value) Deprecated.SwappedByteBuf.setIntLE(int index, int value) Deprecated.UnpooledDirectByteBuf.setIntLE(int index, int value) UnpooledHeapByteBuf.setIntLE(int index, int value) UnpooledUnsafeHeapByteBuf.setIntLE(int index, int value) WrappedByteBuf.setIntLE(int index, int value) AbstractByteBuf.setLong(int index, long value) abstract ByteBufByteBuf.setLong(int index, long value) Sets the specified 64-bit long integer at the specified absoluteindexin this buffer.DuplicatedByteBuf.setLong(int index, long value) Deprecated.EmptyByteBuf.setLong(int index, long value) ReadOnlyByteBuf.setLong(int index, long value) Deprecated.SwappedByteBuf.setLong(int index, long value) Deprecated.UnpooledDirectByteBuf.setLong(int index, long value) UnpooledHeapByteBuf.setLong(int index, long value) UnpooledUnsafeDirectByteBuf.setLong(int index, long value) UnpooledUnsafeHeapByteBuf.setLong(int index, long value) WrappedByteBuf.setLong(int index, long value) AbstractByteBuf.setLongLE(int index, long value) abstract ByteBufByteBuf.setLongLE(int index, long value) Sets the specified 64-bit long integer at the specified absoluteindexin this buffer in Little Endian Byte Order.DuplicatedByteBuf.setLongLE(int index, long value) Deprecated.EmptyByteBuf.setLongLE(int index, long value) ReadOnlyByteBuf.setLongLE(int index, long value) Deprecated.SwappedByteBuf.setLongLE(int index, long value) Deprecated.UnpooledDirectByteBuf.setLongLE(int index, long value) UnpooledHeapByteBuf.setLongLE(int index, long value) UnpooledUnsafeHeapByteBuf.setLongLE(int index, long value) WrappedByteBuf.setLongLE(int index, long value) AbstractByteBuf.setMedium(int index, int value) abstract ByteBufByteBuf.setMedium(int index, int value) Sets the specified 24-bit medium integer at the specified absoluteindexin this buffer.DuplicatedByteBuf.setMedium(int index, int value) Deprecated.EmptyByteBuf.setMedium(int index, int value) ReadOnlyByteBuf.setMedium(int index, int value) Deprecated.SwappedByteBuf.setMedium(int index, int value) Deprecated.UnpooledDirectByteBuf.setMedium(int index, int value) UnpooledHeapByteBuf.setMedium(int index, int value) UnpooledUnsafeDirectByteBuf.setMedium(int index, int value) UnpooledUnsafeHeapByteBuf.setMedium(int index, int value) WrappedByteBuf.setMedium(int index, int value) AbstractByteBuf.setMediumLE(int index, int value) abstract ByteBufByteBuf.setMediumLE(int index, int value) Sets the specified 24-bit medium integer at the specified absoluteindexin this buffer in the Little Endian Byte Order.DuplicatedByteBuf.setMediumLE(int index, int value) Deprecated.EmptyByteBuf.setMediumLE(int index, int value) ReadOnlyByteBuf.setMediumLE(int index, int value) Deprecated.SwappedByteBuf.setMediumLE(int index, int value) Deprecated.UnpooledDirectByteBuf.setMediumLE(int index, int value) UnpooledHeapByteBuf.setMediumLE(int index, int value) UnpooledUnsafeHeapByteBuf.setMediumLE(int index, int value) WrappedByteBuf.setMediumLE(int index, int value) AbstractByteBuf.setShort(int index, int value) abstract ByteBufByteBuf.setShort(int index, int value) Sets the specified 16-bit short integer at the specified absoluteindexin this buffer.DuplicatedByteBuf.setShort(int index, int value) Deprecated.EmptyByteBuf.setShort(int index, int value) ReadOnlyByteBuf.setShort(int index, int value) Deprecated.SwappedByteBuf.setShort(int index, int value) Deprecated.UnpooledDirectByteBuf.setShort(int index, int value) UnpooledHeapByteBuf.setShort(int index, int value) UnpooledUnsafeDirectByteBuf.setShort(int index, int value) UnpooledUnsafeHeapByteBuf.setShort(int index, int value) WrappedByteBuf.setShort(int index, int value) static ByteBufByteBufUtil.setShortBE(ByteBuf buf, int index, int shortValue) Sets a big-endian 16-bit short integer to the buffer.AbstractByteBuf.setShortLE(int index, int value) abstract ByteBufByteBuf.setShortLE(int index, int value) Sets the specified 16-bit short integer at the specified absoluteindexin this buffer with the Little Endian Byte Order.DuplicatedByteBuf.setShortLE(int index, int value) Deprecated.EmptyByteBuf.setShortLE(int index, int value) ReadOnlyByteBuf.setShortLE(int index, int value) Deprecated.SwappedByteBuf.setShortLE(int index, int value) Deprecated.UnpooledDirectByteBuf.setShortLE(int index, int value) UnpooledHeapByteBuf.setShortLE(int index, int value) UnpooledUnsafeHeapByteBuf.setShortLE(int index, int value) WrappedByteBuf.setShortLE(int index, int value) AbstractByteBuf.setZero(int index, int length) abstract ByteBufByteBuf.setZero(int index, int length) Fills this buffer with NUL (0x00) starting at the specified absoluteindex.EmptyByteBuf.setZero(int index, int length) SwappedByteBuf.setZero(int index, int length) Deprecated.UnpooledUnsafeDirectByteBuf.setZero(int index, int length) UnpooledUnsafeHeapByteBuf.setZero(int index, int length) WrappedByteBuf.setZero(int index, int length) AbstractByteBuf.skipBytes(int length) abstract ByteBufByteBuf.skipBytes(int length) Increases the currentreaderIndexby the specifiedlengthin this buffer.EmptyByteBuf.skipBytes(int length) SwappedByteBuf.skipBytes(int length) Deprecated.WrappedByteBuf.skipBytes(int length) AbstractByteBuf.slice()AbstractByteBuf.slice(int index, int length) abstract ByteBufByteBuf.slice()Returns a slice of this buffer's readable bytes.abstract ByteBufByteBuf.slice(int index, int length) Returns a slice of this buffer's sub-region.DuplicatedByteBuf.slice(int index, int length) Deprecated.EmptyByteBuf.slice()EmptyByteBuf.slice(int index, int length) ReadOnlyByteBuf.slice(int index, int length) Deprecated.SwappedByteBuf.slice()Deprecated.SwappedByteBuf.slice(int index, int length) Deprecated.WrappedByteBuf.slice()WrappedByteBuf.slice(int index, int length) static ByteBufByteBufUtil.threadLocalDirectBuffer()Returns a cached thread-local direct buffer, if available.protected static ByteBufAbstractByteBufAllocator.toLeakAwareBuffer(ByteBuf buf) final ByteBufAbstractDerivedByteBuf.touch()Deprecated.final ByteBufDeprecated.AbstractReferenceCountedByteBuf.touch()abstract ByteBufByteBuf.touch()abstract ByteBufEmptyByteBuf.touch()SwappedByteBuf.touch()Deprecated.Deprecated.WrappedByteBuf.touch()static ByteBufUnpooled.unmodifiableBuffer(ByteBuf buffer) Deprecated.UseByteBuf.asReadOnly().static ByteBufUnpooled.unmodifiableBuffer(ByteBuf... buffers) Deprecated.static ByteBufUnpooled.unreleasableBuffer(ByteBuf buf) Return a unreleasable view on the givenByteBufwhich will just ignore release and retain calls.abstract ByteBufByteBuf.unwrap()Return the underlying buffer instance if this buffer is a wrapper of another buffer.CompositeByteBuf.unwrap()DuplicatedByteBuf.unwrap()Deprecated.EmptyByteBuf.unwrap()ReadOnlyByteBuf.unwrap()Deprecated.SwappedByteBuf.unwrap()Deprecated.UnpooledDirectByteBuf.unwrap()UnpooledHeapByteBuf.unwrap()final ByteBufWrappedByteBuf.unwrap()static ByteBufUnpooled.wrappedBuffer(byte[] array) Creates a new big-endian buffer which wraps the specifiedarray.static ByteBufUnpooled.wrappedBuffer(byte[]... arrays) Creates a new big-endian composite buffer which wraps the specified arrays without copying them.static ByteBufUnpooled.wrappedBuffer(byte[] array, int offset, int length) Creates a new big-endian buffer which wraps the sub-region of the specifiedarray.static ByteBufUnpooled.wrappedBuffer(int maxNumComponents, byte[]... arrays) Creates a new big-endian composite buffer which wraps the specified arrays without copying them.static ByteBufUnpooled.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 ByteBufUnpooled.wrappedBuffer(int maxNumComponents, ByteBuffer... buffers) Creates a new big-endian composite buffer which wraps the slices of the specified NIO buffers without copying them.static ByteBufUnpooled.wrappedBuffer(long memoryAddress, int size, boolean doFree) Creates a new buffer which wraps the specified memory address.static ByteBufUnpooled.wrappedBuffer(ByteBuf buffer) Creates a new buffer which wraps the specified buffer's readable bytes.static ByteBufUnpooled.wrappedBuffer(ByteBuf... buffers) Creates a new big-endian composite buffer which wraps the readable bytes of the specified buffers without copying them.static ByteBufUnpooled.wrappedBuffer(ByteBuffer buffer) Creates a new buffer which wraps the specified NIO buffer's current slice.static ByteBufUnpooled.wrappedBuffer(ByteBuffer... buffers) Creates a new big-endian composite buffer which wraps the slices of the specified NIO buffers without copying them.static ByteBufUnpooled.wrappedUnmodifiableBuffer(ByteBuf... buffers) static ByteBufByteBufUtil.writeAscii(ByteBufAllocator alloc, CharSequence seq) AbstractByteBuf.writeBoolean(boolean value) abstract ByteBufByteBuf.writeBoolean(boolean value) Sets the specified boolean at the currentwriterIndexand increases thewriterIndexby1in this buffer.EmptyByteBuf.writeBoolean(boolean value) SwappedByteBuf.writeBoolean(boolean value) Deprecated.WrappedByteBuf.writeBoolean(boolean value) AbstractByteBuf.writeByte(int value) abstract ByteBufByteBuf.writeByte(int value) Sets the specified byte at the currentwriterIndexand increases thewriterIndexby1in this buffer.EmptyByteBuf.writeByte(int value) SwappedByteBuf.writeByte(int value) Deprecated.WrappedByteBuf.writeByte(int value) AbstractByteBuf.writeBytes(byte[] src) AbstractByteBuf.writeBytes(byte[] src, int srcIndex, int length) AbstractByteBuf.writeBytes(ByteBuf src) AbstractByteBuf.writeBytes(ByteBuf src, int length) AbstractByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) AbstractByteBuf.writeBytes(ByteBuffer src) abstract ByteBufByteBuf.writeBytes(byte[] src) Transfers the specified source array's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=src.length).abstract ByteBufByteBuf.writeBytes(byte[] src, int srcIndex, int length) Transfers the specified source array's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).abstract ByteBufByteBuf.writeBytes(ByteBuf src) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexuntil the source buffer becomes unreadable, and increases thewriterIndexby the number of the transferred bytes.abstract ByteBufByteBuf.writeBytes(ByteBuf src, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).abstract ByteBufByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).abstract ByteBufByteBuf.writeBytes(ByteBuffer src) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexuntil the source buffer's position reaches its limit, and increases thewriterIndexby the number of the transferred bytes.EmptyByteBuf.writeBytes(byte[] src) EmptyByteBuf.writeBytes(byte[] src, int srcIndex, int length) EmptyByteBuf.writeBytes(ByteBuf src) EmptyByteBuf.writeBytes(ByteBuf src, int length) EmptyByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) EmptyByteBuf.writeBytes(ByteBuffer src) SwappedByteBuf.writeBytes(byte[] src) Deprecated.SwappedByteBuf.writeBytes(byte[] src, int srcIndex, int length) Deprecated.SwappedByteBuf.writeBytes(ByteBuf src) Deprecated.SwappedByteBuf.writeBytes(ByteBuf src, int length) Deprecated.SwappedByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) Deprecated.SwappedByteBuf.writeBytes(ByteBuffer src) Deprecated.WrappedByteBuf.writeBytes(byte[] src) WrappedByteBuf.writeBytes(byte[] src, int srcIndex, int length) WrappedByteBuf.writeBytes(ByteBuf src) WrappedByteBuf.writeBytes(ByteBuf src, int length) WrappedByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) WrappedByteBuf.writeBytes(ByteBuffer src) AbstractByteBuf.writeChar(int value) abstract ByteBufByteBuf.writeChar(int value) Sets the specified 2-byte UTF-16 character at the currentwriterIndexand increases thewriterIndexby2in this buffer.EmptyByteBuf.writeChar(int value) SwappedByteBuf.writeChar(int value) Deprecated.WrappedByteBuf.writeChar(int value) AbstractByteBuf.writeDouble(double value) abstract ByteBufByteBuf.writeDouble(double value) Sets the specified 64-bit floating point number at the currentwriterIndexand increases thewriterIndexby8in this buffer.EmptyByteBuf.writeDouble(double value) SwappedByteBuf.writeDouble(double value) Deprecated.WrappedByteBuf.writeDouble(double value) ByteBuf.writeDoubleLE(double value) Sets the specified 64-bit floating point number at the currentwriterIndexin Little Endian Byte Order and increases thewriterIndexby8in this buffer.AbstractByteBuf.writeFloat(float value) abstract ByteBufByteBuf.writeFloat(float value) Sets the specified 32-bit floating point number at the currentwriterIndexand increases thewriterIndexby4in this buffer.EmptyByteBuf.writeFloat(float value) SwappedByteBuf.writeFloat(float value) Deprecated.WrappedByteBuf.writeFloat(float value) ByteBuf.writeFloatLE(float value) Sets the specified 32-bit floating point number at the currentwriterIndexin Little Endian Byte Order and increases thewriterIndexby4in this buffer.AbstractByteBuf.writeInt(int value) abstract ByteBufByteBuf.writeInt(int value) Sets the specified 32-bit integer at the currentwriterIndexand increases thewriterIndexby4in this buffer.EmptyByteBuf.writeInt(int value) SwappedByteBuf.writeInt(int value) Deprecated.WrappedByteBuf.writeInt(int value) AbstractByteBuf.writeIntLE(int value) abstract ByteBufByteBuf.writeIntLE(int value) Sets the specified 32-bit integer at the currentwriterIndexin the Little Endian Byte Order and increases thewriterIndexby4in this buffer.EmptyByteBuf.writeIntLE(int value) SwappedByteBuf.writeIntLE(int value) Deprecated.WrappedByteBuf.writeIntLE(int value) AbstractByteBuf.writeLong(long value) abstract ByteBufByteBuf.writeLong(long value) Sets the specified 64-bit long integer at the currentwriterIndexand increases thewriterIndexby8in this buffer.EmptyByteBuf.writeLong(long value) SwappedByteBuf.writeLong(long value) Deprecated.WrappedByteBuf.writeLong(long value) AbstractByteBuf.writeLongLE(long value) abstract ByteBufByteBuf.writeLongLE(long value) Sets the specified 64-bit long integer at the currentwriterIndexin the Little Endian Byte Order and increases thewriterIndexby8in this buffer.EmptyByteBuf.writeLongLE(long value) SwappedByteBuf.writeLongLE(long value) Deprecated.WrappedByteBuf.writeLongLE(long value) AbstractByteBuf.writeMedium(int value) abstract ByteBufByteBuf.writeMedium(int value) Sets the specified 24-bit medium integer at the currentwriterIndexand increases thewriterIndexby3in this buffer.EmptyByteBuf.writeMedium(int value) SwappedByteBuf.writeMedium(int value) Deprecated.WrappedByteBuf.writeMedium(int value) static ByteBufByteBufUtil.writeMediumBE(ByteBuf buf, int mediumValue) Writes a big-endian 24-bit medium integer to the buffer.AbstractByteBuf.writeMediumLE(int value) abstract ByteBufByteBuf.writeMediumLE(int value) Sets the specified 24-bit medium integer at the currentwriterIndexin the Little Endian Byte Order and increases thewriterIndexby3in this buffer.EmptyByteBuf.writeMediumLE(int value) SwappedByteBuf.writeMediumLE(int value) Deprecated.WrappedByteBuf.writeMediumLE(int value) AbstractByteBuf.writerIndex(int writerIndex) abstract ByteBufByteBuf.writerIndex(int writerIndex) Sets thewriterIndexof this buffer.EmptyByteBuf.writerIndex(int writerIndex) SwappedByteBuf.writerIndex(int writerIndex) Deprecated.final ByteBufWrappedByteBuf.writerIndex(int writerIndex) AbstractByteBuf.writeShort(int value) abstract ByteBufByteBuf.writeShort(int value) Sets the specified 16-bit short integer at the currentwriterIndexand increases thewriterIndexby2in this buffer.EmptyByteBuf.writeShort(int value) SwappedByteBuf.writeShort(int value) Deprecated.WrappedByteBuf.writeShort(int value) static ByteBufByteBufUtil.writeShortBE(ByteBuf buf, int shortValue) Writes a big-endian 16-bit short integer to the buffer.AbstractByteBuf.writeShortLE(int value) abstract ByteBufByteBuf.writeShortLE(int value) Sets the specified 16-bit short integer in the Little Endian Byte Order at the currentwriterIndexand increases thewriterIndexby2in this buffer.EmptyByteBuf.writeShortLE(int value) SwappedByteBuf.writeShortLE(int value) Deprecated.WrappedByteBuf.writeShortLE(int value) static ByteBufByteBufUtil.writeUtf8(ByteBufAllocator alloc, CharSequence seq) AbstractByteBuf.writeZero(int length) abstract ByteBufByteBuf.writeZero(int length) Fills this buffer with NUL (0x00) starting at the currentwriterIndexand increases thewriterIndexby the specifiedlength.EmptyByteBuf.writeZero(int length) SwappedByteBuf.writeZero(int length) Deprecated.UnpooledUnsafeDirectByteBuf.writeZero(int length) UnpooledUnsafeHeapByteBuf.writeZero(int length) WrappedByteBuf.writeZero(int length) Methods in io.netty.buffer that return types with arguments of type ByteBufModifier and TypeMethodDescriptionCompositeByteBuf.decompose(int offset, int length) Same withAbstractByteBuf.slice(int, int)except that this method returns a list.CompositeByteBuf.iterator()Methods in io.netty.buffer with parameters of type ByteBufModifier and TypeMethodDescriptionCompositeByteBuf.addComponent(boolean increaseWriterIndex, int cIndex, ByteBuf buffer) Add the givenByteBufon the specific index and increase thewriterIndexifincreaseWriterIndexistrue.CompositeByteBuf.addComponent(boolean increaseWriterIndex, ByteBuf buffer) CompositeByteBuf.addComponent(int cIndex, ByteBuf buffer) Add the givenByteBufon the specific index.CompositeByteBuf.addComponent(ByteBuf buffer) Add the givenByteBuf.CompositeByteBuf.addComponents(boolean increaseWriterIndex, ByteBuf... buffers) CompositeByteBuf.addComponents(int cIndex, ByteBuf... buffers) Add the givenByteBufs on the specific indexCompositeByteBuf.addComponents(ByteBuf... buffers) Add the givenByteBufs.CompositeByteBuf.addFlattenedComponents(boolean increaseWriterIndex, ByteBuf buffer) static voidByteBufUtil.appendPrettyHexDump(StringBuilder dump, ByteBuf buf) Appends the prettified multi-line hexadecimal dump of the specifiedByteBufto the specifiedStringBuilderthat is easy to read by humans.static voidByteBufUtil.appendPrettyHexDump(StringBuilder dump, ByteBuf buf, int offset, int length) Appends the prettified multi-line hexadecimal dump of the specifiedByteBufto the specifiedStringBuilderthat is easy to read by humans, starting at the givenoffsetusing the givenlength.static intCompares the two specified buffers as described inByteBuf.compareTo(ByteBuf).intabstract intCompares the content of the specified buffer to the content of this buffer.intintDeprecated.intstatic ByteBufUnpooled.copiedBuffer(ByteBuf buffer) Creates a new buffer whose content is a copy of the specifiedbuffer's readable bytes.static ByteBufUnpooled.copiedBuffer(ByteBuf... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers' readable bytes.static voidByteBufUtil.copy(AsciiString src, int srcIdx, ByteBuf dst, int length) static voidByteBufUtil.copy(AsciiString src, int srcIdx, ByteBuf dst, int dstIdx, int length) static voidByteBufUtil.copy(AsciiString src, ByteBuf dst) static ByteBufByteBufUtil.ensureAccessible(ByteBuf buffer) static booleanReturnstrueif and only if the two specified buffers are identical to each other forlengthbytes starting ataStartIndexindex for theabuffer andbStartIndexindex for thebbuffer.static booleanReturnstrueif and only if the two specified buffers are identical to each other as described inByteBuf.equals(Object).abstract ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindexuntil the destination becomes non-writable.abstract ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindex.abstract ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindex.static byte[]Create a copy of the underlying storage frombufinto a byte array.static byte[]Create a copy of the underlying storage frombufinto a byte array.static byte[]Return an array of the underlying storage frombufinto a byte array.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.static intCalculates the hash code of the specified buffer.static StringReturns a hex dump of the specified buffer's readable bytes.static StringReturns a hex dump of the specified buffer's sub-region.static intThe default implementation ofByteBuf.indexOf(int, int, byte).static intReturns the reader index of needle in haystack, or -1 if needle is not in haystack.static booleanByteBufUtil.isAccessible(ByteBuf buffer) static booleanstatic booleanstatic StringByteBufUtil.prettyHexDump(ByteBuf buffer) Returns a multi-line hexadecimal dump of the specifiedByteBufthat is easy to read by humans.static StringByteBufUtil.prettyHexDump(ByteBuf buffer, int offset, int length) Returns a multi-line hexadecimal dump of the specifiedByteBufthat is easy to read by humans, starting at the givenoffsetusing the givenlength.abstract ByteBufTransfers this buffer's data to the specified destination starting at the currentreaderIndexuntil the destination becomes non-writable, and increases thereaderIndexby the number of the transferred bytes.abstract ByteBufTransfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).abstract ByteBufTransfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).static ByteBufByteBufUtil.readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length) Read the given amount of bytes into a newByteBufthat is allocated from theByteBufAllocator.Deprecated.Deprecated.Deprecated.static intReads a big-endian 32-bit integer from the buffer.static intByteBufUtil.readUnsignedShortBE(ByteBuf buf) Reads a big-endian unsigned 16-bit short integer from the buffer.Returns a newByteBufHolderwhich contains the specifiedcontent.Returns a newByteBufHolderwhich contains the specifiedcontent.static intByteBufUtil.reserveAndWriteUtf8(ByteBuf buf, CharSequence seq, int reserveBytes) static intByteBufUtil.reserveAndWriteUtf8(ByteBuf buf, CharSequence seq, int start, int end, int reserveBytes) Equivalent tobut avoids subsequence object allocation if possible.reserveAndWriteUtf8(buf, seq.subSequence(start, end), reserveBytes)abstract ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindexuntil the source buffer becomes unreadable.abstract ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindex.abstract ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindex.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.static ByteBufByteBufUtil.setShortBE(ByteBuf buf, int index, int shortValue) Sets a big-endian 16-bit short integer to the buffer.protected static ByteBufAbstractByteBufAllocator.toLeakAwareBuffer(ByteBuf buf) static ByteBufUnpooled.unmodifiableBuffer(ByteBuf buffer) Deprecated.UseByteBuf.asReadOnly().static ByteBufUnpooled.unmodifiableBuffer(ByteBuf... buffers) Deprecated.static ByteBufUnpooled.unreleasableBuffer(ByteBuf buf) Return a unreleasable view on the givenByteBufwhich will just ignore release and retain calls.static ByteBufUnpooled.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 ByteBufUnpooled.wrappedBuffer(ByteBuf buffer) Creates a new buffer which wraps the specified buffer's readable bytes.static ByteBufUnpooled.wrappedBuffer(ByteBuf... buffers) Creates a new big-endian composite buffer which wraps the readable bytes of the specified buffers without copying them.static ByteBufUnpooled.wrappedUnmodifiableBuffer(ByteBuf... buffers) static intByteBufUtil.writeAscii(ByteBuf buf, CharSequence seq) AbstractByteBuf.writeBytes(ByteBuf src) AbstractByteBuf.writeBytes(ByteBuf src, int length) AbstractByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) abstract ByteBufByteBuf.writeBytes(ByteBuf src) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexuntil the source buffer becomes unreadable, and increases thewriterIndexby the number of the transferred bytes.abstract ByteBufByteBuf.writeBytes(ByteBuf src, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).abstract ByteBufByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).CompositeByteBuf.writeBytes(ByteBuf src) CompositeByteBuf.writeBytes(ByteBuf src, int length) CompositeByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) EmptyByteBuf.writeBytes(ByteBuf src) EmptyByteBuf.writeBytes(ByteBuf src, int length) EmptyByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) SwappedByteBuf.writeBytes(ByteBuf src) Deprecated.SwappedByteBuf.writeBytes(ByteBuf src, int length) Deprecated.SwappedByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) Deprecated.WrappedByteBuf.writeBytes(ByteBuf src) WrappedByteBuf.writeBytes(ByteBuf src, int length) WrappedByteBuf.writeBytes(ByteBuf src, int srcIndex, int length) static ByteBufByteBufUtil.writeMediumBE(ByteBuf buf, int mediumValue) Writes a big-endian 24-bit medium integer to the buffer.static ByteBufByteBufUtil.writeShortBE(ByteBuf buf, int shortValue) Writes a big-endian 16-bit short integer to the buffer.static intByteBufUtil.writeUtf8(ByteBuf buf, CharSequence seq) static intByteBufUtil.writeUtf8(ByteBuf buf, CharSequence seq, int start, int end) Equivalent tobut avoids subsequence object allocation.writeUtf8(buf, seq.subSequence(start, end))Method parameters in io.netty.buffer with type arguments of type ByteBufModifier and TypeMethodDescriptionCompositeByteBuf.addComponents(boolean increaseWriterIndex, Iterable<ByteBuf> buffers) CompositeByteBuf.addComponents(int cIndex, Iterable<ByteBuf> buffers) Add the givenByteBufs on the specific index Be aware that this method does not increase thewriterIndexof theCompositeByteBuf.CompositeByteBuf.addComponents(Iterable<ByteBuf> buffers) Add the givenByteBufs.Constructors in io.netty.buffer with parameters of type ByteBufModifierConstructorDescriptionByteBufInputStream(ByteBuf buffer) Creates a new stream which reads data from the specifiedbufferstarting at the currentreaderIndexand ending at the currentwriterIndex.ByteBufInputStream(ByteBuf buffer, boolean releaseOnClose) Creates a new stream which reads data from the specifiedbufferstarting at the currentreaderIndexand ending at the currentwriterIndex.ByteBufInputStream(ByteBuf buffer, int length) Creates a new stream which reads data from the specifiedbufferstarting at the currentreaderIndexand ending atreaderIndex + length.ByteBufInputStream(ByteBuf buffer, int length, boolean releaseOnClose) Creates a new stream which reads data from the specifiedbufferstarting at the currentreaderIndexand ending atreaderIndex + length.ByteBufOutputStream(ByteBuf buffer) Creates a new stream which writes data to the specifiedbuffer.ByteBufOutputStream(ByteBuf buffer, boolean releaseOnClose) Creates a new stream which writes data to the specifiedbuffer.CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, ByteBuf... buffers) DefaultByteBufHolder(ByteBuf data) DuplicatedByteBuf(ByteBuf buffer) Deprecated.ReadOnlyByteBuf(ByteBuf buffer) Deprecated.SlicedByteBuf(ByteBuf buffer, int index, int length) Deprecated.SwappedByteBuf(ByteBuf buf) Deprecated.protectedWrappedByteBuf(ByteBuf buf) Constructor parameters in io.netty.buffer with type arguments of type ByteBufModifierConstructorDescriptionCompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, Iterable<ByteBuf> buffers) -
Uses of ByteBuf in io.netty.channel
Methods in io.netty.channel that return ByteBufModifier and TypeMethodDescriptionDefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle.allocate(ByteBufAllocator alloc) RecvByteBufAllocator.DelegatingHandle.allocate(ByteBufAllocator alloc) 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.PreferHeapByteBufAllocator.buffer()PreferHeapByteBufAllocator.buffer(int initialCapacity) PreferHeapByteBufAllocator.buffer(int initialCapacity, int maxCapacity) protected abstract ByteBufAbstractCoalescingBufferQueue.compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) Calculate the result ofcurrent + next.protected ByteBufCoalescingBufferQueue.compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected ByteBufAbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first) Deprecated.Use {AbstractCoalescingBufferQueue#composeFirst(ByteBufAllocator, ByteBuf, int)}protected ByteBufAbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first, int bufferSize) Calculate the firstByteBufwhich will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(ByteBufAllocator, ByteBuf, ByteBuf).protected final ByteBufAbstractCoalescingBufferQueue.composeIntoComposite(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected final ByteBufAbstractCoalescingBufferQueue.copyAndCompose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) PreferHeapByteBufAllocator.directBuffer()PreferHeapByteBufAllocator.directBuffer(int initialCapacity) PreferHeapByteBufAllocator.directBuffer(int initialCapacity, int maxCapacity) PreferHeapByteBufAllocator.heapBuffer()PreferHeapByteBufAllocator.heapBuffer(int initialCapacity) PreferHeapByteBufAllocator.heapBuffer(int initialCapacity, int maxCapacity) PreferHeapByteBufAllocator.ioBuffer()PreferHeapByteBufAllocator.ioBuffer(int initialCapacity) PreferHeapByteBufAllocator.ioBuffer(int initialCapacity, int maxCapacity) final ByteBufAbstractCoalescingBufferQueue.remove(ByteBufAllocator alloc, int bytes, ChannelPromise aggregatePromise) Remove aByteBuffrom the queue with the specified number of bytes.CoalescingBufferQueue.remove(int bytes, ChannelPromise aggregatePromise) Remove aByteBuffrom the queue with the specified number of bytes.protected abstract ByteBufAbstractCoalescingBufferQueue.removeEmptyValue()The value to return whenAbstractCoalescingBufferQueue.remove(ByteBufAllocator, int, ChannelPromise)is called but the queue is empty.protected ByteBufCoalescingBufferQueue.removeEmptyValue()final ByteBufAbstractCoalescingBufferQueue.removeFirst(ChannelPromise aggregatePromise) Remove the firstByteBuffrom the queue.Methods in io.netty.channel with parameters of type ByteBufModifier and TypeMethodDescriptionfinal voidAdd a buffer to the end of the queue.final voidAbstractCoalescingBufferQueue.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.final voidAbstractCoalescingBufferQueue.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.final voidAbstractCoalescingBufferQueue.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 ByteBufAbstractCoalescingBufferQueue.compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) Calculate the result ofcurrent + next.protected ByteBufCoalescingBufferQueue.compose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected ByteBufAbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first) Deprecated.Use {AbstractCoalescingBufferQueue#composeFirst(ByteBufAllocator, ByteBuf, int)}protected ByteBufAbstractCoalescingBufferQueue.composeFirst(ByteBufAllocator allocator, ByteBuf first, int bufferSize) Calculate the firstByteBufwhich will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(ByteBufAllocator, ByteBuf, ByteBuf).protected final ByteBufAbstractCoalescingBufferQueue.composeIntoComposite(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) protected final ByteBufAbstractCoalescingBufferQueue.copyAndCompose(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf next) -
Uses of ByteBuf in io.netty.channel.epoll
Methods in io.netty.channel.epoll with parameters of type ByteBufModifier and TypeMethodDescriptionDeprecated.Constructors in io.netty.channel.epoll with parameters of type ByteBufModifierConstructorDescriptionSegmentedDatagramPacket(ByteBuf data, int segmentSize, InetSocketAddress recipient) Deprecated.Create a new instance.SegmentedDatagramPacket(ByteBuf data, int segmentSize, InetSocketAddress recipient, InetSocketAddress sender) Deprecated.Create a new instance. -
Uses of ByteBuf in io.netty.channel.nio
Methods in io.netty.channel.nio that return ByteBufModifier and TypeMethodDescriptionprotected final ByteBufAbstractNioChannel.newDirectBuffer(ByteBuf buf) Returns an off-heap copy of the specifiedByteBuf, and releases the original one.protected final ByteBufAbstractNioChannel.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 ByteBufModifier and TypeMethodDescriptionprotected abstract intAbstractNioByteChannel.doReadBytes(ByteBuf buf) Read bytes into the givenByteBufand return the amount.protected abstract intAbstractNioByteChannel.doWriteBytes(ByteBuf buf) protected final ByteBufAbstractNioChannel.newDirectBuffer(ByteBuf buf) Returns an off-heap copy of the specifiedByteBuf, and releases the original one.protected final ByteBufAbstractNioChannel.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 ByteBufModifier and TypeMethodDescriptionprotected abstract intAbstractOioByteChannel.doReadBytes(ByteBuf buf) Deprecated.Read bytes from the underlying Socket.protected intOioByteStreamChannel.doReadBytes(ByteBuf buf) Deprecated.protected abstract voidAbstractOioByteChannel.doWriteBytes(ByteBuf buf) Deprecated.Write the data which is hold by theByteBufto the underlying Socket.protected voidOioByteStreamChannel.doWriteBytes(ByteBuf buf) Deprecated. -
Uses of ByteBuf in io.netty.channel.sctp
Methods in io.netty.channel.sctp with parameters of type ByteBufConstructors in io.netty.channel.sctp with parameters of type ByteBufModifierConstructorDescriptionSctpMessage(int protocolIdentifier, int streamIdentifier, boolean unordered, ByteBuf payloadBuffer) Essential data that is being carried within SCTP Data ChunkSctpMessage(int protocolIdentifier, int streamIdentifier, ByteBuf payloadBuffer) Essential data that is being carried within SCTP Data ChunkSctpMessage(MessageInfo msgInfo, ByteBuf payloadBuffer) Essential data that is being carried within SCTP Data Chunk -
Uses of ByteBuf in io.netty.channel.socket
Subclasses with type arguments of type ByteBuf in io.netty.channel.socketModifier and TypeClassDescriptionclassThe message container that is used forDatagramChannelto communicate with the remote peer.Methods in io.netty.channel.socket with parameters of type ByteBufConstructors in io.netty.channel.socket with parameters of type ByteBufModifierConstructorDescriptionDatagramPacket(ByteBuf data, InetSocketAddress recipient) Create a new instance with the specified packetdataandrecipientaddress.DatagramPacket(ByteBuf data, InetSocketAddress recipient, InetSocketAddress sender) Create a new instance with the specified packetdata,recipientaddress, andsenderaddress. -
Uses of ByteBuf in io.netty.channel.socket.nio
Methods in io.netty.channel.socket.nio with parameters of type ByteBufModifier and TypeMethodDescriptionprotected intNioDomainSocketChannel.doReadBytes(ByteBuf byteBuf) protected intNioSocketChannel.doReadBytes(ByteBuf byteBuf) protected intNioDomainSocketChannel.doWriteBytes(ByteBuf buf) protected intNioSocketChannel.doWriteBytes(ByteBuf buf) -
Uses of ByteBuf in io.netty.channel.socket.oio
Methods in io.netty.channel.socket.oio with parameters of type ByteBufModifier and TypeMethodDescriptionprotected intOioSocketChannel.doReadBytes(ByteBuf buf) Deprecated. -
Uses of ByteBuf in io.netty.channel.udt
Methods in io.netty.channel.udt with parameters of type ByteBufConstructors in io.netty.channel.udt with parameters of type ByteBuf -
Uses of ByteBuf in io.netty.channel.udt.nio
Methods in io.netty.channel.udt.nio with parameters of type ByteBufModifier and TypeMethodDescriptionprotected intNioUdtByteConnectorChannel.doReadBytes(ByteBuf byteBuf) Deprecated.protected intNioUdtByteConnectorChannel.doWriteBytes(ByteBuf byteBuf) Deprecated. -
Uses of ByteBuf in io.netty.channel.unix
Subclasses with type arguments of type ByteBuf in io.netty.channel.unixModifier and TypeClassDescriptionfinal classThe message container that is used forDomainDatagramChannelto communicate with the remote peer.Methods in io.netty.channel.unix that return ByteBufModifier and TypeMethodDescriptionPreferredDirectByteBufAllocator.buffer()PreferredDirectByteBufAllocator.buffer(int initialCapacity) PreferredDirectByteBufAllocator.buffer(int initialCapacity, int maxCapacity) PreferredDirectByteBufAllocator.directBuffer()PreferredDirectByteBufAllocator.directBuffer(int initialCapacity) PreferredDirectByteBufAllocator.directBuffer(int initialCapacity, int maxCapacity) PreferredDirectByteBufAllocator.heapBuffer()PreferredDirectByteBufAllocator.heapBuffer(int initialCapacity) PreferredDirectByteBufAllocator.heapBuffer(int initialCapacity, int maxCapacity) PreferredDirectByteBufAllocator.ioBuffer()PreferredDirectByteBufAllocator.ioBuffer(int initialCapacity) PreferredDirectByteBufAllocator.ioBuffer(int initialCapacity, int maxCapacity) Methods in io.netty.channel.unix with parameters of type ByteBufModifier and TypeMethodDescriptionbooleanDeprecated.booleanstatic booleanUnixChannelUtil.isBufferCopyNeededForWrite(ByteBuf byteBuf) Checks if the specified buffer has memory address or is composed of n(n invalid input: '<'= IOV_MAX) NIO direct buffers.Constructors in io.netty.channel.unix with parameters of type ByteBufModifierConstructorDescriptionDomainDatagramPacket(ByteBuf data, DomainSocketAddress recipient) Create a new instance with the specified packetdataandrecipientaddress.DomainDatagramPacket(ByteBuf data, DomainSocketAddress recipient, DomainSocketAddress sender) Create a new instance with the specified packetdata,recipientaddress, andsenderaddress.Deprecated.UseIovArray(int)instead.SegmentedDatagramPacket(ByteBuf data, int segmentSize, InetSocketAddress recipient) Create a new instance.SegmentedDatagramPacket(ByteBuf data, int segmentSize, InetSocketAddress recipient, InetSocketAddress sender) Create a new instance. -
Uses of ByteBuf in io.netty.channel.uring
Methods in io.netty.channel.uring that return ByteBufModifier and TypeMethodDescriptionfinal ByteBufAbstractIoUringBufferRingAllocator.allocate()IoUringBufferRingAllocator.allocate()Creates a new receive buffer to use by the buffer ring.Method parameters in io.netty.channel.uring with type arguments of type ByteBufModifier and TypeMethodDescriptionfinal voidAbstractIoUringBufferRingAllocator.allocateBatch(Consumer<ByteBuf> consumer, int number) default voidIoUringBufferRingAllocator.allocateBatch(Consumer<ByteBuf> consumer, int num) Fill innumofByteBufs. -
Uses of ByteBuf in io.netty.handler.codec
Subclasses with type arguments of type ByteBuf in io.netty.handler.codecModifier and TypeClassDescriptionclassAn encoder that prepends the length of the message.Methods in io.netty.handler.codec that return ByteBufModifier and TypeMethodDescriptionprotected ByteBufMessageToByteEncoder.allocateBuffer(ChannelHandlerContext ctx, I msg, boolean preferDirect) Allocate aByteBufwhich will be used as argument ofMessageToByteEncoder.encode(ChannelHandlerContext, I, ByteBuf).ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf in) protected ByteBufLengthFieldBasedFrameDecoder.extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) Extract the sub-region of the specified buffer.protected ByteBufByteToMessageDecoder.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.static ByteBuf[]Delimiters.nulDelimiter()Returns aNUL (0x00)delimiter, which could be used for Flash XML socket or any similar protocols.Methods in io.netty.handler.codec with parameters of type ByteBufModifier and TypeMethodDescriptionprotected abstract OMessageAggregator.beginAggregation(S start, ByteBuf content) Creates a new aggregated message from the specified start message and the specified content.protected voidByteToMessageDecoder.callDecode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Called once data should be decoded from the givenByteBuf.protected voidReplayingDecoder.callDecode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf in) protected abstract voidByteToMessageCodec.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected abstract voidByteToMessageDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Decode the from oneByteBufto an other.protected ObjectDelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf buffer) Create a frame out of theByteBufand return it.protected final voidDelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected ObjectFixedLengthFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in) Create a frame out of theByteBufand return it.protected final voidFixedLengthFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected ObjectLengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in) Create a frame out of theByteBufand return it.protected final voidLengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected ObjectLineBasedFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf buffer) Create a frame out of theByteBufand return it.protected final voidLineBasedFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidByteToMessageCodec.decodeLast(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidByteToMessageDecoder.decodeLast(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Is called one last time when theChannelHandlerContextgoes in-active.protected abstract voidByteToMessageCodec.encode(ChannelHandlerContext ctx, I msg, ByteBuf out) protected voidLengthFieldPrepender.encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) protected abstract voidMessageToByteEncoder.encode(ChannelHandlerContext ctx, I msg, ByteBuf out) Encode a message into aByteBuf.protected ByteBufLengthFieldBasedFrameDecoder.extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) Extract the sub-region of the specified buffer.protected longLengthFieldBasedFrameDecoder.getUnadjustedFrameLength(ByteBuf buf, int offset, int length, ByteOrder order) Decodes the specified region of the buffer into an unadjusted frame length.Constructors in io.netty.handler.codec with parameters of type ByteBufModifierConstructorDescriptionAsciiHeadersEncoder(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.Constructor parameters in io.netty.handler.codec with type arguments of type ByteBufModifierConstructorDescriptionCreate aDatagramPacketdecoder using the specifiedByteBufdecoder. -
Uses of ByteBuf in io.netty.handler.codec.base64
Subclasses with type arguments of type ByteBuf in io.netty.handler.codec.base64Modifier and TypeClassDescriptionclassclassMethods in io.netty.handler.codec.base64 that return ByteBufModifier and TypeMethodDescriptionstatic ByteBufstatic ByteBufstatic ByteBufBase64.decode(ByteBuf src, int off, int len, Base64Dialect dialect) static ByteBufBase64.decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator) static ByteBufBase64.decode(ByteBuf src, Base64Dialect dialect) static ByteBufstatic ByteBufstatic ByteBufstatic ByteBufBase64.encode(ByteBuf src, boolean breakLines, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, boolean breakLines, Base64Dialect dialect, boolean addPadding) static ByteBufstatic ByteBufstatic ByteBufBase64.encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, boolean addPadding) static ByteBufBase64.encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator) static ByteBufBase64.encode(ByteBuf src, int off, int len, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, Base64Dialect dialect, boolean addPadding) Methods in io.netty.handler.codec.base64 with parameters of type ByteBufModifier and TypeMethodDescriptionstatic ByteBufstatic ByteBufstatic ByteBufBase64.decode(ByteBuf src, int off, int len, Base64Dialect dialect) static ByteBufBase64.decode(ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator) static ByteBufBase64.decode(ByteBuf src, Base64Dialect dialect) protected voidBase64Decoder.decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) static ByteBufstatic ByteBufstatic ByteBufstatic ByteBufBase64.encode(ByteBuf src, boolean breakLines, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, boolean breakLines, Base64Dialect dialect, boolean addPadding) static ByteBufstatic ByteBufstatic ByteBufBase64.encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, boolean addPadding) static ByteBufBase64.encode(ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator) static ByteBufBase64.encode(ByteBuf src, int off, int len, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, Base64Dialect dialect) static ByteBufBase64.encode(ByteBuf src, Base64Dialect dialect, boolean addPadding) protected voidBase64Encoder.encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) -
Uses of ByteBuf in io.netty.handler.codec.bytes
Subclasses with type arguments of type ByteBuf in io.netty.handler.codec.bytesMethods in io.netty.handler.codec.bytes with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidByteArrayDecoder.decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) -
Uses of ByteBuf in io.netty.handler.codec.compression
Subclasses with type arguments of type ByteBuf in io.netty.handler.codec.compressionModifier and TypeClassDescriptionfinal classCompress aByteBufwith the Brotli compression.classCompresses aByteBufusing the Bzip2 algorithm.classCompresses aByteBufusing the FastLZ algorithm.classCompresses aByteBufusing the LZ4 format.classCompresses aByteBufusing the LZF format.classCompresses aByteBufusing the LZMA algorithm.classCompresses aByteBufusing the Snappy framing format.classCompresses aByteBufusing the deflate algorithm.final classCompresses aByteBufusing the Zstandard algorithm.Methods in io.netty.handler.codec.compression that return ByteBufModifier and TypeMethodDescriptionprotected ByteBufBrotliEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected final ByteBufJdkZlibEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected ByteBufLz4FrameEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected ByteBufLzmaFrameEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf in, boolean preferDirect) protected ByteBufZstdEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected ByteBufZlibDecoder.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 ByteBufModifier and TypeMethodDescriptionprotected ByteBufBrotliEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected final ByteBufJdkZlibEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected ByteBufLz4FrameEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected ByteBufLzmaFrameEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf in, boolean preferDirect) protected ByteBufZstdEncoder.allocateBuffer(ChannelHandlerContext ctx, ByteBuf msg, boolean preferDirect) protected voidBrotliDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidBzip2Decoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidFastLzFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidJdkZlibDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidJZlibDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidLz4FrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidLzfDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) voidprotected voidSnappyFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidZstdDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidJdkZlibDecoder.decompressionBufferExhausted(ByteBuf buffer) protected voidJZlibDecoder.decompressionBufferExhausted(ByteBuf buffer) protected voidZlibDecoder.decompressionBufferExhausted(ByteBuf buffer) Called when the decompression buffer cannot be expanded further.protected voidBrotliEncoder.encode(ChannelHandlerContext ctx, ByteBuf msg, ByteBuf out) protected voidBzip2Encoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) protected voidFastLzFrameEncoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) protected voidJdkZlibEncoder.encode(ChannelHandlerContext ctx, ByteBuf uncompressed, ByteBuf out) protected voidJZlibEncoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) protected voidLz4FrameEncoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) Encode a message into aByteBuf.protected voidLzfEncoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) protected voidLzmaFrameEncoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) voidprotected voidSnappyFrameEncoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) protected voidZstdEncoder.encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) protected ByteBufZlibDecoder.prepareDecompressBuffer(ChannelHandlerContext ctx, ByteBuf buffer, int preferredSize) Allocate or expand the decompression buffer, without exceeding the maximum allocation.void -
Uses of ByteBuf in io.netty.handler.codec.dns
Methods in io.netty.handler.codec.dns that return ByteBufModifier and TypeMethodDescriptionprotected ByteBufDatagramDnsQueryEncoder.allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsQuery, InetSocketAddress> msg) Allocate aByteBufwhich will be used for constructing a datagram packet.protected ByteBufDatagramDnsResponseEncoder.allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse, InetSocketAddress> msg) Allocate aByteBufwhich will be used for constructing a datagram packet.protected ByteBufTcpDnsQueryEncoder.allocateBuffer(ChannelHandlerContext ctx, DnsQuery msg, boolean preferDirect) DefaultDnsRawRecord.content()protected ByteBufTcpDnsResponseDecoder.extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) Methods in io.netty.handler.codec.dns with parameters of type ByteBufModifier and TypeMethodDescriptionprotected ObjectTcpDnsQueryDecoder.decode(ChannelHandlerContext ctx, ByteBuf in) protected ObjectTcpDnsResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf in) static StringDefaultDnsRecordDecoder.decodeName(ByteBuf in) Retrieves a domain name given a buffer containing a DNS packet.protected StringDefaultDnsRecordDecoder.decodeName0(ByteBuf in) Retrieves a domain name given a buffer containing a DNS packet.final DnsQuestionDefaultDnsRecordDecoder.decodeQuestion(ByteBuf in) DnsRecordDecoder.decodeQuestion(ByteBuf in) Decodes a DNS question into its object representation.final <T extends DnsRecord>
TDefaultDnsRecordDecoder.decodeRecord(ByteBuf in) protected DnsRecordDefaultDnsRecordDecoder.decodeRecord(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.protected voidTcpDnsQueryEncoder.encode(ChannelHandlerContext ctx, DnsQuery msg, ByteBuf out) protected voidDefaultDnsRecordEncoder.encodeName(String name, ByteBuf buf) final voidDefaultDnsRecordEncoder.encodeQuestion(DnsQuestion question, ByteBuf out) voidDnsRecordEncoder.encodeQuestion(DnsQuestion question, ByteBuf out) Encodes aDnsQuestion.voidDefaultDnsRecordEncoder.encodeRecord(DnsRecord record, ByteBuf out) voidDnsRecordEncoder.encodeRecord(DnsRecord record, ByteBuf out) Encodes aDnsRecord.protected ByteBufTcpDnsResponseDecoder.extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) Constructors in io.netty.handler.codec.dns with parameters of type ByteBufModifierConstructorDescriptionDefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, ByteBuf content) Creates a new record.DefaultDnsRawRecord(String name, DnsRecordType type, long timeToLive, ByteBuf content) Creates a newIN-classrecord. -
Uses of ByteBuf in io.netty.handler.codec.haproxy
Methods in io.netty.handler.codec.haproxy with parameters of type ByteBufModifier and TypeMethodDescriptionprotected final voidHAProxyMessageDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) HAProxyMessageDecoder.detectProtocol(ByteBuf buffer) Returns theProtocolDetectionResultfor the givenByteBuf.protected voidHAProxyMessageEncoder.encode(ChannelHandlerContext ctx, HAProxyMessage msg, ByteBuf out) Constructors in io.netty.handler.codec.haproxy with parameters of type ByteBufModifierConstructorDescriptionHAProxyTLV(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
Methods in io.netty.handler.codec.http that return ByteBufModifier and TypeMethodDescriptionDefaultFullHttpRequest.content()DefaultFullHttpResponse.content()DefaultHttpContent.content()Methods in io.netty.handler.codec.http with parameters of type ByteBufModifier and TypeMethodDescriptionprotected FullHttpMessageHttpObjectAggregator.beginAggregation(HttpMessage start, ByteBuf content) protected FullHttpMessageHttpServerUpgradeHandler.beginAggregation(HttpMessage start, ByteBuf content) protected voidHttpObjectDecoder.decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) protected voidHttpObjectDecoder.decodeLast(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) static voidHttpHeaders.encodeAscii(CharSequence seq, ByteBuf buf) Deprecated.protected static voidHttpObjectEncoder.encodeAscii(String s, ByteBuf buf) Deprecated.protected voidHttpObjectEncoder.encodeHeaders(HttpHeaders headers, ByteBuf buf) Encode theHttpHeadersinto aByteBuf.protected abstract voidHttpObjectEncoder.encodeInitialLine(ByteBuf buf, H message) protected voidHttpRequestEncoder.encodeInitialLine(ByteBuf buf, HttpRequest request) protected voidHttpResponseEncoder.encodeInitialLine(ByteBuf buf, HttpResponse response) Constructors in io.netty.handler.codec.http with parameters of type ByteBufModifierConstructorDescriptionDefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content) Create a full HTTP response with the given HTTP version, method, URI, and contents.DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, boolean validateHeaders) Deprecated.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, 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, 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.DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeader, boolean validateRequestLine) 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.Constructor parameters in io.netty.handler.codec.http with type arguments of type ByteBufModifierConstructorDescriptionHttpChunkedInput(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
Methods in io.netty.handler.codec.http.multipart that return ByteBufModifier and TypeMethodDescriptionAbstractHttpData.content()AbstractDiskHttpData.getByteBuf()AbstractMemoryHttpData.getByteBuf()Utility to go from a In Memory FileUpload to a Disk (or another implementation) FileUploadHttpData.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.AbstractDiskHttpData.getChunk(int length) AbstractMemoryHttpData.getChunk(int length) 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.Methods in io.netty.handler.codec.http.multipart with parameters of type ByteBufModifier and TypeMethodDescriptionvoidAbstractDiskHttpData.addContent(ByteBuf buffer, boolean last) voidAbstractMemoryHttpData.addContent(ByteBuf buffer, boolean last) voidDiskAttribute.addContent(ByteBuf buffer, boolean last) voidHttpData.addContent(ByteBuf buffer, boolean last) Add the content from the ChannelBuffervoidMemoryAttribute.addContent(ByteBuf buffer, boolean last) voidAbstractDiskHttpData.setContent(ByteBuf buffer) voidAbstractMemoryHttpData.setContent(ByteBuf buffer) voidHttpData.setContent(ByteBuf buffer) Set the content from the ChannelBuffer (erase any previous data) -
Uses of ByteBuf in io.netty.handler.codec.http.websocketx
Methods in io.netty.handler.codec.http.websocketx with parameters of type ByteBufModifier and TypeMethodDescriptionprotected WebSocketFrameWebSocketFrameAggregator.beginAggregation(WebSocketFrame start, ByteBuf content) protected voidWebSocket08FrameDecoder.checkCloseFrameBody(ChannelHandlerContext ctx, ByteBuf buffer) protected voidWebSocket00FrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidWebSocket08FrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) abstract WebSocketFrameConstructors in io.netty.handler.codec.http.websocketx with parameters of type ByteBufModifierConstructorDescriptionBinaryWebSocketFrame(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.protectedWebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData) protectedWebSocketFrame(ByteBuf binaryData) Constructor parameters in io.netty.handler.codec.http.websocketx with type arguments of type ByteBufModifierConstructorDescriptionWebSocketChunkedInput(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.http2
Methods in io.netty.handler.codec.http2 that return ByteBufModifier and TypeMethodDescriptionstatic ByteBufHttp2CodecUtil.connectionPrefaceBuf()Returns a buffer containing theHttp2CodecUtil.CONNECTION_PREFACE.DefaultHttp2DataFrame.content()Http2DataFrame.content()Payload of DATA frame.Http2GoAwayFrame.content()Optional debugging information describing cause the GOAWAY.static ByteBufHttp2CodecUtil.toByteBuf(ChannelHandlerContext ctx, Throwable cause) Creates a buffer containing the error message from the given exception.Methods in io.netty.handler.codec.http2 with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidCleartextHttp2ServerUpgradeHandler.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Peek inbound message to determine current connection wants to start HTTP/2 by HTTP upgrade or prior knowledgeprotected voidHttp2ConnectionHandler.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) voidDecoratingHttp2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) voidDefaultHttp2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) voidHttp2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Called by theHttp2ConnectionHandlerto decode the next frame from the input buffer.DefaultHttp2HeadersDecoder.decodeHeaders(int streamId, ByteBuf headerBlock) Http2HeadersDecoder.decodeHeaders(int streamId, ByteBuf headerBlock) Decodes the given headers block and returns the headers.voidDefaultHttp2HeadersEncoder.encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) voidHttp2HeadersEncoder.encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) Encodes the given headers and writes the output headers block to the given output buffer.Http2ConnectionHandler.goAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) Http2LifecycleManager.goAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) Prevents the peer from creating streams and close the connection iferrorCodeis notHttp2Error.NO_ERROR.voidDefaultHttp2Connection.goAwayReceived(int lastKnownStream, long errorCode, ByteBuf debugData) voidHttp2Connection.goAwayReceived(int lastKnownStream, long errorCode, ByteBuf message) Indicates that aGOAWAYwas received from the remote endpoint and sets the last known stream.booleanDefaultHttp2Connection.goAwaySent(int lastKnownStream, long errorCode, ByteBuf debugData) booleanHttp2Connection.goAwaySent(int lastKnownStream, long errorCode, ByteBuf message) Updates the local state of thisHttp2Connectionas a result of aGOAWAYto send to the remote endpoint.voidHttp2FrameLogger.logData(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream) voidHttp2FrameLogger.logGoAway(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2FrameLogger.logUnknownFrame(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf data) protected Http2StreamFrameHttp2FrameCodec.newHttp2UnknownFrame(byte frameType, int streamId, Http2Flags flags, ByteBuf payload) Create a Http2UnknownFrame.intDelegatingDecompressorFrameListener.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intHttp2EventAdapter.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intHttp2FrameAdapter.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intHttp2FrameListener.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) Handles an inboundDATAframe.intHttp2FrameListenerDecorator.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intInboundHttp2ToHttpAdapter.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) voidHttp2EventAdapter.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2FrameAdapter.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2FrameListener.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) Handles an inboundGO_AWAYframe.voidHttp2FrameListenerDecorator.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2Connection.Listener.onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData) Called when aGOAWAYwas received from the remote endpoint.voidHttp2ConnectionAdapter.onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2EventAdapter.onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2Connection.Listener.onGoAwaySent(int lastStreamId, long errorCode, ByteBuf debugData) Called when aGOAWAYframe was sent for the connection.voidHttp2ConnectionAdapter.onGoAwaySent(int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2EventAdapter.onGoAwaySent(int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2EventAdapter.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) voidHttp2FrameAdapter.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) voidHttp2FrameListener.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) Handler for a frame not defined by the HTTP/2 spec.voidHttp2FrameListenerDecorator.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) voidDefaultHttp2FrameReader.readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) voidHttp2FrameReader.readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) Attempts to read the next frame from the input buffer.voidHttp2InboundFrameLogger.readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) static intHttp2CodecUtil.readUnsignedInt(ByteBuf buf) Reads a big-endian (31-bit) integer from the buffer.voidDefaultHttp2LocalFlowController.receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) voidHttp2LocalFlowController.receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) Receives an inboundDATAframe from the remote endpoint and applies flow control policies to it for both thestreamas well as the connection.static FullHttpRequestHttpConversionUtil.toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBuf content, boolean validateHttpHeaders) Create a new object to contain the request datastatic FullHttpResponseHttpConversionUtil.toFullHttpResponse(int streamId, Http2Headers http2Headers, ByteBuf content, boolean validateHttpHeaders) Create a new object to contain the response dataCompressorHttp2ConnectionEncoder.writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream, ChannelPromise promise) DecoratingHttp2FrameWriter.writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise) DefaultHttp2ConnectionEncoder.writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream, ChannelPromise promise) DefaultHttp2FrameWriter.writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise) Http2DataWriter.writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise) Writes aDATAframe to the remote endpoint.Http2OutboundFrameLogger.writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise) StreamBufferingEncoder.writeData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream, ChannelPromise promise) DecoratingHttp2FrameWriter.writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) DefaultHttp2ConnectionEncoder.writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) DefaultHttp2FrameWriter.writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) Http2ConnectionEncoder.writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) Writes the given data to the internalHttp2FrameWriterwithout performing any state checks on the connection/stream.Http2FrameWriter.writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) Generic write method for any HTTP/2 frame.Http2OutboundFrameLogger.writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) static voidHttp2CodecUtil.writeFrameHeader(ByteBuf out, int payloadLength, byte type, Http2Flags flags, int streamId) Writes an HTTP/2 frame header to the output buffer.DecoratingHttp2FrameWriter.writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) DefaultHttp2ConnectionEncoder.writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) DefaultHttp2FrameWriter.writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) Http2FrameWriter.writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) Writes a GO_AWAY frame to the remote endpoint.Http2OutboundFrameLogger.writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) Constructors in io.netty.handler.codec.http2 with parameters of type ByteBufModifierConstructorDescriptionDefaultHttp2DataFrame(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(long errorCode, ByteBuf content) Construct a new GOAWAY message.DefaultHttp2GoAwayFrame(Http2Error error, ByteBuf content) DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, ByteBuf data) Constructor parameters in io.netty.handler.codec.http2 with type arguments of type ByteBufModifierConstructorDescriptionHttp2DataChunkedInput(ChunkedInput<ByteBuf> input, Http2FrameStream stream) Creates a new instance using the specified input. -
Uses of ByteBuf in io.netty.handler.codec.http3
Methods in io.netty.handler.codec.http3 with parameters of type ByteBufModifier and TypeMethodDescriptionConstructors in io.netty.handler.codec.http3 with parameters of type ByteBufModifierConstructorDescriptionDefaultHttp3DataFrame(ByteBuf data) DefaultHttp3UnknownFrame(long type, ByteBuf payload) -
Uses of ByteBuf in io.netty.handler.codec.json
Methods in io.netty.handler.codec.json that return ByteBufModifier and TypeMethodDescriptionprotected ByteBufJsonObjectDecoder.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 ByteBufModifier and TypeMethodDescriptionprotected voidJsonObjectDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected ByteBufJsonObjectDecoder.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.marshalling
Methods in io.netty.handler.codec.marshalling that return ByteBufModifier and TypeMethodDescriptionprotected ByteBufMarshallingDecoder.extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) Methods in io.netty.handler.codec.marshalling with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidCompatibleMarshallingDecoder.decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) protected ObjectMarshallingDecoder.decode(ChannelHandlerContext ctx, ByteBuf in) protected voidCompatibleMarshallingDecoder.decodeLast(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) protected voidCompatibleMarshallingEncoder.encode(ChannelHandlerContext ctx, Object msg, ByteBuf out) protected voidMarshallingEncoder.encode(ChannelHandlerContext ctx, Object msg, ByteBuf out) protected ByteBufMarshallingDecoder.extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) -
Uses of ByteBuf in io.netty.handler.codec.memcache
Methods in io.netty.handler.codec.memcache that return ByteBufModifier and TypeMethodDescriptionDefaultMemcacheContent.content()protected abstract ByteBufAbstractMemcacheObjectEncoder.encodeMessage(ChannelHandlerContext ctx, M msg) Take the givenMemcacheMessageand encode it into a writableByteBuf.Methods in io.netty.handler.codec.memcache with parameters of type ByteBufModifier and TypeMethodDescriptionConstructors in io.netty.handler.codec.memcache with parameters of type ByteBufModifierConstructorDescriptionDefaultLastMemcacheContent(ByteBuf content) DefaultMemcacheContent(ByteBuf content) Creates a new instance with the specified content. -
Uses of ByteBuf in io.netty.handler.codec.memcache.binary
Methods in io.netty.handler.codec.memcache.binary that return ByteBufModifier and TypeMethodDescriptionDefaultFullBinaryMemcacheRequest.content()DefaultFullBinaryMemcacheResponse.content()protected ByteBufAbstractBinaryMemcacheEncoder.encodeMessage(ChannelHandlerContext ctx, M msg) AbstractBinaryMemcacheMessage.extras()BinaryMemcacheMessage.extras()Returns aByteBufrepresentation of the optional extras.AbstractBinaryMemcacheMessage.key()BinaryMemcacheMessage.key()Returns the optional key of the document.Methods in io.netty.handler.codec.memcache.binary with parameters of type ByteBufModifier and TypeMethodDescriptionprotected FullMemcacheMessageBinaryMemcacheObjectAggregator.beginAggregation(BinaryMemcacheMessage start, ByteBuf content) protected voidAbstractBinaryMemcacheDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected abstract MAbstractBinaryMemcacheDecoder.decodeHeader(ByteBuf in) Decode and return the parsedBinaryMemcacheMessage.protected BinaryMemcacheRequestBinaryMemcacheRequestDecoder.decodeHeader(ByteBuf in) protected BinaryMemcacheResponseBinaryMemcacheResponseDecoder.decodeHeader(ByteBuf in) protected abstract voidAbstractBinaryMemcacheEncoder.encodeHeader(ByteBuf buf, M msg) Encode the header.protected voidBinaryMemcacheRequestEncoder.encodeHeader(ByteBuf buf, BinaryMemcacheRequest msg) protected voidBinaryMemcacheResponseEncoder.encodeHeader(ByteBuf buf, BinaryMemcacheResponse msg) Sets the extras buffer on the message.Sets the key of the document.Constructors in io.netty.handler.codec.memcache.binary with parameters of type ByteBufModifierConstructorDescriptionprotectedAbstractBinaryMemcacheMessage(ByteBuf key, ByteBuf extras) Create a new instance with all properties set.Create a newDefaultBinaryMemcacheRequestwith the header and key.DefaultBinaryMemcacheRequest(ByteBuf key, ByteBuf extras) Create a newDefaultBinaryMemcacheRequestwith the header only.Create a newDefaultBinaryMemcacheResponsewith the header and key.DefaultBinaryMemcacheResponse(ByteBuf key, ByteBuf extras) Create a newDefaultBinaryMemcacheResponsewith the header, key and extras.DefaultFullBinaryMemcacheRequest(ByteBuf key, ByteBuf extras) Create a newDefaultBinaryMemcacheRequestwith the header, key and extras.DefaultFullBinaryMemcacheRequest(ByteBuf key, ByteBuf extras, ByteBuf content) Create a newDefaultBinaryMemcacheRequestwith the header, key, extras and content.DefaultFullBinaryMemcacheResponse(ByteBuf key, ByteBuf extras) Create a newDefaultFullBinaryMemcacheResponsewith the header, key and extras.DefaultFullBinaryMemcacheResponse(ByteBuf key, ByteBuf extras, ByteBuf content) Create a newDefaultFullBinaryMemcacheResponsewith the header, key, extras and content. -
Uses of ByteBuf in io.netty.handler.codec.mqtt
Methods in io.netty.handler.codec.mqtt that return ByteBufMethods in io.netty.handler.codec.mqtt with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidMqttDecoder.decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) Constructors in io.netty.handler.codec.mqtt with parameters of type ByteBufModifierConstructorDescriptionMqttPublishMessage(MqttFixedHeader mqttFixedHeader, MqttPublishVariableHeader variableHeader, ByteBuf payload) -
Uses of ByteBuf in io.netty.handler.codec.protobuf
Subclasses with type arguments of type ByteBuf in io.netty.handler.codec.protobufModifier and TypeClassDescriptionclassclassclassAn encoder that prepends the Google Protocol Buffers Base 128 Varints integer length field.Methods in io.netty.handler.codec.protobuf with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidProtobufDecoder.decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) protected voidProtobufDecoderNano.decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) protected voidProtobufVarint32FrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidProtobufVarint32LengthFieldPrepender.encode(ChannelHandlerContext ctx, ByteBuf msg, ByteBuf out) -
Uses of ByteBuf in io.netty.handler.codec.quic
Methods in io.netty.handler.codec.quic with parameters of type ByteBufModifier and TypeMethodDescriptiondefault ChannelFutureClose theQuicChannelQuicChannel.close(boolean applicationClose, int error, ByteBuf reason, ChannelPromise promise) Close theQuicChannelprotected intQuicCodecDispatcher.decodeIndex(ByteBuf connectionId) Return the idx that was encoded into the connectionId via theQuicConnectionIdGeneratorbefore, or-1if decoding was not successful.SegmentedDatagramPacketAllocator.newPacket(ByteBuf buffer, int segmentSize, InetSocketAddress remoteAddress) Return a new segmentedDatagramPacket.voidQuicHeaderParser.parse(InetSocketAddress sender, InetSocketAddress recipient, ByteBuf packet, QuicHeaderParser.QuicHeaderProcessor callback) Parses a QUIC packet and extract the header values out of it.voidQuicHeaderParser.QuicHeaderProcessor.process(InetSocketAddress sender, InetSocketAddress recipient, ByteBuf packet, QuicPacketType type, long version, ByteBuf scid, ByteBuf dcid, ByteBuf token) Called when a QUIC packet header was parsed.intInsecureQuicTokenHandler.validateToken(ByteBuf token, InetSocketAddress address) intQuicTokenHandler.validateToken(ByteBuf token, InetSocketAddress address) Validate the token and return the offset,-1is returned if the token is not valid.booleanInsecureQuicTokenHandler.writeToken(ByteBuf out, ByteBuf dcid, InetSocketAddress address) booleanQuicTokenHandler.writeToken(ByteBuf out, ByteBuf dcid, InetSocketAddress address) Generate a new token for the given destination connection id and address.Constructors in io.netty.handler.codec.quic with parameters of type ByteBuf -
Uses of ByteBuf in io.netty.handler.codec.redis
Methods in io.netty.handler.codec.redis with parameters of type ByteBufModifier and TypeMethodDescriptionprotected FullBulkStringRedisMessageRedisBulkStringAggregator.beginAggregation(BulkStringHeaderRedisMessage start, ByteBuf content) protected voidRedisDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) ReturnsErrorRedisMessagefor givencontent.FixedRedisMessagePool.getInteger(ByteBuf content) RedisMessagePool.getInteger(ByteBuf content) ReturnsIntegerRedisMessagefor givencontent.FixedRedisMessagePool.getSimpleString(ByteBuf content) RedisMessagePool.getSimpleString(ByteBuf content) ReturnsSimpleStringRedisMessagefor givencontent.static RedisMessageTypeDetermineRedisMessageTypebased on the type prefixbyteread from given the buffer.voidWrite the message type's prefix to the given buffer.Constructors in io.netty.handler.codec.redis with parameters of type ByteBufModifierConstructorDescriptionDefaultBulkStringRedisContent(ByteBuf content) Creates aDefaultBulkStringRedisContentfor the givencontent.DefaultLastBulkStringRedisContent(ByteBuf content) Creates aDefaultLastBulkStringRedisContentfor the givencontent.FullBulkStringRedisMessage(ByteBuf content) Creates aFullBulkStringRedisMessagefor the givencontent. -
Uses of ByteBuf in io.netty.handler.codec.rtsp
Methods in io.netty.handler.codec.rtsp with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidRtspEncoder.encodeInitialLine(ByteBuf buf, HttpMessage message) -
Uses of ByteBuf in io.netty.handler.codec.sctp
Subclasses with type arguments of type ByteBuf in io.netty.handler.codec.sctpModifier and TypeClassDescriptionclassA ChannelHandler which transformByteBuftoSctpMessageand send it through a specific stream with given protocol identifier.Methods in io.netty.handler.codec.sctp with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidSctpOutboundByteStreamHandler.encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) -
Uses of ByteBuf in io.netty.handler.codec.serialization
Methods in io.netty.handler.codec.serialization with parameters of type ByteBufModifier and TypeMethodDescriptionprotected ObjectObjectDecoder.decode(ChannelHandlerContext ctx, ByteBuf in) Deprecated.protected voidCompatibleObjectEncoder.encode(ChannelHandlerContext ctx, Serializable msg, ByteBuf out) Deprecated.protected voidObjectEncoder.encode(ChannelHandlerContext ctx, Serializable msg, ByteBuf out) Deprecated. -
Uses of ByteBuf in io.netty.handler.codec.smtp
Methods in io.netty.handler.codec.smtp with parameters of type ByteBufModifier and TypeMethodDescriptionprotected SmtpResponseSmtpResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf buffer) Constructors in io.netty.handler.codec.smtp with parameters of type ByteBufModifierConstructorDescriptionCreates 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 ByteBufModifier and TypeMethodDescriptionprotected voidSocksAuthRequestDecoder.decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List<Object> out) protected voidSocksAuthResponseDecoder.decode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, List<Object> out) protected voidSocksCmdRequestDecoder.decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List<Object> out) protected voidSocksCmdResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List<Object> out) protected voidSocksInitRequestDecoder.decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List<Object> out) protected voidSocksInitResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List<Object> out) protected voidSocksMessageEncoder.encode(ChannelHandlerContext ctx, SocksMessage msg, ByteBuf out) voidSocksAuthRequest.encodeAsByteBuf(ByteBuf byteBuf) voidSocksAuthResponse.encodeAsByteBuf(ByteBuf byteBuf) voidSocksCmdRequest.encodeAsByteBuf(ByteBuf byteBuf) voidSocksCmdResponse.encodeAsByteBuf(ByteBuf byteBuf) voidSocksInitRequest.encodeAsByteBuf(ByteBuf byteBuf) voidSocksInitResponse.encodeAsByteBuf(ByteBuf byteBuf) abstract voidSocksMessage.encodeAsByteBuf(ByteBuf byteBuf) Deprecated.Do not use; this method was intended for an internal use only.voidUnknownSocksRequest.encodeAsByteBuf(ByteBuf byteBuf) voidUnknownSocksResponse.encodeAsByteBuf(ByteBuf byteBuf) -
Uses of ByteBuf in io.netty.handler.codec.socksx
Methods in io.netty.handler.codec.socksx with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidSocksPortUnificationServerHandler.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) -
Uses of ByteBuf in io.netty.handler.codec.socksx.v4
Methods in io.netty.handler.codec.socksx.v4 with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidSocks4ClientDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks4ServerDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks4ClientEncoder.encode(ChannelHandlerContext ctx, Socks4CommandRequest msg, ByteBuf out) protected voidSocks4ServerEncoder.encode(ChannelHandlerContext ctx, Socks4CommandResponse msg, ByteBuf out) -
Uses of ByteBuf in io.netty.handler.codec.socksx.v5
Methods in io.netty.handler.codec.socksx.v5 with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidSocks5CommandRequestDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks5CommandResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks5InitialRequestDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks5InitialResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks5PasswordAuthRequestDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks5PasswordAuthResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks5PrivateAuthRequestDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSocks5PrivateAuthResponseDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Socks5AddressDecoder.decodeAddress(Socks5AddressType addrType, ByteBuf in) Decodes a SOCKS5 address field into its string representation.protected voidSocks5ClientEncoder.encode(ChannelHandlerContext ctx, Socks5Message msg, ByteBuf out) protected voidSocks5ServerEncoder.encode(ChannelHandlerContext ctx, Socks5Message msg, ByteBuf out) voidSocks5AddressEncoder.encodeAddress(Socks5AddressType addrType, String addrValue, ByteBuf out) Encodes a SOCKS5 address. -
Uses of ByteBuf in io.netty.handler.codec.spdy
Methods in io.netty.handler.codec.spdy that return ByteBufModifier and TypeMethodDescriptionDefaultSpdyDataFrame.content()SpdyDataFrame.content()Returns the data payload of this frame.SpdyHeaderBlockRawEncoder.encode(ByteBufAllocator alloc, SpdyHeadersFrame frame) SpdyFrameEncoder.encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data) SpdyFrameEncoder.encodeGoAwayFrame(ByteBufAllocator allocator, int lastGoodStreamId, int statusCode) SpdyFrameEncoder.encodeHeadersFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) SpdyFrameEncoder.encodePingFrame(ByteBufAllocator allocator, int id) SpdyFrameEncoder.encodeRstStreamFrame(ByteBufAllocator allocator, int streamId, int statusCode) SpdyFrameEncoder.encodeSettingsFrame(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame) SpdyFrameEncoder.encodeSynReplyFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) SpdyFrameEncoder.encodeSynStreamFrame(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock) SpdyFrameEncoder.encodeUnknownFrame(ByteBufAllocator allocator, int frameType, byte flags, ByteBuf data) SpdyFrameEncoder.encodeWindowUpdateFrame(ByteBufAllocator allocator, int streamId, int deltaWindowSize) Methods in io.netty.handler.codec.spdy with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidSpdyFrameCodec.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) voidprotected voidSpdyHeaderBlockRawDecoder.decodeHeaderBlock(ByteBuf headerBlock, SpdyHeadersFrame frame) protected booleanSpdyFrameDecoder.decodeUnknownFrame(int frameType, byte flags, int length, ByteBuf buffer) Decode the unknown frame, returns true if parsed something, otherwise false.SpdyFrameEncoder.encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data) SpdyFrameEncoder.encodeHeadersFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) SpdyFrameEncoder.encodeSynReplyFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) SpdyFrameEncoder.encodeSynStreamFrame(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock) SpdyFrameEncoder.encodeUnknownFrame(ByteBufAllocator allocator, int frameType, byte flags, ByteBuf data) protected SpdyFrameSpdyFrameCodec.newSpdyUnknownFrame(int frameType, byte flags, ByteBuf payload) Create a SpdyUnknownFrame.voidSpdyFrameCodec.readDataFrame(int streamId, boolean last, ByteBuf data) voidSpdyFrameDecoderDelegate.readDataFrame(int streamId, boolean last, ByteBuf data) Called when a DATA frame is received.voidSpdyFrameCodec.readHeaderBlock(ByteBuf headerBlock) voidSpdyFrameDecoderDelegate.readHeaderBlock(ByteBuf headerBlock) Called when the header block within a SYN_STREAM, SYN_REPLY, or HEADERS frame is received.voidSpdyFrameCodec.readUnknownFrame(int frameType, byte flags, ByteBuf payload) default voidSpdyFrameDecoderDelegate.readUnknownFrame(int frameType, byte flags, ByteBuf payload) Called when an unknown frame is received.protected voidSpdyFrameEncoder.writeControlFrameHeader(ByteBuf buffer, int type, byte flags, int length) Constructors in io.netty.handler.codec.spdy with parameters of type ByteBufModifierConstructorDescriptionDefaultSpdyDataFrame(int streamId, ByteBuf data) Creates a new instance.DefaultSpdyUnknownFrame(int frameType, byte flags, ByteBuf data) -
Uses of ByteBuf in io.netty.handler.codec.stomp
Methods in io.netty.handler.codec.stomp that return ByteBufMethods in io.netty.handler.codec.stomp with parameters of type ByteBufModifier and TypeMethodDescriptionprotected StompFrameStompSubframeAggregator.beginAggregation(StompHeadersSubframe start, ByteBuf content) protected ObjectStompSubframeEncoder.convertContentSubFrame(StompContentSubframe original, ByteBuf encoded) An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframecontent sub frame.protected ObjectStompSubframeEncoder.convertFullFrame(StompFrame original, ByteBuf encoded) An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompFramefull frame.protected ObjectStompSubframeEncoder.convertHeadersSubFrame(StompHeadersSubframe original, ByteBuf encoded) An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframeheaders sub frame.protected voidStompSubframeDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Constructors in io.netty.handler.codec.stomp with parameters of type ByteBufModifierConstructorDescriptionDefaultLastStompContentSubframe(ByteBuf content) DefaultStompContentSubframe(ByteBuf content) DefaultStompFrame(StompCommand command, ByteBuf content) -
Uses of ByteBuf in io.netty.handler.codec.string
Subclasses with type arguments of type ByteBuf in io.netty.handler.codec.stringMethods in io.netty.handler.codec.string with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidStringDecoder.decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) -
Uses of ByteBuf in io.netty.handler.codec.xml
Methods in io.netty.handler.codec.xml with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidXmlDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidXmlFrameDecoder.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) -
Uses of ByteBuf in io.netty.handler.ssl
Methods in io.netty.handler.ssl that return ByteBufMethods in io.netty.handler.ssl with parameters of type ByteBufModifier and TypeMethodDescriptionprotected voidOptionalSslHandler.decode(ChannelHandlerContext context, ByteBuf in, List<Object> out) protected voidSslClientHelloHandler.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) protected voidSslHandler.decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) static booleanSslHandler.isEncrypted(ByteBuf buffer) Deprecated.static booleanSslHandler.isEncrypted(ByteBuf buffer, boolean probeSSLv2) Returnstrueif the givenByteBufis encrypted.AbstractSniHandler.lookup(ChannelHandlerContext ctx, ByteBuf clientHello) SslClientHelloHandler.lookup(ChannelHandlerContext ctx, ByteBuf clientHello) Kicks off a lookup for the givenClientHelloand returns aFuturewhich in turn will notify theSslClientHelloHandler.onLookupComplete(ChannelHandlerContext, Future)on completion.static PemPrivateKeyCreates aPemPrivateKeyfrom rawByteBuf.static PemX509CertificateCreates aPemX509Certificatefrom rawByteBuf. -
Uses of ByteBuf in io.netty.handler.stream
Classes in io.netty.handler.stream that implement interfaces with type arguments of type ByteBufModifier and TypeClassDescriptionclassAChunkedInputthat fetches data from a file chunk by chunk.classAChunkedInputthat fetches data from a file chunk by chunk using NIOFileChannel.classAChunkedInputthat fetches data from aReadableByteChannelchunk by chunk.classAChunkedInputthat fetches data from anInputStreamchunk by chunk.Methods in io.netty.handler.stream that return ByteBufModifier and TypeMethodDescriptionChunkedFile.readChunk(ByteBufAllocator allocator) ChunkedFile.readChunk(ChannelHandlerContext ctx) Deprecated.ChunkedNioFile.readChunk(ByteBufAllocator allocator) ChunkedNioFile.readChunk(ChannelHandlerContext ctx) Deprecated.ChunkedNioStream.readChunk(ByteBufAllocator allocator) ChunkedNioStream.readChunk(ChannelHandlerContext ctx) Deprecated.ChunkedStream.readChunk(ByteBufAllocator allocator) ChunkedStream.readChunk(ChannelHandlerContext ctx) Deprecated.