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 IncubatingBufferAPI, 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 poolingBufferAllocatorimplementation based on jemalloc.io.netty5.buffer.api.unsafe ABufferimplementation 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.ByteBufand 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 aStringinto aio.netty5.buffer.ByteBufand 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 BufferBufferOutputStream. buffer()Returns the buffer where this stream is writing data.static BufferBufferUtil. threadLocalDirectBuffer()Returns a cached thread-local direct buffer, if available.static BufferBufferUtil. writeAscii(BufferAllocator alloc, CharSequence seq)Methods in io.netty5.buffer with parameters of type Buffer Modifier and Type Method Description static voidBufferUtil. appendPrettyHexDump(StringBuilder dump, Buffer buf)Appends the prettified multi-line hexadecimal dump of the specifiedBufferto the specifiedStringBuilderthat is easy to read by humans.static voidBufferUtil. appendPrettyHexDump(StringBuilder dump, Buffer buf, int offset, int length)Appends the prettified multi-line hexadecimal dump of the specifiedBufferto the specifiedStringBuilderthat is easy to read by humans, starting at the givenoffsetusing the givenlength.static booleanBufferUtil. equals(Buffer first, int firstReaderOffset, Buffer second, int secondReaderOffset, int length)Returnstrueif and only if the two specified buffers are identical to each other forlengthbytes starting atfirstReaderOffsetindex for thefirstbuffer andsecondReaderOffsetindex for thesecondbuffer.static byte[]BufferUtil. getBytes(Buffer buf)Create a copy of the underlying storage frombufinto a byte array.static byte[]BufferUtil. getBytes(Buffer buf, int start, int length)Create a copy of the underlying storage frombufinto a byte array.static StringBufferUtil. hexDump(Buffer buffer)Returns a hex dump of the specified buffer's readable bytes.static StringBufferUtil. 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 specifiedbufferstarting at the currentreaderOffsetand 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 interfaceCompositeBufferTheCompositeBufferis a concreteBufferimplementation that make a number of other buffers appear as one.Classes in io.netty5.buffer.api that implement Buffer Modifier and Type Class Description classBufferStubA stub of aBufferimplementation 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 BufferBufferStub. delegateMethods in io.netty5.buffer.api that return Buffer Modifier and Type Method Description BufferBufferAllocator. allocate(int size)Allocate aBufferof the given size in bytes.BufferSensitiveBufferAllocator. allocate(int size)BufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)Allocates a constant buffer based on the given parent.BufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)Allocates a shared buffer.BufferBuffer. compact()Discards the read bytes, and moves the buffer contents to the beginning of the buffer.BufferBufferStub. compact()BufferBufferRef. content()Access the buffer in this reference.default BufferBuffer. copy()Returns a copy of this buffer's readable bytes.default BufferBuffer. copy(boolean readOnly)Returns a copy of this buffer's readable bytes, with the given read-only setting.default BufferBuffer. copy(int offset, int length)Returns a copy of the given region of this buffer.BufferBuffer. copy(int offset, int length, boolean readOnly)Returns a copy of the given region of this buffer.BufferBufferStub. copy()BufferBufferStub. copy(boolean readOnly)BufferBufferStub. copy(int offset, int length)BufferBufferStub. copy(int offset, int length, boolean readOnly)default BufferBufferAllocator. copyOf(byte[] bytes)Allocate aBufferwith the same size and contents of the given byte array.default BufferBufferAllocator. copyOf(String str, Charset charset)default BufferBufferAllocator. copyOf(ByteBuffer buffer)Allocate aBufferwith the same size and contents, as the contents of the givenByteBuffer.Buffer[]CompositeBuffer. decomposeBuffer()Break a composite buffer into its constituent components.default BufferBuffer. ensureWritable(int size)Ensures that this buffer has at least the given number of bytes of available space for writing.BufferBuffer. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)Ensures that this buffer has at least the given number of bytes of available space for writing.BufferBufferStub. ensureWritable(int size)BufferBufferStub. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)BufferBuffer. fill(byte value)Fills the buffer with the given byte value.BufferBufferStub. fill(byte value)protected BufferBufferHolder. getBuffer()Access the heldBufferinstance.protected BufferBufferHolder. getBufferVolatile()Access the heldBufferinstance.BufferBuffer. implicitCapacityLimit(int limit)Set an upper limit to the implicit capacity growth.BufferBufferStub. implicitCapacityLimit(int limit)BufferBuffer. makeReadOnly()Makes this buffer read-only.BufferBufferStub. makeReadOnly()default BufferBuffer. readBytes(byte[] destination, int destPos, int length)Read from this buffer, into the destination array, the given number of bytes.default BufferBuffer. readBytes(ByteBuffer destination)Read from this buffer, into the destinationByteBufferThis updates the read offset of this buffer and also the position of the destinationByteBuffer.BufferBufferStub. readBytes(byte[] destination, int destPos, int length)BufferBufferStub. readBytes(ByteBuffer destination)BufferBuffer. readerOffset(int offset)Set the reader offset.BufferBufferStub. readerOffset(int offset)default BufferBuffer. readSplit(int length)Splits the buffer into two, atlengthnumber of bytes from the current readerOffset() reader offset} position.BufferBufferStub. readSplit(int length)BufferMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)Recover the memory from a priorMemoryManager.unwrapRecoverableMemory(Buffer)call, and wrap it in aBufferinstance.default BufferBuffer. resetOffsets()Resets the read offset and the write offset on this buffer to zero, and return this buffer.BufferBufferStub. resetOffsets()default BufferBufferAccessor. setBoolean(int woff, boolean value)Set the given boolean value at the given write offset.BufferBufferStub. setBoolean(int woff, boolean value)BufferBufferAccessor. setByte(int woff, byte value)Set the given byte value at the given write offset.BufferBufferStub. setByte(int woff, byte value)BufferBufferAccessor. setChar(int woff, char value)Set the given char value at the given write offset.BufferBufferStub. setChar(int woff, char value)BufferBufferAccessor. setDouble(int woff, double value)Set the given double value at the given write offset.BufferBufferStub. setDouble(int woff, double value)BufferBufferAccessor. setFloat(int woff, float value)Set the given float value at the given write offset.BufferBufferStub. setFloat(int woff, float value)BufferBufferAccessor. setInt(int woff, int value)Set the given int value at the given write offset.BufferBufferStub. setInt(int woff, int value)BufferBufferAccessor. setLong(int woff, long value)Set the given long value at the given write offset.BufferBufferStub. setLong(int woff, long value)BufferBufferAccessor. setMedium(int woff, int value)Set the given int value at the given write offset.BufferBufferStub. setMedium(int woff, int value)BufferBufferAccessor. setShort(int woff, short value)Set the given short value at the given write offset.BufferBufferStub. setShort(int woff, short value)BufferBufferAccessor. setUnsignedByte(int woff, int value)Set the given unsigned byte value at the given write offset.BufferBufferStub. setUnsignedByte(int woff, int value)BufferBufferAccessor. setUnsignedInt(int woff, long value)Set the given unsigned int value at the given write offset.BufferBufferStub. setUnsignedInt(int woff, long value)BufferBufferAccessor. setUnsignedMedium(int woff, int value)Set the given unsigned int value at the given write offset.BufferBufferStub. setUnsignedMedium(int woff, int value)BufferBufferAccessor. setUnsignedShort(int woff, int value)Set the given unsigned short value at the given write offset.BufferBufferStub. setUnsignedShort(int woff, int value)default BufferBuffer. skipReadableBytes(int delta)Move the reader offset forward by the given delta.BufferBufferStub. skipReadableBytes(int delta)default BufferBuffer. skipWritableBytes(int delta)Move the writer offset to ahead by the given delta.BufferBufferStub. skipWritableBytes(int delta)default BufferBuffer. split()Splits the buffer into two, at the write offset position.BufferBuffer. split(int splitOffset)Splits the buffer into two, at the givensplitOffset.BufferBufferStub. split()BufferBufferStub. split(int splitOffset)BufferBufferStub. touch(Object hint)static BufferMemoryManager. unsafeWrap(byte[] array)Create a new on-heapBufferinstance that directly wraps the given array.default BufferBufferAccessor. writeBoolean(boolean value)Write the given boolean value at the currentwriterOffset(), and increase the writer offset byByte.BYTES.BufferBufferStub. writeBoolean(boolean value)BufferBufferAccessor. writeByte(byte value)Write the given byte value at the currentwriterOffset(), and increase the writer offset byByte.BYTES.BufferBufferStub. writeByte(byte value)default BufferBuffer. writeBytes(byte[] source)Writes into this buffer, all the bytes from the given byte array.default BufferBuffer. writeBytes(byte[] source, int srcPos, int length)Writes into this buffer, the given number of bytes from the byte array.default BufferBuffer. writeBytes(Buffer source)Writes into this buffer, all the readable bytes from the given buffer.default BufferBuffer. writeBytes(ByteBuffer source)Writes into this buffer from the sourceByteBuffer.BufferBufferStub. writeBytes(byte[] source)BufferBufferStub. writeBytes(byte[] source, int srcPos, int length)BufferBufferStub. writeBytes(Buffer source)BufferBufferStub. writeBytes(ByteBuffer source)BufferBufferAccessor. writeChar(char value)Write the given char value at the currentwriterOffset(), and increase the writer offset by 2.BufferBufferStub. writeChar(char value)default BufferBuffer. writeCharSequence(CharSequence source, Charset charset)Writes into this buffer, all the bytes from the givensourceusing the passedcharset.BufferBufferStub. writeCharSequence(CharSequence source, Charset charset)BufferBufferAccessor. writeDouble(double value)Write the given double value at the currentwriterOffset(), and increase the writer offset byDouble.BYTES.BufferBufferStub. writeDouble(double value)BufferBufferAccessor. writeFloat(float value)Write the given float value at the currentwriterOffset(), and increase the writer offset byFloat.BYTES.BufferBufferStub. writeFloat(float value)BufferBufferAccessor. writeInt(int value)Write the given int value at the currentwriterOffset(), and increase the writer offset byInteger.BYTES.BufferBufferStub. writeInt(int value)BufferBufferAccessor. writeLong(long value)Write the given long value at the currentwriterOffset(), and increase the writer offset byLong.BYTES.BufferBufferStub. writeLong(long value)BufferBufferAccessor. writeMedium(int value)Write the given int value at the currentwriterOffset(), and increase the writer offset by 3.BufferBufferStub. writeMedium(int value)BufferBuffer. writerOffset(int offset)Set the writer offset.BufferBufferStub. writerOffset(int offset)BufferBufferAccessor. writeShort(short value)Write the given short value at the currentwriterOffset(), and increase the writer offset byShort.BYTES.BufferBufferStub. writeShort(short value)default BufferBuffer. writeSplit(int length)Splits the buffer into two, atlengthnumber of bytes from the current writerOffset() writer offset} position.BufferBufferStub. writeSplit(int length)BufferBufferAccessor. writeUnsignedByte(int value)Write the given unsigned byte value at the currentwriterOffset(), and increase the writer offset byByte.BYTES.BufferBufferStub. writeUnsignedByte(int value)BufferBufferAccessor. writeUnsignedInt(long value)Write the given unsigned int value at the currentwriterOffset(), and increase the writer offset byInteger.BYTES.BufferBufferStub. writeUnsignedInt(long value)BufferBufferAccessor. writeUnsignedMedium(int value)Write the given unsigned int value at the currentwriterOffset(), and increase the writer offset by 3.BufferBufferStub. writeUnsignedMedium(int value)BufferBufferAccessor. writeUnsignedShort(int value)Write the given unsigned short value at the currentwriterOffset(), and increase the writer offset byShort.BYTES.BufferBufferStub. 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 BufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)Allocates a constant buffer based on the given parent.intBuffer. bytesBefore(Buffer needle)Get the number of readable bytes, until the givenneedleis found in this buffer.intBufferStub. bytesBefore(Buffer needle)voidBuffer. 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.voidBufferStub. copyInto(int srcPos, Buffer dest, int destPos, int length)static booleanCompositeBuffer. isComposite(Buffer composite)Check if the given buffer is a composite buffer or not.protected abstract TBufferHolder. receive(Buffer buf)Called when a sentBufferHolderis received by the recipient.protected BufferRefBufferRef. receive(Buffer buf)ObjectMemoryManager. unwrapRecoverableMemory(Buffer buf)Create an object that represents the internal memory of the given buffer.default BufferBuffer. writeBytes(Buffer source)Writes into this buffer, all the readable bytes from the given buffer.BufferBufferStub. writeBytes(Buffer source)default CompositeBufferCompositeBuffer. writeBytes(Buffer source)Method parameters in io.netty5.buffer.api with type arguments of type Buffer Modifier and Type Method Description BufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)Allocates a shared buffer.BufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)Allocates a shared buffer.default CompositeBufferBufferAllocator. compose(Send<Buffer> send)Compose the send of a buffer and present them as a single buffer.default CompositeBufferBufferAllocator. compose(Iterable<Send<Buffer>> sends)Compose the given sequence of sends of buffers and present them as a single buffer.CompositeBufferCompositeBuffer. extendWith(Send<Buffer> extension)Extend this composite buffer with the given extension buffer.BufferMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)Recover the memory from a priorMemoryManager.unwrapRecoverableMemory(Buffer)call, and wrap it in aBufferinstance.voidBufferRef. replace(Send<Buffer> send)Replace the underlying referenced buffer with the given buffer.protected voidBufferHolder. replaceBuffer(Send<Buffer> send)Replace the underlying referenced buffer with the given buffer.protected voidBufferHolder. 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 newBufferHolderto 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 BufferByteBufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)BufferByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferByteBufferMemoryManager. 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 BufferByteBufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)ObjectByteBufferMemoryManager. unwrapRecoverableMemory(Buffer buf)Method parameters in io.netty5.buffer.api.bytebuffer with type arguments of type Buffer Modifier and Type Method Description BufferByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferByteBufferMemoryManager. 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 classAdaptableBuffer<T extends ResourceSupport<Buffer,T>>classCleanerDrop<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 classAdaptableBuffer<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_DROPMethods 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 BufferClosedExceptionStatics. bufferIsClosed(Buffer buffer)static BufferReadOnlyExceptionStatics. bufferIsReadOnly(Buffer buffer)static intStatics. bytesBefore(Buffer haystack, Statics.UncheckedLoadByte hl, Buffer needle, Statics.UncheckedLoadByte nl)static CharSequenceStatics. copyToCharSequence(Buffer source, int srcIdx, int length, Charset charset)static voidStatics. copyToViaReverseLoop(Buffer src, int srcPos, Buffer dest, int destPos, int length)static booleanStatics. equals(Buffer a, int aStartIndex, Buffer b, int bStartIndex, int length)static booleanStatics. equals(Buffer bufferA, Buffer bufferB)static intStatics. hashCode(Buffer buffer)byteStatics.UncheckedLoadByte. load(Buffer buffer, int offset)static CharSequenceStatics. readCharSequence(Buffer source, int length, Charset charset)static StringStatics. toString(Buffer source, Charset charset)static voidStatics. 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 BufferPooledBufferAllocator. 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 BufferUnsafeMemoryManager. allocateConstChild(Buffer readOnlyConstParent)BufferUnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferUnsafeMemoryManager. 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 BufferUnsafeMemoryManager. allocateConstChild(Buffer readOnlyConstParent)ObjectUnsafeMemoryManager. unwrapRecoverableMemory(Buffer buf)Method parameters in io.netty5.buffer.api.unsafe with type arguments of type Buffer Modifier and Type Method Description BufferUnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferUnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferUnsafeMemoryManager. 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 BufferDefaultMaxMessagesRecvBufferAllocator.MaxMessageHandle. allocate(BufferAllocator alloc)BufferRecvBufferAllocator.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 BufferAbstractCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)Calculate the result ofcurrent + next.protected BufferCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)protected BufferAbstractCoalescingBufferQueue. composeFirst(BufferAllocator allocator, Buffer first)Calculate the firstBufferwhich will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(BufferAllocator, Buffer, Buffer).protected BufferAbstractCoalescingBufferQueue. composeIntoComposite(BufferAllocator alloc, Buffer cumulation, Buffer next)protected BufferAbstractCoalescingBufferQueue. copyAndCompose(BufferAllocator alloc, Buffer cumulation, Buffer next, int minIncrement)BufferAbstractCoalescingBufferQueue. remove(BufferAllocator alloc, int bytes, Promise<Void> aggregatePromise)Remove aBufferfrom the queue with the specified number of bytes.BufferCoalescingBufferQueue. remove(int bytes, Promise<Void> aggregatePromise)Remove aBufferfrom the queue with the specified number of bytes.protected abstract BufferAbstractCoalescingBufferQueue. removeEmptyValue()The value to return whenAbstractCoalescingBufferQueue.remove(BufferAllocator, int, Promise)is called but the queue is empty.protected BufferCoalescingBufferQueue. removeEmptyValue()BufferAbstractCoalescingBufferQueue. removeFirst(Promise<Void> aggregatePromise)Remove the firstBufferfrom the queue.Methods in io.netty5.channel with parameters of type Buffer Modifier and Type Method Description voidAbstractCoalescingBufferQueue. add(Buffer buf)Add a buffer to the end of the queue.voidAbstractCoalescingBufferQueue. 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.voidAbstractCoalescingBufferQueue. 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.voidAbstractCoalescingBufferQueue. 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 BufferAbstractCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)Calculate the result ofcurrent + next.protected BufferCoalescingBufferQueue. compose(BufferAllocator alloc, Buffer cumulation, Buffer next)protected BufferAbstractCoalescingBufferQueue. composeFirst(BufferAllocator allocator, Buffer first)Calculate the firstBufferwhich will be used in subsequent calls toAbstractCoalescingBufferQueue.compose(BufferAllocator, Buffer, Buffer).protected BufferAbstractCoalescingBufferQueue. composeIntoComposite(BufferAllocator alloc, Buffer cumulation, Buffer next)protected BufferAbstractCoalescingBufferQueue. copyAndCompose(BufferAllocator alloc, Buffer cumulation, Buffer next, int minIncrement)abstract TBufferAddressedEnvelope. 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 specifiedmessageandrecipientaddress.DefaultBufferAddressedEnvelope(Buffer message, A recipient, A sender)Creates a new instance with the specifiedmessage,recipientaddress, andsenderaddress. -
Uses of Buffer in io.netty5.channel.nio
Methods in io.netty5.channel.nio that return Buffer Modifier and Type Method Description protected BufferAbstractNioChannel. newDirectBuffer(Buffer buf)Allocates a new off-heap copy of the given buffer, unless the cost of doing so is too high.protected BufferAbstractNioChannel. 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 intAbstractNioByteChannel. doReadBytes(Buffer buf)Read bytes into the givenBufferand return the amount.protected abstract intAbstractNioByteChannel. doWriteBytes(Buffer buf)protected BufferAbstractNioChannel. newDirectBuffer(Buffer buf)Allocates a new off-heap copy of the given buffer, unless the cost of doing so is too high.protected BufferAbstractNioChannel. 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 DatagramPacketDatagramPacket. 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 packetdataandrecipientaddress.DatagramPacket(Buffer message, SocketAddress recipient, SocketAddress sender)Create a new instance with the specified packetdata,recipientaddress, andsenderaddress. -
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 intNioSocketChannel. doReadBytes(Buffer buffer)protected intNioSocketChannel. 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 booleanUnixChannelUtil. isBufferCopyNeededForWrite(Buffer buffer)Checks if the specified buffer has memory address or is composed of n(n <= IOV_MAX) NIO direct buffers.SegmentedDatagramPacketSegmentedDatagramPacket. 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 BufferMessageToByteEncoder. allocateBuffer(ChannelHandlerContext ctx, I msg)Allocate aBufferwhich will be used as argument of#encode(ChannelHandlerContext, I, Buffer).BufferByteToMessageDecoder.Cumulator. cumulate(BufferAllocator alloc, Buffer cumulation, Buffer in)BufferByteToMessageDecoder.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 BufferLengthFieldBasedFrameDecoder. extractFrame(ChannelHandlerContext ctx, Buffer buffer, int length)Extract the sub-region of the specified buffer.protected BufferLengthFieldPrepender. getLengthFieldBuffer(ChannelHandlerContext ctx, int length, int lengthFieldLength, ByteOrder byteOrder)Encodes the length into a buffer which will be prepended as the length field.protected BufferByteToMessageDecoder. 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 BufferByteToMessageDecoder.Cumulator. cumulate(BufferAllocator alloc, Buffer cumulation, Buffer in)protected abstract voidByteToMessageCodec. decode(ChannelHandlerContext ctx, Buffer in)protected abstract voidByteToMessageDecoder. decode(ChannelHandlerContext ctx, Buffer in)Decode the from oneBufferto another.protected voidDelimiterBasedFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)protected voidFixedLengthFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)protected voidLengthFieldBasedFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)protected voidLineBasedFrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)protected ObjectDelimiterBasedFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer buffer)Create a frame out of theBufferand return it.protected ObjectFixedLengthFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer in)Create a frame out of theBufferand return it.protected ObjectLengthFieldBasedFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer buffer)Create a frame out of theBufferand return it.protected ObjectLineBasedFrameDecoder. decode0(ChannelHandlerContext ctx, Buffer buffer)Create a frame out of theBufferand return it.protected voidByteToMessageCodec. decodeLast(ChannelHandlerContext ctx, Buffer in)protected voidByteToMessageDecoder. decodeLast(ChannelHandlerContext ctx, Buffer in)Is called one last time when theChannelHandlerContextgoes in-active.BufferByteToMessageDecoder.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 voidByteToMessageCodec. encode(ChannelHandlerContext ctx, I msg, Buffer out)protected voidLengthFieldPrepender. encode(ChannelHandlerContext ctx, Buffer buffer, List<Object> out)protected abstract voidMessageToByteEncoder. encode(ChannelHandlerContext ctx, I msg, Buffer out)Encode a message into aBuffer.protected BufferLengthFieldBasedFrameDecoder. extractFrame(ChannelHandlerContext ctx, Buffer buffer, int length)Extract the sub-region of the specified buffer.protected longLengthFieldBasedFrameDecoder. 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 aDatagramPacketdecoder using the specifiedBufferdecoder. -
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 BufferBase64. decode(Buffer src)static BufferBase64. decode(Buffer src, int off, int len)static BufferBase64. decode(Buffer src, int off, int len, Base64Dialect dialect)static BufferBase64. decode(Buffer src, int off, int len, Base64Dialect dialect, BufferAllocator allocator)static BufferBase64. decode(Buffer src, Base64Dialect dialect)static BufferBase64. encode(Buffer src)static BufferBase64. encode(Buffer src, boolean breakLines)static BufferBase64. encode(Buffer src, boolean breakLines, Base64Dialect dialect)static BufferBase64. encode(Buffer src, int off, int len)static BufferBase64. encode(Buffer src, int off, int len, boolean breakLines)static BufferBase64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect)static BufferBase64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect, BufferAllocator allocator)static BufferBase64. encode(Buffer src, int off, int len, Base64Dialect dialect)static BufferBase64. encode(Buffer src, Base64Dialect dialect)Methods in io.netty5.handler.codec.base64 with parameters of type Buffer Modifier and Type Method Description static BufferBase64. decode(Buffer src)static BufferBase64. decode(Buffer src, int off, int len)static BufferBase64. decode(Buffer src, int off, int len, Base64Dialect dialect)static BufferBase64. decode(Buffer src, int off, int len, Base64Dialect dialect, BufferAllocator allocator)static BufferBase64. decode(Buffer src, Base64Dialect dialect)protected voidBase64Decoder. decode(ChannelHandlerContext ctx, Buffer msg)static BufferBase64. encode(Buffer src)static BufferBase64. encode(Buffer src, boolean breakLines)static BufferBase64. encode(Buffer src, boolean breakLines, Base64Dialect dialect)static BufferBase64. encode(Buffer src, int off, int len)static BufferBase64. encode(Buffer src, int off, int len, boolean breakLines)static BufferBase64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect)static BufferBase64. encode(Buffer src, int off, int len, boolean breakLines, Base64Dialect dialect, BufferAllocator allocator)static BufferBase64. encode(Buffer src, int off, int len, Base64Dialect dialect)static BufferBase64. encode(Buffer src, Base64Dialect dialect)protected voidBase64Encoder. 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 voidByteArrayDecoder. 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 BufferBrotliCompressor. compress(Buffer input, BufferAllocator allocator)BufferBzip2Compressor. compress(Buffer in, BufferAllocator allocator)BufferCompressor. compress(Buffer input, BufferAllocator allocator)This method will read from the inputBufferand compress into a newBufferthat will be allocated (if needed) from theBufferAllocator.BufferFastLzCompressor. compress(Buffer in, BufferAllocator allocator)BufferLz4Compressor. compress(Buffer input, BufferAllocator allocator)BufferLzfCompressor. compress(Buffer in, BufferAllocator allocator)BufferLzmaCompressor. compress(Buffer in, BufferAllocator allocator)BufferSnappyCompressor. compress(Buffer in, BufferAllocator allocator)BufferZlibCompressor. compress(Buffer uncompressed, BufferAllocator allocator)BufferZstdCompressor. compress(Buffer in, BufferAllocator allocator)BufferBrotliDecompressor. decompress(Buffer input, BufferAllocator allocator)BufferBzip2Decompressor. decompress(Buffer in, BufferAllocator allocator)BufferDecompressor. decompress(Buffer input, BufferAllocator allocator)This method will read from the inputBufferand decompress into a newBufferthat will be allocated (if needed) from theBufferAllocator.BufferFastLzDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferLz4Decompressor. decompress(Buffer in, BufferAllocator allocator)BufferLzfDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferSnappyDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferZlibDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferBrotliCompressor. finish(BufferAllocator allocator)BufferBzip2Compressor. finish(BufferAllocator allocator)BufferCompressor. finish(BufferAllocator allocator)By calling this method we signal that the compression stream is marked as finish.BufferFastLzCompressor. finish(BufferAllocator allocator)BufferLz4Compressor. finish(BufferAllocator allocator)BufferLzfCompressor. finish(BufferAllocator allocator)BufferLzmaCompressor. finish(BufferAllocator allocator)BufferSnappyCompressor. finish(BufferAllocator allocator)BufferZlibCompressor. finish(BufferAllocator allocator)BufferZstdCompressor. finish(BufferAllocator allocator)protected BufferZlibDecompressor. 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 BufferBrotliCompressor. compress(Buffer input, BufferAllocator allocator)BufferBzip2Compressor. compress(Buffer in, BufferAllocator allocator)BufferCompressor. compress(Buffer input, BufferAllocator allocator)This method will read from the inputBufferand compress into a newBufferthat will be allocated (if needed) from theBufferAllocator.BufferFastLzCompressor. compress(Buffer in, BufferAllocator allocator)BufferLz4Compressor. compress(Buffer input, BufferAllocator allocator)BufferLzfCompressor. compress(Buffer in, BufferAllocator allocator)BufferLzmaCompressor. compress(Buffer in, BufferAllocator allocator)BufferSnappyCompressor. compress(Buffer in, BufferAllocator allocator)BufferZlibCompressor. compress(Buffer uncompressed, BufferAllocator allocator)BufferZstdCompressor. compress(Buffer in, BufferAllocator allocator)protected voidDecompressionHandler. decode(ChannelHandlerContext ctx, Buffer in)voidSnappy. decode(Buffer in, Buffer out)BufferBrotliDecompressor. decompress(Buffer input, BufferAllocator allocator)BufferBzip2Decompressor. decompress(Buffer in, BufferAllocator allocator)BufferDecompressor. decompress(Buffer input, BufferAllocator allocator)This method will read from the inputBufferand decompress into a newBufferthat will be allocated (if needed) from theBufferAllocator.BufferFastLzDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferLz4Decompressor. decompress(Buffer in, BufferAllocator allocator)BufferLzfDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferSnappyDecompressor. decompress(Buffer in, BufferAllocator allocator)BufferZlibDecompressor. decompress(Buffer in, BufferAllocator allocator)protected voidZlibDecompressor. decompressionBufferExhausted(Buffer buffer)voidSnappy. encode(Buffer in, Buffer out, int length)protected BufferZlibDecompressor. prepareDecompressBuffer(BufferAllocator allocator, Buffer buffer, int preferredSize)Allocate or expand the decompression buffer, without exceeding the maximum allocation.voidLz4XXHash32. 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 BufferDatagramDnsQueryEncoder. allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsQuery,InetSocketAddress> msg)Allocate aBufferwhich will be used for constructing a datagram packet.protected BufferDatagramDnsResponseEncoder. allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse,InetSocketAddress> msg)Allocate aBufferwhich will be used for constructing a datagram packet.protected BufferTcpDnsQueryEncoder. allocateBuffer(ChannelHandlerContext ctx, DnsQuery msg)BufferDefaultDnsRawRecord. content()BufferDnsRawRecord. content()Get a reference to theBufferbacking this raw DNS record.Methods in io.netty5.handler.codec.dns with parameters of type Buffer Modifier and Type Method Description protected ObjectTcpDnsQueryDecoder. decode0(ChannelHandlerContext ctx, Buffer in)protected ObjectTcpDnsResponseDecoder. decode0(ChannelHandlerContext ctx, Buffer in)static StringDefaultDnsRecordDecoder. decodeName(Buffer in)Retrieves a domain name given a buffer containing a DNS packet.protected StringDefaultDnsRecordDecoder. decodeName0(Buffer in)Retrieves a domain name given a buffer containing a DNS packet.DnsQuestionDefaultDnsRecordDecoder. decodeQuestion(Buffer in)DnsQuestionDnsRecordDecoder. decodeQuestion(Buffer in)Decodes a DNS question into its object representation.<T extends DnsRecord>
TDefaultDnsRecordDecoder. decodeRecord(BufferAllocator allocator, Buffer in)protected DnsRecordDefaultDnsRecordDecoder. 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 voidTcpDnsQueryEncoder. encode(ChannelHandlerContext ctx, DnsQuery msg, Buffer out)protected voidDefaultDnsRecordEncoder. encodeName(String name, Buffer buf)voidDefaultDnsRecordEncoder. encodeQuestion(DnsQuestion question, Buffer out)voidDnsRecordEncoder. encodeQuestion(DnsQuestion question, Buffer out)Encodes aDnsQuestion.voidDefaultDnsRecordEncoder. encodeRecord(DnsRecord record, Buffer out)voidDnsRecordEncoder. encodeRecord(DnsRecord record, Buffer out)Encodes aDnsRecord.DnsRawRecordDefaultDnsRawRecord. 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-classrecord.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 BufferHttpObjectEncoder. crlfBuffer(BufferAllocator allocator)BufferDefaultFullHttpRequest. payload()BufferDefaultFullHttpResponse. payload()BufferDefaultHttpContent. payload()BufferDefaultLastHttpContent. payload()BufferEmptyLastHttpContent. payload()BufferHttpContent. payload()Returns theBufferrepresenting the payload of the HTTP message.protected BufferHttpObjectEncoder. zeroCrlfCrlfBuffer(BufferAllocator allocator)Methods in io.netty5.handler.codec.http with parameters of type Buffer Modifier and Type Method Description protected voidHttpObjectDecoder. decode(ChannelHandlerContext ctx, Buffer buffer)protected voidHttpObjectDecoder. decodeLast(ChannelHandlerContext ctx, Buffer in)protected voidHttpObjectEncoder. encodeHeaders(HttpHeaders headers, Buffer buf)Encode theHttpHeadersinto aBuffer.protected abstract voidHttpObjectEncoder. encodeInitialLine(Buffer buf, H message)protected voidHttpRequestEncoder. encodeInitialLine(Buffer buf, HttpRequest request)protected voidHttpResponseEncoder. 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 BufferWebSocketFrame. binaryData()Methods in io.netty5.handler.codec.http.websocketx with parameters of type Buffer Modifier and Type Method Description protected voidWebSocket13FrameDecoder. checkCloseFrameBody(ChannelHandlerContext ctx, Buffer buffer)protected voidWebSocket13FrameDecoder. decode(ChannelHandlerContext ctx, Buffer in)protected WebSocketFrameBinaryWebSocketFrame. receive(Buffer buf)protected WebSocketFrameCloseWebSocketFrame. receive(Buffer buf)protected WebSocketFrameContinuationWebSocketFrame. receive(Buffer buf)protected WebSocketFramePingWebSocketFrame. receive(Buffer buf)protected WebSocketFramePongWebSocketFrame. receive(Buffer buf)protected WebSocketFrameTextWebSocketFrame. 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_BUFFERMethods in io.netty5.handler.codec.http2 that return Buffer Modifier and Type Method Description static BufferHttp2CodecUtil. connectionPrefaceBuffer()Returns a buffer containing theHttp2CodecUtil.CONNECTION_PREFACE_BUFFER.BufferDefaultHttp2DataFrame. content()BufferDefaultHttp2GoAwayFrame. content()BufferDefaultHttp2UnknownFrame. content()BufferHttp2DataFrame. content()Payload of DATA frame.BufferHttp2GoAwayFrame. content()Optional debugging information describing cause the GOAWAY.BufferHttp2UnknownFrame. content()Get the data content associated with this unknown frame.static BufferHttp2CodecUtil. 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 voidCleartextHttp2ServerUpgradeHandler. decode(ChannelHandlerContext ctx, Buffer in)Peek inbound message to determine current connection wants to start HTTP/2 by HTTP upgrade or prior knowledgeprotected voidHttp2ConnectionHandler. decode(ChannelHandlerContext ctx, Buffer in)voidDecoratingHttp2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, Buffer in)voidDefaultHttp2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, Buffer in)voidHttp2ConnectionDecoder. decodeFrame(ChannelHandlerContext ctx, Buffer in)Called by theHttp2ConnectionHandlerto decode the next frame from the input buffer.Http2HeadersDefaultHttp2HeadersDecoder. decodeHeaders(int streamId, Buffer headerBlock)Http2HeadersHttp2HeadersDecoder. decodeHeaders(int streamId, Buffer headerBlock)Decodes the given headers block and returns the headers.voidDefaultHttp2HeadersEncoder. encodeHeaders(int streamId, Http2Headers headers, Buffer buffer)voidHttp2HeadersEncoder. 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 iferrorCodeis notHttp2Error.NO_ERROR.voidDefaultHttp2Connection. goAwayReceived(int lastKnownStream, long errorCode, Buffer debugData)voidHttp2Connection. goAwayReceived(int lastKnownStream, long errorCode, Buffer message)Indicates that aGOAWAYwas received from the remote endpoint and sets the last known stream.booleanDefaultHttp2Connection. goAwaySent(int lastKnownStream, long errorCode, Buffer debugData)booleanHttp2Connection. goAwaySent(int lastKnownStream, long errorCode, Buffer 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, Buffer data, int padding, boolean endStream)voidHttp2FrameLogger. logGoAway(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)voidHttp2FrameLogger. logUnknownFrame(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer data)intDelegatingDecompressorFrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)intHttp2EventAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)intHttp2FrameAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)intHttp2FrameListener. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)Handles an inboundDATAframe.intHttp2FrameListenerDecorator. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)intInboundHttp2ToHttpAdapter. onDataRead(ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endOfStream)voidHttp2EventAdapter. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)voidHttp2FrameAdapter. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)voidHttp2FrameListener. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)Handles an inboundGO_AWAYframe.voidHttp2FrameListenerDecorator. onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)voidHttp2Connection.Listener. onGoAwayReceived(int lastStreamId, long errorCode, Buffer debugData)Called when aGOAWAYwas received from the remote endpoint.voidHttp2ConnectionAdapter. onGoAwayReceived(int lastStreamId, long errorCode, Buffer debugData)voidHttp2EventAdapter. onGoAwayReceived(int lastStreamId, long errorCode, Buffer debugData)voidHttp2Connection.Listener. onGoAwaySent(int lastStreamId, long errorCode, Buffer debugData)Called when aGOAWAYframe was sent for the connection.voidHttp2ConnectionAdapter. onGoAwaySent(int lastStreamId, long errorCode, Buffer debugData)voidHttp2EventAdapter. onGoAwaySent(int lastStreamId, long errorCode, Buffer debugData)voidHttp2EventAdapter. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)voidHttp2FrameAdapter. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)voidHttp2FrameListener. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)Handler for a frame not defined by the HTTP/2 spec.voidHttp2FrameListenerDecorator. onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)voidDefaultHttp2FrameReader. readFrame(ChannelHandlerContext ctx, Buffer input, Http2FrameListener listener)voidHttp2FrameReader. readFrame(ChannelHandlerContext ctx, Buffer input, Http2FrameListener listener)Attempts to read the next frame from the input buffer.voidHttp2InboundFrameLogger. readFrame(ChannelHandlerContext ctx, Buffer input, Http2FrameListener listener)static intHttp2CodecUtil. readUnsignedInt(Buffer buf)Reads a big-endian (31-bit) integer from the buffer.protected Http2GoAwayFrameDefaultHttp2GoAwayFrame. receive(Buffer buf)protected DefaultHttp2UnknownFrameDefaultHttp2UnknownFrame. receive(Buffer buf)voidDefaultHttp2LocalFlowController. receiveFlowControlledFrame(Http2Stream stream, Buffer data, int padding, boolean endOfStream)voidHttp2LocalFlowController. receiveFlowControlledFrame(Http2Stream stream, Buffer 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, Buffer content, boolean validateHttpHeaders, BufferAllocator allocator)Create a new object to contain the request datastatic FullHttpResponseHttpConversionUtil. 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 aDATAframe 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 internalHttp2FrameWriterwithout 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 voidHttp2CodecUtil. 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 voidRtspEncoder. 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 voidStringDecoder. 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 BufferPemPrivateKey. content()BufferPemX509Certificate. content()Methods in io.netty5.handler.ssl with parameters of type Buffer Modifier and Type Method Description protected voidOptionalSslHandler. decode(ChannelHandlerContext context, Buffer in)protected voidSslClientHelloHandler. decode(ChannelHandlerContext ctx, Buffer in)protected voidSslHandler. decode(ChannelHandlerContext ctx, Buffer in)static booleanSslHandler. isEncrypted(Buffer buffer)Returnstrueif the givenBufferis 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 givenClientHelloand returns aFuturewhich in turn will notify theSslClientHelloHandler.onLookupComplete(ChannelHandlerContext, Future)on completion.protected PemPrivateKeyPemPrivateKey. receive(Buffer buf)static PemPrivateKeyPemPrivateKey. valueOf(Buffer key)Creates aPemPrivateKeyfrom rawBuffer.static PemX509CertificatePemX509Certificate. valueOf(Buffer key)Creates aPemX509Certificatefrom rawBuffer. -
Uses of Buffer in io.netty5.handler.stream
Methods in io.netty5.handler.stream that return Buffer Modifier and Type Method Description BufferChunkedFile. readChunk(BufferAllocator allocator)BufferChunkedNioFile. readChunk(BufferAllocator allocator)BufferChunkedNioStream. readChunk(BufferAllocator allocator)BufferChunkedStream. readChunk(BufferAllocator allocator)
-