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.adaptor Helpers for integrating with the existingByteBufAPI.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.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.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.BufferBuffer. copy(int offset, int length)Returns a copy of the given region of this buffer.BufferBufferStub. copy()BufferBufferStub. copy(int offset, int length)default BufferBufferAllocator. copyOf(byte[] bytes)Allocate aBufferwith the same size and contents of the given byte array.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. 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.BufferBuffer. readerOffset(int offset)Set the reader offset.BufferBufferStub. readerOffset(int offset)default BufferBuffer. readSplit(int offset)Splits the buffer into two, at theoffsetfrom the current readerOffset() reader offset} position.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()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. 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.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.BufferBufferStub. writeBytes(byte[] source)BufferBufferStub. writeBytes(Buffer 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.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 offset)Splits the buffer into two, at theoffsetfrom the current writerOffset() writer offset} position.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.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.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.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.adaptor
Classes in io.netty5.buffer.api.adaptor that implement Buffer Modifier and Type Class Description classByteBufBufferMethods in io.netty5.buffer.api.adaptor that return Buffer Modifier and Type Method Description BufferByteBufMemoryManager. allocateConstChild(Buffer readOnlyConstParent)BufferByteBufMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferByteBufBuffer. compact()BufferByteBufBuffer. copy(int offset, int length)BufferByteBufBuffer. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)static BufferByteBufAdaptor. extract(ByteBuf byteBuf)static BufferByteBufAdaptor. extractOrCopy(BufferAllocator allocator, ByteBuf byteBuf)BufferByteBufBuffer. fill(byte value)BufferByteBufBuffer. makeReadOnly()BufferByteBufBuffer. readerOffset(int offset)BufferByteBufMemoryManager. recoverMemory(AllocatorControl control, Object recoverableMemory, Drop<Buffer> drop)BufferByteBufBuffer. setByte(int woff, byte value)BufferByteBufBuffer. setChar(int woff, char value)BufferByteBufBuffer. setDouble(int woff, double value)BufferByteBufBuffer. setFloat(int woff, float value)BufferByteBufBuffer. setInt(int woff, int value)BufferByteBufBuffer. setLong(int woff, long value)BufferByteBufBuffer. setMedium(int woff, int value)BufferByteBufBuffer. setShort(int woff, short value)BufferByteBufBuffer. setUnsignedByte(int woff, int value)BufferByteBufBuffer. setUnsignedInt(int woff, long value)BufferByteBufBuffer. setUnsignedMedium(int woff, int value)BufferByteBufBuffer. setUnsignedShort(int woff, int value)BufferByteBufBuffer. split(int splitOffset)static BufferByteBufBuffer. wrap(ByteBuf byteBuf)BufferByteBufBuffer. writeByte(byte value)BufferByteBufBuffer. writeChar(char value)BufferByteBufBuffer. writeDouble(double value)BufferByteBufBuffer. writeFloat(float value)BufferByteBufBuffer. writeInt(int value)BufferByteBufBuffer. writeLong(long value)BufferByteBufBuffer. writeMedium(int value)BufferByteBufBuffer. writerOffset(int offset)BufferByteBufBuffer. writeShort(short value)BufferByteBufBuffer. writeUnsignedByte(int value)BufferByteBufBuffer. writeUnsignedInt(long value)BufferByteBufBuffer. writeUnsignedMedium(int value)BufferByteBufBuffer. writeUnsignedShort(int value)Methods in io.netty5.buffer.api.adaptor with parameters of type Buffer Modifier and Type Method Description BufferByteBufMemoryManager. allocateConstChild(Buffer readOnlyConstParent)voidByteBufBuffer. copyInto(int srcPos, Buffer dest, int destPos, int length)static ByteBufByteBufAdaptor. intoByteBuf(Buffer buffer)ObjectByteBufMemoryManager. unwrapRecoverableMemory(Buffer buf)Method parameters in io.netty5.buffer.api.adaptor with type arguments of type Buffer Modifier and Type Method Description BufferByteBufMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferByteBufMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)BufferByteBufMemoryManager. recoverMemory(AllocatorControl control, Object recoverableMemory, Drop<Buffer> drop)Constructors in io.netty5.buffer.api.adaptor with parameters of type Buffer Constructor Description ByteBufAdaptor(ByteBufAllocatorAdaptor alloc, Buffer buffer, int maxCapacity) -
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>Statics. standardDropWrap(Drop<T> drop, MemoryManager manager)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 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)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)
-