Uses of Interface
io.netty5.buffer.api.Buffer
-
Packages that use Buffer Package Description io.netty5.buffer Abstraction of a byte buffer - the fundamental data structure to represent a low-level binary and text message.io.netty5.buffer.api IncubatingBuffer
API, as a proposed alternative toByteBuf
.io.netty5.buffer.api.bytebuffer Safe ByteBuffer based implementation.io.netty5.buffer.api.internal Internal implementation details that can be shared among Buffer implementations.io.netty5.buffer.api.pool A poolingBufferAllocator
implementation based on jemalloc.io.netty5.buffer.api.unsafe ABuffer
implementation that is based onsun.misc.Unsafe
.io.netty5.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty5.channel.nio NIO-based channel API implementation - recommended for a large number of connections (>= 1000).io.netty5.channel.socket Abstract TCP and UDP socket interfaces which extend the core channel API.io.netty5.channel.socket.nio NIO-based socket channel API implementation - recommended for a large number of connections (>= 1000).io.netty5.channel.unix Unix specific transport.io.netty5.handler.codec Extensible decoder and its common implementations which deal with the packet fragmentation and reassembly issue found in a stream-based transport such as TCP/IP.io.netty5.handler.codec.base64 io.netty5.handler.codec.bytes Encoder and decoder which transform an array of bytes into aio.netty5.buffer.ByteBuf
and vice versa.io.netty5.handler.codec.compression io.netty5.handler.codec.dns DNS codec.io.netty5.handler.codec.http Encoder, decoder and their related message types for HTTP.io.netty5.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty5.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty5.handler.codec.rtsp An RTSP extension based on the HTTP codec.io.netty5.handler.codec.string Encoder and decoder which transform aString
into aio.netty5.buffer.ByteBuf
and vice versa.io.netty5.handler.ssl io.netty5.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError
. -
-
Uses of Buffer in io.netty5.buffer
Methods in io.netty5.buffer that return Buffer Modifier and Type Method Description Buffer
BufferOutputStream. buffer()
Returns the buffer where this stream is writing data.static Buffer
BufferUtil. threadLocalDirectBuffer()
Returns a cached thread-local direct buffer, if available.static Buffer
BufferUtil. writeAscii(BufferAllocator alloc, CharSequence seq)
Methods in io.netty5.buffer with parameters of type Buffer Modifier and Type Method Description static void
BufferUtil. appendPrettyHexDump(StringBuilder dump, Buffer buf)
Appends the prettified multi-line hexadecimal dump of the specifiedBuffer
to the specifiedStringBuilder
that is easy to read by humans.static void
BufferUtil. appendPrettyHexDump(StringBuilder dump, Buffer buf, int offset, int length)
Appends the prettified multi-line hexadecimal dump of the specifiedBuffer
to the specifiedStringBuilder
that is easy to read by humans, starting at the givenoffset
using the givenlength
.static boolean
BufferUtil. equals(Buffer first, int firstReaderOffset, Buffer second, int secondReaderOffset, int length)
Returnstrue
if and only if the two specified buffers are identical to each other forlength
bytes starting atfirstReaderOffset
index for thefirst
buffer andsecondReaderOffset
index for thesecond
buffer.static byte[]
BufferUtil. getBytes(Buffer buf)
Create a copy of the underlying storage frombuf
into a byte array.static byte[]
BufferUtil. getBytes(Buffer buf, int start, int length)
Create a copy of the underlying storage frombuf
into a byte array.static String
BufferUtil. hexDump(Buffer buffer)
Returns a hex dump of the specified buffer's readable bytes.static String
BufferUtil. hexDump(Buffer buffer, int fromIndex, int length)
Returns a hex dump of the specified buffer's sub-region.Constructors in io.netty5.buffer with parameters of type Buffer Constructor Description BufferOutputStream(Buffer buffer)
Creates a new stream which writes data to the specifiedbuffer
.Constructor parameters in io.netty5.buffer with type arguments of type Buffer Constructor Description BufferInputStream(Send<Buffer> buffer)
Creates a new stream which reads data from the specifiedbuffer
starting at the currentreaderOffset
and ending at the currentwriterOffset
. -
Uses of Buffer in io.netty5.buffer.api
Subinterfaces of Buffer in io.netty5.buffer.api Modifier and Type Interface Description interface
CompositeBuffer
TheCompositeBuffer
is a concreteBuffer
implementation that make a number of other buffers appear as one.Classes in io.netty5.buffer.api that implement Buffer Modifier and Type Class Description class
BufferStub
A stub of aBuffer
implementation that implements all buffer methods by delegating them to a wrapped buffer instance.Fields in io.netty5.buffer.api declared as Buffer Modifier and Type Field Description protected Buffer
BufferStub. delegate
Methods in io.netty5.buffer.api that return Buffer Modifier and Type Method Description Buffer
BufferAllocator. allocate(int size)
Allocate aBuffer
of the given size in bytes.Buffer
SensitiveBufferAllocator. allocate(int size)
Buffer
MemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Allocates a constant buffer based on the given parent.Buffer
MemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Allocates a shared buffer.Buffer
Buffer. compact()
Discards the read bytes, and moves the buffer contents to the beginning of the buffer.Buffer
BufferStub. compact()
Buffer
BufferRef. content()
Access the buffer in this reference.default Buffer
Buffer. copy()
Returns a copy of this buffer's readable bytes.default Buffer
Buffer. copy(boolean readOnly)
Returns a copy of this buffer's readable bytes, with the given read-only setting.default Buffer
Buffer. copy(int offset, int length)
Returns a copy of the given region of this buffer.Buffer
Buffer. copy(int offset, int length, boolean readOnly)
Returns a copy of the given region of this buffer.Buffer
BufferStub. copy()
Buffer
BufferStub. copy(boolean readOnly)
Buffer
BufferStub. copy(int offset, int length)
Buffer
BufferStub. copy(int offset, int length, boolean readOnly)
default Buffer
BufferAllocator. copyOf(byte[] bytes)
Allocate aBuffer
with the same size and contents of the given byte array.default Buffer
BufferAllocator. copyOf(String str, Charset charset)
default Buffer
BufferAllocator. copyOf(ByteBuffer buffer)
Allocate aBuffer
with the same size and contents, as the contents of the givenByteBuffer
.Buffer[]
CompositeBuffer. decomposeBuffer()
Break a composite buffer into its constituent components.default Buffer
Buffer. ensureWritable(int size)
Ensures that this buffer has at least the given number of bytes of available space for writing.Buffer
Buffer. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)
Ensures that this buffer has at least the given number of bytes of available space for writing.Buffer
BufferStub. ensureWritable(int size)
Buffer
BufferStub. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)
Buffer
Buffer. fill(byte value)
Fills the buffer with the given byte value.Buffer
BufferStub. fill(byte value)
protected Buffer
BufferHolder. getBuffer()
Access the heldBuffer
instance.protected Buffer
BufferHolder. getBufferVolatile()
Access the heldBuffer
instance.Buffer
Buffer. implicitCapacityLimit(int limit)
Set an upper limit to the implicit capacity growth.Buffer
BufferStub. implicitCapacityLimit(int limit)
Buffer
Buffer. makeReadOnly()
Makes this buffer read-only.Buffer
BufferStub. makeReadOnly()
default Buffer
Buffer. readBytes(byte[] destination, int destPos, int length)
Read from this buffer, into the destination array, the given number of bytes.default Buffer
Buffer. readBytes(ByteBuffer destination)
Read from this buffer, into the destinationByteBuffer
This updates the read offset of this buffer and also the position of the destinationByteBuffer
.Buffer
BufferStub. readBytes(byte[] destination, int destPos, int length)
Buffer
BufferStub. readBytes(ByteBuffer destination)
Buffer
Buffer. readerOffset(int offset)
Set the reader offset.Buffer
BufferStub. readerOffset(int offset)
default Buffer
Buffer. readSplit(int length)
Splits the buffer into two, atlength
number of bytes from the current readerOffset() reader offset} position.Buffer
BufferStub. readSplit(int length)
Buffer
MemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Recover the memory from a priorMemoryManager.unwrapRecoverableMemory(Buffer)
call, and wrap it in aBuffer
instance.default Buffer
Buffer. resetOffsets()
Resets the read offset and the write offset on this buffer to zero, and return this buffer.Buffer
BufferStub. resetOffsets()
default Buffer
BufferAccessor. setBoolean(int woff, boolean value)
Set the given boolean value at the given write offset.Buffer
BufferStub. setBoolean(int woff, boolean value)
Buffer
BufferAccessor. setByte(int woff, byte value)
Set the given byte value at the given write offset.Buffer
BufferStub. setByte(int woff, byte value)
Buffer
BufferAccessor. setChar(int woff, char value)
Set the given char value at the given write offset.Buffer
BufferStub. setChar(int woff, char value)
Buffer
BufferAccessor. setDouble(int woff, double value)
Set the given double value at the given write offset.Buffer
BufferStub. setDouble(int woff, double value)
Buffer
BufferAccessor. setFloat(int woff, float value)
Set the given float value at the given write offset.Buffer
BufferStub. setFloat(int woff, float value)
Buffer
BufferAccessor. setInt(int woff, int value)
Set the given int value at the given write offset.Buffer
BufferStub. setInt(int woff, int value)
Buffer
BufferAccessor. setLong(int woff, long value)
Set the given long value at the given write offset.Buffer
BufferStub. setLong(int woff, long value)
Buffer
BufferAccessor. setMedium(int woff, int value)
Set the given int value at the given write offset.Buffer
BufferStub. setMedium(int woff, int value)
Buffer
BufferAccessor. setShort(int woff, short value)
Set the given short value at the given write offset.Buffer
BufferStub. setShort(int woff, short value)
Buffer
BufferAccessor. setUnsignedByte(int woff, int value)
Set the given unsigned byte value at the given write offset.Buffer
BufferStub. setUnsignedByte(int woff, int value)
Buffer
BufferAccessor. setUnsignedInt(int woff, long value)
Set the given unsigned int value at the given write offset.Buffer
BufferStub. setUnsignedInt(int woff, long value)
Buffer
BufferAccessor. setUnsignedMedium(int woff, int value)
Set the given unsigned int value at the given write offset.Buffer
BufferStub. setUnsignedMedium(int woff, int value)
Buffer
BufferAccessor. setUnsignedShort(int woff, int value)
Set the given unsigned short value at the given write offset.Buffer
BufferStub. setUnsignedShort(int woff, int value)
default Buffer
Buffer. skipReadableBytes(int delta)
Move the reader offset forward by the given delta.Buffer
BufferStub. skipReadableBytes(int delta)
default Buffer
Buffer. skipWritableBytes(int delta)
Move the writer offset to ahead by the given delta.Buffer
BufferStub. skipWritableBytes(int delta)
default Buffer
Buffer. split()
Splits the buffer into two, at the write offset position.Buffer
Buffer. split(int splitOffset)
Splits the buffer into two, at the givensplitOffset
.Buffer
BufferStub. split()
Buffer
BufferStub. split(int splitOffset)
Buffer
BufferStub. touch(Object hint)
static Buffer
MemoryManager. unsafeWrap(byte[] array)
Create a new on-heapBuffer
instance that directly wraps the given array.default Buffer
BufferAccessor. writeBoolean(boolean value)
Write the given boolean value at the currentwriterOffset()
, and increase the writer offset byByte.BYTES
.Buffer
BufferStub. writeBoolean(boolean value)
Buffer
BufferAccessor. writeByte(byte value)
Write the given byte value at the currentwriterOffset()
, and increase the writer offset byByte.BYTES
.Buffer
BufferStub. writeByte(byte value)
default Buffer
Buffer. writeBytes(byte[] source)
Writes into this buffer, all the bytes from the given byte array.default Buffer
Buffer. writeBytes(byte[] source, int srcPos, int length)
Writes into this buffer, the given number of bytes from the byte array.default Buffer
Buffer. writeBytes(Buffer source)
Writes into this buffer, all the readable bytes from the given buffer.default Buffer
Buffer. writeBytes(ByteBuffer source)
Writes into this buffer from the sourceByteBuffer
.Buffer
BufferStub. writeBytes(byte[] source)
Buffer
BufferStub. writeBytes(byte[] source, int srcPos, int length)
Buffer
BufferStub. writeBytes(Buffer source)
Buffer
BufferStub. writeBytes(ByteBuffer source)
Buffer
BufferAccessor. writeChar(char value)
Write the given char value at the currentwriterOffset()
, and increase the writer offset by 2.Buffer
BufferStub. writeChar(char value)
default Buffer
Buffer. writeCharSequence(CharSequence source, Charset charset)
Writes into this buffer, all the bytes from the givensource
using the passedcharset
.Buffer
BufferStub. writeCharSequence(CharSequence source, Charset charset)
Buffer
BufferAccessor. writeDouble(double value)
Write the given double value at the currentwriterOffset()
, and increase the writer offset byDouble.BYTES
.Buffer
BufferStub. writeDouble(double value)
Buffer
BufferAccessor. writeFloat(float value)
Write the given float value at the currentwriterOffset()
, and increase the writer offset byFloat.BYTES
.Buffer
BufferStub. writeFloat(float value)
Buffer
BufferAccessor. writeInt(int value)
Write the given int value at the currentwriterOffset()
, and increase the writer offset byInteger.BYTES
.Buffer
BufferStub. writeInt(int value)
Buffer
BufferAccessor. writeLong(long value)
Write the given long value at the currentwriterOffset()
, and increase the writer offset byLong.BYTES
.Buffer
BufferStub. writeLong(long value)
Buffer
BufferAccessor. writeMedium(int value)
Write the given int value at the currentwriterOffset()
, and increase the writer offset by 3.Buffer
BufferStub. writeMedium(int value)
Buffer
Buffer. writerOffset(int offset)
Set the writer offset.Buffer
BufferStub. writerOffset(int offset)
Buffer
BufferAccessor. writeShort(short value)
Write the given short value at the currentwriterOffset()
, and increase the writer offset byShort.BYTES
.Buffer
BufferStub. writeShort(short value)
default Buffer
Buffer. writeSplit(int length)
Splits the buffer into two, atlength
number of bytes from the current writerOffset() writer offset} position.Buffer
BufferStub. writeSplit(int length)
Buffer
BufferAccessor. writeUnsignedByte(int value)
Write the given unsigned byte value at the currentwriterOffset()
, and increase the writer offset byByte.BYTES
.Buffer
BufferStub. writeUnsignedByte(int value)
Buffer
BufferAccessor. writeUnsignedInt(long value)
Write the given unsigned int value at the currentwriterOffset()
, and increase the writer offset byInteger.BYTES
.Buffer
BufferStub. writeUnsignedInt(long value)
Buffer
BufferAccessor. writeUnsignedMedium(int value)
Write the given unsigned int value at the currentwriterOffset()
, and increase the writer offset by 3.Buffer
BufferStub. writeUnsignedMedium(int value)
Buffer
BufferAccessor. writeUnsignedShort(int value)
Write the given unsigned short value at the currentwriterOffset()
, and increase the writer offset byShort.BYTES
.Buffer
BufferStub. writeUnsignedShort(int value)
Methods in io.netty5.buffer.api that return types with arguments of type Buffer Modifier and Type Method Description Supplier<Buffer>
BufferAllocator. constBufferSupplier(byte[] bytes)
Create a supplier of "constant" Buffers from this allocator, that all have the given byte contents.Supplier<Buffer>
SensitiveBufferAllocator. constBufferSupplier(byte[] bytes)
Send<Buffer>
BufferStub. send()
Methods in io.netty5.buffer.api with parameters of type Buffer Modifier and Type Method Description Buffer
MemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Allocates a constant buffer based on the given parent.int
Buffer. bytesBefore(Buffer needle)
Get the number of readable bytes, until the givenneedle
is found in this buffer.int
BufferStub. bytesBefore(Buffer needle)
void
Buffer. copyInto(int srcPos, Buffer dest, int destPos, int length)
Copies the given length of data from this buffer into the given destination buffer, beginning at the given source position in this buffer, and the given destination position in the destination buffer.void
BufferStub. copyInto(int srcPos, Buffer dest, int destPos, int length)
static boolean
CompositeBuffer. isComposite(Buffer composite)
Check if the given buffer is a composite buffer or not.protected abstract T
BufferHolder. receive(Buffer buf)
Called when a sentBufferHolder
is received by the recipient.protected BufferRef
BufferRef. receive(Buffer buf)
Object
MemoryManager. unwrapRecoverableMemory(Buffer buf)
Create an object that represents the internal memory of the given buffer.default Buffer
Buffer. writeBytes(Buffer source)
Writes into this buffer, all the readable bytes from the given buffer.Buffer
BufferStub. writeBytes(Buffer source)
default CompositeBuffer
CompositeBuffer. writeBytes(Buffer source)
Method parameters in io.netty5.buffer.api with type arguments of type Buffer Modifier and Type Method Description Buffer
MemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Allocates a shared buffer.Buffer
MemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Allocates a shared buffer.default CompositeBuffer
BufferAllocator. compose(Send<Buffer> send)
Compose the send of a buffer and present them as a single buffer.default CompositeBuffer
BufferAllocator. compose(Iterable<Send<Buffer>> sends)
Compose the given sequence of sends of buffers and present them as a single buffer.CompositeBuffer
CompositeBuffer. extendWith(Send<Buffer> extension)
Extend this composite buffer with the given extension buffer.Buffer
MemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Recover the memory from a priorMemoryManager.unwrapRecoverableMemory(Buffer)
call, and wrap it in aBuffer
instance.void
BufferRef. replace(Send<Buffer> send)
Replace the underlying referenced buffer with the given buffer.protected void
BufferHolder. replaceBuffer(Send<Buffer> send)
Replace the underlying referenced buffer with the given buffer.protected void
BufferHolder. replaceBufferVolatile(Send<Buffer> send)
Replace the underlying referenced buffer with the given buffer.Constructors in io.netty5.buffer.api with parameters of type Buffer Constructor Description BufferHolder(Buffer buf)
Create a newBufferHolder
to hold the given buffer.BufferStub(Buffer delegate)
Create a new buffer stub that delegates all calls to the given instance.Constructor parameters in io.netty5.buffer.api with type arguments of type Buffer Constructor Description BufferHolder(Send<Buffer> send)
BufferRef(Send<Buffer> send)
Create a reference that holds the exclusive ownership of the sent buffer. -
Uses of Buffer in io.netty5.buffer.api.bytebuffer
Methods in io.netty5.buffer.api.bytebuffer that return Buffer Modifier and Type Method Description Buffer
ByteBufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Buffer
ByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufferMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Methods in io.netty5.buffer.api.bytebuffer with parameters of type Buffer Modifier and Type Method Description Buffer
ByteBufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Object
ByteBufferMemoryManager. unwrapRecoverableMemory(Buffer buf)
Method parameters in io.netty5.buffer.api.bytebuffer with type arguments of type Buffer Modifier and Type Method Description Buffer
ByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufferMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
-
Uses of Buffer in io.netty5.buffer.api.internal
Classes in io.netty5.buffer.api.internal with type parameters of type Buffer Modifier and Type Class Description class
AdaptableBuffer<T extends ResourceSupport<Buffer,T>>
class
CleanerDrop<T extends Buffer>
A drop implementation that delegates to another drop instance, either when called directly, or when it becomes cleanable.Classes in io.netty5.buffer.api.internal that implement Buffer Modifier and Type Class Description class
AdaptableBuffer<T extends ResourceSupport<Buffer,T>>
Fields in io.netty5.buffer.api.internal with type parameters of type Buffer Modifier and Type Field Description static Drop<Buffer>
Statics. NO_OP_DROP
Methods in io.netty5.buffer.api.internal with type parameters of type Buffer Modifier and Type Method Description static <T extends Buffer>
Drop<T>CleanerDrop. wrap(Drop<T> drop, MemoryManager manager)
Wrap the given drop instance, and produce a new drop instance that will also call the delegate drop instance if it becomes cleanable.Methods in io.netty5.buffer.api.internal that return types with arguments of type Buffer Modifier and Type Method Description static Function<Drop<Buffer>,Drop<Buffer>>
Statics. standardDrop(MemoryManager manager)
static Function<Drop<Buffer>,Drop<Buffer>>
Statics. standardDrop(MemoryManager manager)
Methods in io.netty5.buffer.api.internal with parameters of type Buffer Modifier and Type Method Description static BufferClosedException
Statics. bufferIsClosed(Buffer buffer)
static BufferReadOnlyException
Statics. bufferIsReadOnly(Buffer buffer)
static int
Statics. bytesBefore(Buffer haystack, Statics.UncheckedLoadByte hl, Buffer needle, Statics.UncheckedLoadByte nl)
static CharSequence
Statics. copyToCharSequence(Buffer source, int srcIdx, int length, Charset charset)
static void
Statics. copyToViaReverseLoop(Buffer src, int srcPos, Buffer dest, int destPos, int length)
static boolean
Statics. equals(Buffer a, int aStartIndex, Buffer b, int bStartIndex, int length)
static boolean
Statics. equals(Buffer bufferA, Buffer bufferB)
static int
Statics. hashCode(Buffer buffer)
byte
Statics.UncheckedLoadByte. load(Buffer buffer, int offset)
static CharSequence
Statics. readCharSequence(Buffer source, int length, Charset charset)
static String
Statics. toString(Buffer source, Charset charset)
static void
Statics. writeCharSequence(CharSequence source, Buffer destination, Charset charset)
-
Uses of Buffer in io.netty5.buffer.api.pool
Methods in io.netty5.buffer.api.pool with type parameters of type Buffer Modifier and Type Method Description <BufferType extends Buffer>
Drop<BufferType>UntetheredMemory. drop()
Produces the drop instance associated with this piece of untethered memory.Methods in io.netty5.buffer.api.pool that return Buffer Modifier and Type Method Description Buffer
PooledBufferAllocator. allocate(int size)
Methods in io.netty5.buffer.api.pool that return types with arguments of type Buffer Modifier and Type Method Description Supplier<Buffer>
PooledBufferAllocator. constBufferSupplier(byte[] bytes)
-
Uses of Buffer in io.netty5.buffer.api.unsafe
Methods in io.netty5.buffer.api.unsafe that return Buffer Modifier and Type Method Description Buffer
UnsafeMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Buffer
UnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
UnsafeMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Methods in io.netty5.buffer.api.unsafe with parameters of type Buffer Modifier and Type Method Description Buffer
UnsafeMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Object
UnsafeMemoryManager. unwrapRecoverableMemory(Buffer buf)
Method parameters in io.netty5.buffer.api.unsafe with type arguments of type Buffer Modifier and Type Method Description Buffer
UnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
UnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
UnsafeMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
-
Uses of Buffer in io.netty5.channel
Methods in io.netty5.channel that return Buffer Modifier and Type Method Description Buffer
DefaultMaxMessagesRecvBufferAllocator.MaxMessageHandle. allocate(BufferAllocator alloc)
Buffer
RecvBufferAllocator.Handle. allocate(BufferAllocator alloc)
Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.protected abstract Buffer
AbstractCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)
Calculate the result ofcurrent + next
.protected Buffer
CoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)
protected Buffer
AbstractCoalescingBufferQueue. composeFirst(BufferAllocator allocator, Buffer first)
Calculate the firstBuffer
which will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(BufferAllocator, Buffer, Buffer)
.protected Buffer
AbstractCoalescingBufferQueue. composeIntoComposite(BufferAllocator alloc, Buffer cumulation, Buffer next)
protected Buffer
AbstractCoalescingBufferQueue. copyAndCompose(BufferAllocator alloc, Buffer cumulation, Buffer next, int minIncrement)
Buffer
AbstractCoalescingBufferQueue. remove(BufferAllocator alloc, int bytes, Promise<Void> aggregatePromise)
Remove aBuffer
from the queue with the specified number of bytes.Buffer
CoalescingBufferQueue. remove(int bytes, Promise<Void> aggregatePromise)
Remove aBuffer
from the queue with the specified number of bytes.protected abstract Buffer
AbstractCoalescingBufferQueue. removeEmptyValue()
The value to return whenAbstractCoalescingBufferQueue.remove(BufferAllocator, int, Promise)
is called but the queue is empty.protected Buffer
CoalescingBufferQueue. removeEmptyValue()
Buffer
AbstractCoalescingBufferQueue. removeFirst(Promise<Void> aggregatePromise)
Remove the firstBuffer
from the queue.Methods in io.netty5.channel with parameters of type Buffer Modifier and Type Method Description void
AbstractCoalescingBufferQueue. add(Buffer buf)
Add a buffer to the end of the queue.void
AbstractCoalescingBufferQueue. add(Buffer buf, FutureListener<Void> listener)
Add a buffer to the end of the queue and associate a listener with it that should be completed when all the buffers bytes have been consumed from the queue and written.void
AbstractCoalescingBufferQueue. add(Buffer buf, Promise<Void> 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.void
AbstractCoalescingBufferQueue. addFirst(Buffer buf, Promise<Void> 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 Buffer
AbstractCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)
Calculate the result ofcurrent + next
.protected Buffer
CoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)
protected Buffer
AbstractCoalescingBufferQueue. composeFirst(BufferAllocator allocator, Buffer first)
Calculate the firstBuffer
which will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(BufferAllocator, Buffer, Buffer)
.protected Buffer
AbstractCoalescingBufferQueue. composeIntoComposite(BufferAllocator alloc, Buffer cumulation, Buffer next)
protected Buffer
AbstractCoalescingBufferQueue. copyAndCompose(BufferAllocator alloc, Buffer cumulation, Buffer next, int minIncrement)
abstract T
BufferAddressedEnvelope. replace(Buffer content)
Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.DefaultBufferAddressedEnvelope<A>
DefaultBufferAddressedEnvelope. replace(Buffer content)
Constructors in io.netty5.channel with parameters of type Buffer Constructor Description BufferAddressedEnvelope(Buffer message, A recipient)
BufferAddressedEnvelope(Buffer message, A recipient, A sender)
DefaultBufferAddressedEnvelope(Buffer message, A recipient)
Creates a new instance with the specifiedmessage
andrecipient
address.DefaultBufferAddressedEnvelope(Buffer message, A recipient, A sender)
Creates a new instance with the specifiedmessage
,recipient
address, andsender
address. -
Uses of Buffer in io.netty5.channel.nio
Methods in io.netty5.channel.nio that return Buffer Modifier and Type Method Description protected Buffer
AbstractNioChannel. newDirectBuffer(Buffer buf)
Allocates a new off-heap copy of the given buffer, unless the cost of doing so is too high.protected Buffer
AbstractNioChannel. newDirectBuffer(Resource<?> holder, Buffer buf)
Allocates a new off-heap copy of the given buffer, unless the cost of doing so is too high.Methods in io.netty5.channel.nio with parameters of type Buffer Modifier and Type Method Description protected abstract int
AbstractNioByteChannel. doReadBytes(Buffer buf)
Read bytes into the givenBuffer
and return the amount.protected abstract int
AbstractNioByteChannel. doWriteBytes(Buffer buf)
protected Buffer
AbstractNioChannel. newDirectBuffer(Buffer buf)
Allocates a new off-heap copy of the given buffer, unless the cost of doing so is too high.protected Buffer
AbstractNioChannel. newDirectBuffer(Resource<?> holder, Buffer buf)
Allocates a new off-heap copy of the given buffer, unless the cost of doing so is too high. -
Uses of Buffer in io.netty5.channel.socket
Methods in io.netty5.channel.socket with parameters of type Buffer Modifier and Type Method Description DatagramPacket
DatagramPacket. replace(Buffer content)
Constructors in io.netty5.channel.socket with parameters of type Buffer Constructor Description DatagramPacket(Buffer message, SocketAddress recipient)
Create a new instance with the specified packetdata
andrecipient
address.DatagramPacket(Buffer message, SocketAddress recipient, SocketAddress sender)
Create a new instance with the specified packetdata
,recipient
address, andsender
address. -
Uses of Buffer in io.netty5.channel.socket.nio
Methods in io.netty5.channel.socket.nio with parameters of type Buffer Modifier and Type Method Description protected int
NioSocketChannel. doReadBytes(Buffer buffer)
protected int
NioSocketChannel. doWriteBytes(Buffer buf)
-
Uses of Buffer in io.netty5.channel.unix
Methods in io.netty5.channel.unix with parameters of type Buffer Modifier and Type Method Description static boolean
UnixChannelUtil. isBufferCopyNeededForWrite(Buffer buffer)
Checks if the specified buffer has memory address or is composed of n(n <= IOV_MAX) NIO direct buffers.SegmentedDatagramPacket
SegmentedDatagramPacket. replace(Buffer content)
Constructors in io.netty5.channel.unix with parameters of type Buffer Constructor Description SegmentedDatagramPacket(Buffer message, int segmentSize, InetSocketAddress recipient)
Create a new segmented datagram packet.SegmentedDatagramPacket(Buffer message, int segmentSize, SocketAddress recipient, SocketAddress sender)
Create a new segmented datagram packet. -
Uses of Buffer in io.netty5.handler.codec
Methods in io.netty5.handler.codec that return Buffer Modifier and Type Method Description protected abstract Buffer
MessageToByteEncoder. allocateBuffer(ChannelHandlerContext ctx, I msg)
Allocate aBuffer
which will be used as argument of#encode(ChannelHandlerContext, I, Buffer)
.Buffer
ByteToMessageDecoder.Cumulator. cumulate(BufferAllocator alloc, Buffer cumulation, Buffer in)
Buffer
ByteToMessageDecoder.Cumulator. discardSomeReadBytes(Buffer cumulation)
Consume the given buffer and return a new buffer with the same readable data, but where any data before the read offset may have been removed.protected Buffer
LengthFieldBasedFrameDecoder. extractFrame(ChannelHandlerContext ctx, Buffer buffer, int length)
Extract the sub-region of the specified buffer.protected Buffer
LengthFieldPrepender. getLengthFieldBuffer(ChannelHandlerContext ctx, int length, int lengthFieldLength, ByteOrder byteOrder)
Encodes the length into a buffer which will be prepended as the length field.protected Buffer
ByteToMessageDecoder. internalBuffer()
Returns the internal cumulative buffer of this decoder, if exists, elsenull
.static Buffer[]
Delimiters. lineDelimiter()
ReturnsCR ('\r')
andLF ('\n')
delimiters, which could be used for text-based line protocols.static Buffer[]
Delimiters. nulDelimiter()
Returns aNUL (0x00)
delimiter, which could be used for Flash XML socket or any similar protocols.Methods in io.netty5.handler.codec with parameters of type Buffer Modifier and Type Method Description Buffer
ByteToMessageDecoder.Cumulator. cumulate(BufferAllocator alloc, Buffer cumulation, Buffer in)
protected abstract void
ByteToMessageCodec. decode(ChannelHandlerContext ctx, Buffer in)
protected abstract void
ByteToMessageDecoder. decode(ChannelHandlerContext ctx, Buffer in)
Decode the from oneBuffer
to another.protected void
DelimiterBasedFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)
protected void
FixedLengthFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)
protected void
LengthFieldBasedFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)
protected void
LineBasedFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)
protected Object
DelimiterBasedFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer buffer)
Create a frame out of theBuffer
and return it.protected Object
FixedLengthFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer in)
Create a frame out of theBuffer
and return it.protected Object
LengthFieldBasedFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer buffer)
Create a frame out of theBuffer
and return it.protected Object
LineBasedFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer buffer)
Create a frame out of theBuffer
and return it.protected void
ByteToMessageCodec. decodeLast(ChannelHandlerContext ctx, Buffer in)
protected void
ByteToMessageDecoder. decodeLast(ChannelHandlerContext ctx, Buffer in)
Is called one last time when theChannelHandlerContext
goes in-active.Buffer
ByteToMessageDecoder.Cumulator. discardSomeReadBytes(Buffer cumulation)
Consume the given buffer and return a new buffer with the same readable data, but where any data before the read offset may have been removed.protected abstract void
ByteToMessageCodec. encode(ChannelHandlerContext ctx, I msg, Buffer out)
protected void
LengthFieldPrepender. encode(ChannelHandlerContext ctx, Buffer buffer, List<Object> out)
protected abstract void
MessageToByteEncoder. encode(ChannelHandlerContext ctx, I msg, Buffer out)
Encode a message into aBuffer
.protected Buffer
LengthFieldBasedFrameDecoder. extractFrame(ChannelHandlerContext ctx, Buffer buffer, int length)
Extract the sub-region of the specified buffer.protected long
LengthFieldBasedFrameDecoder. getUnadjustedFrameLength(Buffer buffer, int offset, int length, ByteOrder byteOrder)
Decodes the specified region of the buffer into an unadjusted frame length.Constructors in io.netty5.handler.codec with parameters of type Buffer Constructor Description DelimiterBasedFrameDecoder(int maxFrameLength, boolean stripDelimiter, boolean failFast, Buffer... delimiters)
Creates a new instance.DelimiterBasedFrameDecoder(int maxFrameLength, boolean stripDelimiter, Buffer... delimiters)
Creates a new instance.DelimiterBasedFrameDecoder(int maxFrameLength, Buffer... delimiters)
Creates a new instance.Constructor parameters in io.netty5.handler.codec with type arguments of type Buffer Constructor Description DatagramPacketDecoder(MessageToMessageDecoder<Buffer> decoder)
Create aDatagramPacket
decoder using the specifiedBuffer
decoder. -
Uses of Buffer in io.netty5.handler.codec.base64
Methods in io.netty5.handler.codec.base64 that return Buffer Modifier and Type Method Description static Buffer
Base64. decode(Buffer src)
static Buffer
Base64. decode(Buffer src, int off, int len)
static Buffer
Base64. decode(Buffer src, int off, int len, Base64Dialect dialect)
static Buffer
Base64. decode(Buffer src, int off, int len, Base64Dialect dialect, BufferAllocator allocator)
static Buffer
Base64. decode(Buffer src, Base64Dialect dialect)
static Buffer
Base64. encode(Buffer src)
static Buffer
Base64. encode(Buffer src, boolean breakLines)
static Buffer
Base64. encode(Buffer src, boolean breakLines, Base64Dialect dialect)
static Buffer
Base64. encode(Buffer src, int off, int len)
static Buffer
Base64. encode(Buffer src, int off, int len, boolean breakLines)
static Buffer
Base64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect)
static Buffer
Base64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect, BufferAllocator allocator)
static Buffer
Base64. encode(Buffer src, int off, int len, Base64Dialect dialect)
static Buffer
Base64. encode(Buffer src, Base64Dialect dialect)
Methods in io.netty5.handler.codec.base64 with parameters of type Buffer Modifier and Type Method Description static Buffer
Base64. decode(Buffer src)
static Buffer
Base64. decode(Buffer src, int off, int len)
static Buffer
Base64. decode(Buffer src, int off, int len, Base64Dialect dialect)
static Buffer
Base64. decode(Buffer src, int off, int len, Base64Dialect dialect, BufferAllocator allocator)
static Buffer
Base64. decode(Buffer src, Base64Dialect dialect)
protected void
Base64Decoder. decode(ChannelHandlerContext ctx, Buffer msg)
static Buffer
Base64. encode(Buffer src)
static Buffer
Base64. encode(Buffer src, boolean breakLines)
static Buffer
Base64. encode(Buffer src, boolean breakLines, Base64Dialect dialect)
static Buffer
Base64. encode(Buffer src, int off, int len)
static Buffer
Base64. encode(Buffer src, int off, int len, boolean breakLines)
static Buffer
Base64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect)
static Buffer
Base64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect, BufferAllocator allocator)
static Buffer
Base64. encode(Buffer src, int off, int len, Base64Dialect dialect)
static Buffer
Base64. encode(Buffer src, Base64Dialect dialect)
protected void
Base64Encoder. encode(ChannelHandlerContext ctx, Buffer msg, List<Object> out)
-
Uses of Buffer in io.netty5.handler.codec.bytes
Methods in io.netty5.handler.codec.bytes with parameters of type Buffer Modifier and Type Method Description protected void
ByteArrayDecoder. decode(ChannelHandlerContext ctx, Buffer msg)
-
Uses of Buffer in io.netty5.handler.codec.compression
Methods in io.netty5.handler.codec.compression that return Buffer Modifier and Type Method Description Buffer
BrotliCompressor. compress(Buffer input, BufferAllocator allocator)
Buffer
Bzip2Compressor. compress(Buffer in, BufferAllocator allocator)
Buffer
Compressor. compress(Buffer input, BufferAllocator allocator)
This method will read from the inputBuffer
and compress into a newBuffer
that will be allocated (if needed) from theBufferAllocator
.Buffer
FastLzCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
Lz4Compressor. compress(Buffer input, BufferAllocator allocator)
Buffer
LzfCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
LzmaCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
SnappyCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
ZlibCompressor. compress(Buffer uncompressed, BufferAllocator allocator)
Buffer
ZstdCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
BrotliDecompressor. decompress(Buffer input, BufferAllocator allocator)
Buffer
Bzip2Decompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
Decompressor. decompress(Buffer input, BufferAllocator allocator)
This method will read from the inputBuffer
and decompress into a newBuffer
that will be allocated (if needed) from theBufferAllocator
.Buffer
FastLzDecompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
Lz4Decompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
LzfDecompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
SnappyDecompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
ZlibDecompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
BrotliCompressor. finish(BufferAllocator allocator)
Buffer
Bzip2Compressor. finish(BufferAllocator allocator)
Buffer
Compressor. finish(BufferAllocator allocator)
By calling this method we signal that the compression stream is marked as finish.Buffer
FastLzCompressor. finish(BufferAllocator allocator)
Buffer
Lz4Compressor. finish(BufferAllocator allocator)
Buffer
LzfCompressor. finish(BufferAllocator allocator)
Buffer
LzmaCompressor. finish(BufferAllocator allocator)
Buffer
SnappyCompressor. finish(BufferAllocator allocator)
Buffer
ZlibCompressor. finish(BufferAllocator allocator)
Buffer
ZstdCompressor. finish(BufferAllocator allocator)
protected Buffer
ZlibDecompressor. prepareDecompressBuffer(BufferAllocator allocator, Buffer buffer, int preferredSize)
Allocate or expand the decompression buffer, without exceeding the maximum allocation.Methods in io.netty5.handler.codec.compression with parameters of type Buffer Modifier and Type Method Description Buffer
BrotliCompressor. compress(Buffer input, BufferAllocator allocator)
Buffer
Bzip2Compressor. compress(Buffer in, BufferAllocator allocator)
Buffer
Compressor. compress(Buffer input, BufferAllocator allocator)
This method will read from the inputBuffer
and compress into a newBuffer
that will be allocated (if needed) from theBufferAllocator
.Buffer
FastLzCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
Lz4Compressor. compress(Buffer input, BufferAllocator allocator)
Buffer
LzfCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
LzmaCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
SnappyCompressor. compress(Buffer in, BufferAllocator allocator)
Buffer
ZlibCompressor. compress(Buffer uncompressed, BufferAllocator allocator)
Buffer
ZstdCompressor. compress(Buffer in, BufferAllocator allocator)
protected void
DecompressionHandler. decode(ChannelHandlerContext ctx, Buffer in)
void
Snappy. decode(Buffer in, Buffer out)
Buffer
BrotliDecompressor. decompress(Buffer input, BufferAllocator allocator)
Buffer
Bzip2Decompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
Decompressor. decompress(Buffer input, BufferAllocator allocator)
This method will read from the inputBuffer
and decompress into a newBuffer
that will be allocated (if needed) from theBufferAllocator
.Buffer
FastLzDecompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
Lz4Decompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
LzfDecompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
SnappyDecompressor. decompress(Buffer in, BufferAllocator allocator)
Buffer
ZlibDecompressor. decompress(Buffer in, BufferAllocator allocator)
protected void
ZlibDecompressor. decompressionBufferExhausted(Buffer buffer)
void
Snappy. encode(Buffer in, Buffer out, int length)
protected Buffer
ZlibDecompressor. prepareDecompressBuffer(BufferAllocator allocator, Buffer buffer, int preferredSize)
Allocate or expand the decompression buffer, without exceeding the maximum allocation.void
Lz4XXHash32. update(Buffer b, int off, int len)
-
Uses of Buffer in io.netty5.handler.codec.dns
Methods in io.netty5.handler.codec.dns that return Buffer Modifier and Type Method Description protected Buffer
DatagramDnsQueryEncoder. allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsQuery,InetSocketAddress> msg)
Allocate aBuffer
which will be used for constructing a datagram packet.protected Buffer
DatagramDnsResponseEncoder. allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse,InetSocketAddress> msg)
Allocate aBuffer
which will be used for constructing a datagram packet.protected Buffer
TcpDnsQueryEncoder. allocateBuffer(ChannelHandlerContext ctx, DnsQuery msg)
Buffer
DefaultDnsRawRecord. content()
Buffer
DnsRawRecord. content()
Get a reference to theBuffer
backing this raw DNS record.Methods in io.netty5.handler.codec.dns with parameters of type Buffer Modifier and Type Method Description protected Object
TcpDnsQueryDecoder. decode0(ChannelHandlerContext ctx, Buffer in)
protected Object
TcpDnsResponseDecoder. decode0(ChannelHandlerContext ctx, Buffer in)
static String
DefaultDnsRecordDecoder. decodeName(Buffer in)
Retrieves a domain name given a buffer containing a DNS packet.protected String
DefaultDnsRecordDecoder. decodeName0(Buffer in)
Retrieves a domain name given a buffer containing a DNS packet.DnsQuestion
DefaultDnsRecordDecoder. decodeQuestion(Buffer in)
DnsQuestion
DnsRecordDecoder. decodeQuestion(Buffer in)
Decodes a DNS question into its object representation.<T extends DnsRecord>
TDefaultDnsRecordDecoder. decodeRecord(BufferAllocator allocator, Buffer in)
protected DnsRecord
DefaultDnsRecordDecoder. decodeRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, BufferAllocator allocator, Buffer in, int offset, int length)
Decodes a record from the information decoded so far byDnsRecordDecoder.decodeRecord(BufferAllocator, Buffer)
.<T extends DnsRecord>
TDnsRecordDecoder. decodeRecord(BufferAllocator allocator, Buffer in)
Decodes a DNS record into its object representation.protected void
TcpDnsQueryEncoder. encode(ChannelHandlerContext ctx, DnsQuery msg, Buffer out)
protected void
DefaultDnsRecordEncoder. encodeName(String name, Buffer buf)
void
DefaultDnsRecordEncoder. encodeQuestion(DnsQuestion question, Buffer out)
void
DnsRecordEncoder. encodeQuestion(DnsQuestion question, Buffer out)
Encodes aDnsQuestion
.void
DefaultDnsRecordEncoder. encodeRecord(DnsRecord record, Buffer out)
void
DnsRecordEncoder. encodeRecord(DnsRecord record, Buffer out)
Encodes aDnsRecord
.DnsRawRecord
DefaultDnsRawRecord. replace(Buffer content)
Constructors in io.netty5.handler.codec.dns with parameters of type Buffer Constructor Description DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, Buffer content)
Creates a new record.DefaultDnsRawRecord(String name, DnsRecordType type, long timeToLive, Buffer content)
Creates a newIN-class
record.Constructor parameters in io.netty5.handler.codec.dns with type arguments of type Buffer Constructor Description DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, Send<Buffer> content)
-
Uses of Buffer in io.netty5.handler.codec.http
Methods in io.netty5.handler.codec.http that return Buffer Modifier and Type Method Description protected Buffer
HttpObjectEncoder. crlfBuffer(BufferAllocator allocator)
Buffer
DefaultFullHttpRequest. payload()
Buffer
DefaultFullHttpResponse. payload()
Buffer
DefaultHttpContent. payload()
Buffer
DefaultLastHttpContent. payload()
Buffer
EmptyLastHttpContent. payload()
Buffer
HttpContent. payload()
Returns theBuffer
representing the payload of the HTTP message.protected Buffer
HttpObjectEncoder. zeroCrlfCrlfBuffer(BufferAllocator allocator)
Methods in io.netty5.handler.codec.http with parameters of type Buffer Modifier and Type Method Description protected void
HttpObjectDecoder. decode(ChannelHandlerContext ctx, Buffer buffer)
protected void
HttpObjectDecoder. decodeLast(ChannelHandlerContext ctx, Buffer in)
protected void
HttpObjectEncoder. encodeHeaders(HttpHeaders headers, Buffer buf)
Encode theHttpHeaders
into aBuffer
.protected abstract void
HttpObjectEncoder. encodeInitialLine(Buffer buf, H message)
protected void
HttpRequestEncoder. encodeInitialLine(Buffer buf, HttpRequest request)
protected void
HttpResponseEncoder. encodeInitialLine(Buffer buf, HttpResponse response)
Constructors in io.netty5.handler.codec.http with parameters of type Buffer Constructor Description DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, Buffer payload)
DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, Buffer payload, boolean validateHeaders)
DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, Buffer payload, HttpHeaders headers, HttpHeaders trailingHeader)
DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload)
DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, boolean validateHeaders)
DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, boolean validateHeaders, boolean singleFieldHeaders)
DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, HttpHeaders headers, HttpHeaders trailingHeaders)
DefaultHttpContent(Buffer payload)
Creates a new instance with the specified chunk content.DefaultLastHttpContent(Buffer payload)
DefaultLastHttpContent(Buffer payload, boolean validateHeaders)
DefaultLastHttpContent(Buffer payload, HttpHeaders trailingHeaders)
Constructor parameters in io.netty5.handler.codec.http with type arguments of type Buffer Constructor Description HttpChunkedInput(ChunkedInput<Buffer> input, LastHttpContent<?> lastHttpContent)
Creates a new instance using the specified input. -
Uses of Buffer in io.netty5.handler.codec.http.websocketx
Methods in io.netty5.handler.codec.http.websocketx that return Buffer Modifier and Type Method Description Buffer
WebSocketFrame. binaryData()
Methods in io.netty5.handler.codec.http.websocketx with parameters of type Buffer Modifier and Type Method Description protected void
WebSocket13FrameDecoder. checkCloseFrameBody(ChannelHandlerContext ctx, Buffer buffer)
protected void
WebSocket13FrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)
protected WebSocketFrame
BinaryWebSocketFrame. receive(Buffer buf)
protected WebSocketFrame
CloseWebSocketFrame. receive(Buffer buf)
protected WebSocketFrame
ContinuationWebSocketFrame. receive(Buffer buf)
protected WebSocketFrame
PingWebSocketFrame. receive(Buffer buf)
protected WebSocketFrame
PongWebSocketFrame. receive(Buffer buf)
protected WebSocketFrame
TextWebSocketFrame. receive(Buffer buf)
Constructors in io.netty5.handler.codec.http.websocketx with parameters of type Buffer Constructor Description BinaryWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)
Creates a new binary frame with the specified binary data and the final fragment flag.BinaryWebSocketFrame(Buffer binaryData)
Creates a new binary frame with the specified binary data.CloseWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)
Creates a new close frameContinuationWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)
Creates a new continuation frame with the specified binary data.ContinuationWebSocketFrame(Buffer binaryData)
Creates a new continuation frame with the specified binary data.PingWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)
Creates a new ping frame with the specified binary data.PingWebSocketFrame(Buffer binaryData)
Creates a new ping frame with the specified binary data.PongWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)
Creates a new pong frame with the specified binary dataPongWebSocketFrame(Buffer binaryData)
Creates a new pong frame with the specified binary data.TextWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)
Creates a new text frame with the specified binary data and the final fragment flag.TextWebSocketFrame(Buffer binaryData)
Creates a new text frame with the specified binary data.WebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)
WebSocketFrame(Buffer binaryData)
WebSocketFrame(WebSocketFrame copyFrom, Buffer binaryData)
This is a copy-constructor, used by sub-classes to implementResource.send()
.Constructor parameters in io.netty5.handler.codec.http.websocketx with type arguments of type Buffer Constructor Description PongWebSocketFrame(Send<Buffer> binaryData)
Creates a new pong frame with the specified binary data.WebSocketChunkedInput(ChunkedInput<Buffer> input)
Creates a new instance using the specified input.WebSocketChunkedInput(ChunkedInput<Buffer> input, int rsv)
Creates a new instance using the specified input.WebSocketFrame(Send<Buffer> binaryData)
-
Uses of Buffer in io.netty5.handler.codec.http2
Fields in io.netty5.handler.codec.http2 with type parameters of type Buffer Modifier and Type Field Description static Supplier<Buffer>
Http2CodecUtil. CONNECTION_PREFACE_BUFFER
Methods in io.netty5.handler.codec.http2 that return Buffer Modifier and Type Method Description static Buffer
Http2CodecUtil. connectionPrefaceBuffer()
Returns a buffer containing theHttp2CodecUtil.CONNECTION_PREFACE_BUFFER
.Buffer
DefaultHttp2DataFrame. content()
Buffer
DefaultHttp2GoAwayFrame. content()
Buffer
DefaultHttp2UnknownFrame. content()
Buffer
Http2DataFrame. content()
Payload of DATA frame.Buffer
Http2GoAwayFrame. content()
Optional debugging information describing cause the GOAWAY.Buffer
Http2UnknownFrame. content()
Get the data content associated with this unknown frame.static Buffer
Http2CodecUtil. toBuffer(ChannelHandlerContext ctx, Throwable cause)
Creates a buffer containing the error message from the given exception.Methods in io.netty5.handler.codec.http2 with parameters of type Buffer Modifier and Type Method Description protected void
CleartextHttp2ServerUpgradeHandler. decode(ChannelHandlerContext ctx, Buffer in)
Peek inbound message to determine current connection wants to start HTTP/2 by HTTP upgrade or prior knowledgeprotected void
Http2ConnectionHandler. decode(ChannelHandlerContext ctx, Buffer in)
void
DecoratingHttp2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, Buffer in)
void
DefaultHttp2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, Buffer in)
void
Http2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, Buffer in)
Called by theHttp2ConnectionHandler
to decode the next frame from the input buffer.Http2Headers
DefaultHttp2HeadersDecoder. decodeHeaders(int streamId, Buffer headerBlock)
Http2Headers
Http2HeadersDecoder. decodeHeaders(int streamId, Buffer headerBlock)
Decodes the given headers block and returns the headers.void
DefaultHttp2HeadersEncoder. encodeHeaders(int streamId, Http2Headers headers, Buffer buffer)
void
Http2HeadersEncoder. encodeHeaders(int streamId, Http2Headers headers, Buffer buffer)
Encodes the given headers and writes the output headers block to the given output buffer.Future<Void>
Http2ConnectionHandler. goAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Future<Void>
Http2LifecycleManager. goAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Prevents the peer from creating streams and close the connection iferrorCode
is notHttp2Error.NO_ERROR
.void
DefaultHttp2Connection. goAwayReceived(int lastKnownStream, long errorCode, Buffer debugData)
void
Http2Connection. goAwayReceived(int lastKnownStream, long errorCode, Buffer message)
Indicates that aGOAWAY
was received from the remote endpoint and sets the last known stream.boolean
DefaultHttp2Connection. goAwaySent(int lastKnownStream, long errorCode, Buffer debugData)
boolean
Http2Connection. goAwaySent(int lastKnownStream, long errorCode, Buffer message)
Updates the local state of thisHttp2Connection
as a result of aGOAWAY
to send to the remote endpoint.void
Http2FrameLogger. logData(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endStream)
void
Http2FrameLogger. logGoAway(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
void
Http2FrameLogger. logUnknownFrame(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer data)
int
DelegatingDecompressorFrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
int
Http2EventAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
int
Http2FrameAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
int
Http2FrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
Handles an inboundDATA
frame.int
Http2FrameListenerDecorator. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
int
InboundHttp2ToHttpAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
void
Http2EventAdapter. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
void
Http2FrameAdapter. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
void
Http2FrameListener. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Handles an inboundGO_AWAY
frame.void
Http2FrameListenerDecorator. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
void
Http2Connection.Listener. onGoAwayReceived(int lastStreamId, long errorCode, Buffer debugData)
Called when aGOAWAY
was received from the remote endpoint.void
Http2ConnectionAdapter. onGoAwayReceived(int lastStreamId, long errorCode, Buffer debugData)
void
Http2EventAdapter. onGoAwayReceived(int lastStreamId, long errorCode, Buffer debugData)
void
Http2Connection.Listener. onGoAwaySent(int lastStreamId, long errorCode, Buffer debugData)
Called when aGOAWAY
frame was sent for the connection.void
Http2ConnectionAdapter. onGoAwaySent(int lastStreamId, long errorCode, Buffer debugData)
void
Http2EventAdapter. onGoAwaySent(int lastStreamId, long errorCode, Buffer debugData)
void
Http2EventAdapter. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
void
Http2FrameAdapter. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
void
Http2FrameListener. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
Handler for a frame not defined by the HTTP/2 spec.void
Http2FrameListenerDecorator. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
void
DefaultHttp2FrameReader. readFrame(ChannelHandlerContext ctx, Buffer input, Http2FrameListener listener)
void
Http2FrameReader. readFrame(ChannelHandlerContext ctx, Buffer input, Http2FrameListener listener)
Attempts to read the next frame from the input buffer.void
Http2InboundFrameLogger. readFrame(ChannelHandlerContext ctx, Buffer input, Http2FrameListener listener)
static int
Http2CodecUtil. readUnsignedInt(Buffer buf)
Reads a big-endian (31-bit) integer from the buffer.protected Http2GoAwayFrame
DefaultHttp2GoAwayFrame. receive(Buffer buf)
protected DefaultHttp2UnknownFrame
DefaultHttp2UnknownFrame. receive(Buffer buf)
void
DefaultHttp2LocalFlowController. receiveFlowControlledFrame(Http2Stream stream, Buffer data, int padding, boolean endOfStream)
void
Http2LocalFlowController. receiveFlowControlledFrame(Http2Stream stream, Buffer data, int padding, boolean endOfStream)
Receives an inboundDATA
frame from the remote endpoint and applies flow control policies to it for both thestream
as well as the connection.static FullHttpRequest
HttpConversionUtil. toFullHttpRequest(int streamId, Http2Headers http2Headers, Buffer content, boolean validateHttpHeaders, BufferAllocator allocator)
Create a new object to contain the request datastatic FullHttpResponse
HttpConversionUtil. toFullHttpResponse(int streamId, Http2Headers http2Headers, Buffer content, boolean validateHttpHeaders)
Create a new object to contain the response dataFuture<Void>
CompressorHttp2ConnectionEncoder. writeData(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
Future<Void>
DecoratingHttp2FrameWriter. writeData(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endStream)
Future<Void>
DefaultHttp2ConnectionEncoder. writeData(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
Future<Void>
DefaultHttp2FrameWriter. writeData(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endStream)
Future<Void>
Http2DataWriter. writeData(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endStream)
Writes aDATA
frame to the remote endpoint.Future<Void>
Http2OutboundFrameLogger. writeData(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endStream)
Future<Void>
StreamBufferingEncoder. writeData(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)
Future<Void>
DecoratingHttp2FrameWriter. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
Future<Void>
DefaultHttp2ConnectionEncoder. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
Future<Void>
DefaultHttp2FrameWriter. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
Future<Void>
Http2ConnectionEncoder. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
Writes the given data to the internalHttp2FrameWriter
without performing any state checks on the connection/stream.Future<Void>
Http2FrameWriter. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
Generic write method for any HTTP/2 frame.Future<Void>
Http2OutboundFrameLogger. writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
static void
Http2CodecUtil. writeFrameHeader(Buffer out, int payloadLength, byte type, Http2Flags flags, int streamId)
Writes an HTTP/2 frame header to the output buffer.Future<Void>
DecoratingHttp2FrameWriter. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Future<Void>
DefaultHttp2ConnectionEncoder. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Future<Void>
DefaultHttp2FrameWriter. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Future<Void>
Http2FrameWriter. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Writes a GO_AWAY frame to the remote endpoint.Future<Void>
Http2OutboundFrameLogger. writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
Constructors in io.netty5.handler.codec.http2 with parameters of type Buffer Constructor Description DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, Buffer data)
Constructor parameters in io.netty5.handler.codec.http2 with type arguments of type Buffer Constructor Description DefaultHttp2DataFrame(Send<Buffer> content)
Equivalent tonew DefaultHttp2DataFrame(content, false)
.DefaultHttp2DataFrame(Send<Buffer> content, boolean endStream)
Equivalent tonew DefaultHttp2DataFrame(content, endStream, 0)
.DefaultHttp2DataFrame(Send<Buffer> content, boolean endStream, int padding)
Construct a new data message.DefaultHttp2GoAwayFrame(long errorCode, Send<Buffer> content)
Construct a new GOAWAY message.DefaultHttp2GoAwayFrame(Http2Error error, Send<Buffer> content)
Http2DataChunkedInput(ChunkedInput<Buffer> input, Http2FrameStream stream)
Creates a new instance using the specified input. -
Uses of Buffer in io.netty5.handler.codec.rtsp
Methods in io.netty5.handler.codec.rtsp with parameters of type Buffer Modifier and Type Method Description protected void
RtspEncoder. encodeInitialLine(Buffer buf, HttpMessage message)
-
Uses of Buffer in io.netty5.handler.codec.string
Methods in io.netty5.handler.codec.string with parameters of type Buffer Modifier and Type Method Description protected void
StringDecoder. decode(ChannelHandlerContext ctx, Buffer msg)
-
Uses of Buffer in io.netty5.handler.ssl
Methods in io.netty5.handler.ssl that return Buffer Modifier and Type Method Description Buffer
PemPrivateKey. content()
Buffer
PemX509Certificate. content()
Methods in io.netty5.handler.ssl with parameters of type Buffer Modifier and Type Method Description protected void
OptionalSslHandler. decode(ChannelHandlerContext context, Buffer in)
protected void
SslClientHelloHandler. decode(ChannelHandlerContext ctx, Buffer in)
protected void
SslHandler. decode(ChannelHandlerContext ctx, Buffer in)
static boolean
SslHandler. isEncrypted(Buffer buffer)
Returnstrue
if the givenBuffer
is encrypted.protected Future<T>
AbstractSniHandler. lookup(ChannelHandlerContext ctx, Buffer clientHello)
protected abstract Future<T>
SslClientHelloHandler. lookup(ChannelHandlerContext ctx, Buffer clientHello)
Kicks off a lookup for the givenClientHello
and returns aFuture
which in turn will notify theSslClientHelloHandler.onLookupComplete(ChannelHandlerContext, Future)
on completion.protected PemPrivateKey
PemPrivateKey. receive(Buffer buf)
static PemPrivateKey
PemPrivateKey. valueOf(Buffer key)
Creates aPemPrivateKey
from rawBuffer
.static PemX509Certificate
PemX509Certificate. valueOf(Buffer key)
Creates aPemX509Certificate
from rawBuffer
. -
Uses of Buffer in io.netty5.handler.stream
Methods in io.netty5.handler.stream that return Buffer Modifier and Type Method Description Buffer
ChunkedFile. readChunk(BufferAllocator allocator)
Buffer
ChunkedNioFile. readChunk(BufferAllocator allocator)
Buffer
ChunkedNioStream. readChunk(BufferAllocator allocator)
Buffer
ChunkedStream. readChunk(BufferAllocator allocator)
-