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. -
-
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(io.netty5.util.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)io.netty5.util.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(io.netty5.util.Send<Buffer> send)Compose the send of a buffer and present them as a single buffer.default CompositeBufferBufferAllocator. compose(Iterable<io.netty5.util.Send<Buffer>> sends)Compose the given sequence of sends of buffers and present them as a single buffer.CompositeBufferCompositeBuffer. extendWith(io.netty5.util.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(io.netty5.util.Send<Buffer> send)Replace the underlying referenced buffer with the given buffer.protected voidBufferHolder. replaceBuffer(io.netty5.util.Send<Buffer> send)Replace the underlying referenced buffer with the given buffer.protected voidBufferHolder. replaceBufferVolatile(io.netty5.util.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(io.netty5.util.Send<Buffer> send)BufferRef(io.netty5.util.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)
-