Uses of Interface
io.netty5.buffer.api.Buffer
-
Packages that use Buffer Package Description io.netty5.buffer Abstraction of a byte buffer - the fundamental data structure to represent a low-level binary and text message.io.netty5.buffer.api IncubatingBuffer
API, as a proposed alternative toByteBuf
.io.netty5.buffer.api.adaptor Helpers for integrating with the existingByteBuf
API.io.netty5.buffer.api.bytebuffer Safe ByteBuffer based implementation.io.netty5.buffer.api.internal Internal implementation details that can be shared among Buffer implementations.io.netty5.buffer.api.pool A poolingBufferAllocator
implementation based on jemalloc.io.netty5.buffer.api.unsafe ABuffer
implementation that is based onsun.misc.Unsafe
. -
-
Uses of Buffer in io.netty5.buffer
Methods in io.netty5.buffer that return Buffer Modifier and Type Method Description Buffer
BufferOutputStream. buffer()
Returns the buffer where this stream is writing data.Constructors in io.netty5.buffer with parameters of type Buffer Constructor Description BufferOutputStream(Buffer buffer)
Creates a new stream which writes data to the specifiedbuffer
.Constructor parameters in io.netty5.buffer with type arguments of type Buffer Constructor Description BufferInputStream(Send<Buffer> buffer)
Creates a new stream which reads data from the specifiedbuffer
starting at the currentreaderOffset
and ending at the currentwriterOffset
. -
Uses of Buffer in io.netty5.buffer.api
Subinterfaces of Buffer in io.netty5.buffer.api Modifier and Type Interface Description interface
CompositeBuffer
TheCompositeBuffer
is a concreteBuffer
implementation that make a number of other buffers appear as one.Classes in io.netty5.buffer.api that implement Buffer Modifier and Type Class Description class
BufferStub
A stub of aBuffer
implementation that implements all buffer methods by delegating them to a wrapped buffer instance.Fields in io.netty5.buffer.api declared as Buffer Modifier and Type Field Description protected Buffer
BufferStub. delegate
Methods in io.netty5.buffer.api that return Buffer Modifier and Type Method Description Buffer
BufferAllocator. allocate(int size)
Allocate aBuffer
of the given size in bytes.Buffer
MemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Allocates a constant buffer based on the given parent.Buffer
MemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Allocates a shared buffer.Buffer
Buffer. compact()
Discards the read bytes, and moves the buffer contents to the beginning of the buffer.Buffer
BufferStub. compact()
Buffer
BufferRef. content()
Access the buffer in this reference.default Buffer
Buffer. copy()
Returns a copy of this buffer's readable bytes.Buffer
Buffer. copy(int offset, int length)
Returns a copy of the given region of this buffer.Buffer
BufferStub. copy()
Buffer
BufferStub. copy(int offset, int length)
default Buffer
BufferAllocator. copyOf(byte[] bytes)
Allocate aBuffer
with the same size and contents of the given byte array.default Buffer
BufferAllocator. copyOf(ByteBuffer buffer)
Allocate aBuffer
with the same size and contents, as the contents of the givenByteBuffer
.Buffer[]
CompositeBuffer. decomposeBuffer()
Break a composite buffer into its constituent components.default Buffer
Buffer. ensureWritable(int size)
Ensures that this buffer has at least the given number of bytes of available space for writing.Buffer
Buffer. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)
Ensures that this buffer has at least the given number of bytes of available space for writing.Buffer
BufferStub. ensureWritable(int size)
Buffer
BufferStub. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)
Buffer
Buffer. fill(byte value)
Fills the buffer with the given byte value.Buffer
BufferStub. fill(byte value)
protected Buffer
BufferHolder. getBuffer()
Access the heldBuffer
instance.protected Buffer
BufferHolder. getBufferVolatile()
Access the heldBuffer
instance.Buffer
Buffer. makeReadOnly()
Makes this buffer read-only.Buffer
BufferStub. makeReadOnly()
default Buffer
Buffer. readBytes(byte[] destination, int destPos, int length)
Read from this buffer, into the destination array, the given number of bytes.Buffer
Buffer. readerOffset(int offset)
Set the reader offset.Buffer
BufferStub. readerOffset(int offset)
default Buffer
Buffer. readSplit(int offset)
Splits the buffer into two, at theoffset
from the current readerOffset() reader offset} position.Buffer
MemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Recover the memory from a priorMemoryManager.unwrapRecoverableMemory(Buffer)
call, and wrap it in aBuffer
instance.default Buffer
Buffer. resetOffsets()
Resets the read offset and the write offset on this buffer to zero, and return this buffer.Buffer
BufferStub. resetOffsets()
Buffer
BufferAccessor. setByte(int woff, byte value)
Set the given byte value at the given write offset.Buffer
BufferStub. setByte(int woff, byte value)
Buffer
BufferAccessor. setChar(int woff, char value)
Set the given char value at the given write offset.Buffer
BufferStub. setChar(int woff, char value)
Buffer
BufferAccessor. setDouble(int woff, double value)
Set the given double value at the given write offset.Buffer
BufferStub. setDouble(int woff, double value)
Buffer
BufferAccessor. setFloat(int woff, float value)
Set the given float value at the given write offset.Buffer
BufferStub. setFloat(int woff, float value)
Buffer
BufferAccessor. setInt(int woff, int value)
Set the given int value at the given write offset.Buffer
BufferStub. setInt(int woff, int value)
Buffer
BufferAccessor. setLong(int woff, long value)
Set the given long value at the given write offset.Buffer
BufferStub. setLong(int woff, long value)
Buffer
BufferAccessor. setMedium(int woff, int value)
Set the given int value at the given write offset.Buffer
BufferStub. setMedium(int woff, int value)
Buffer
BufferAccessor. setShort(int woff, short value)
Set the given short value at the given write offset.Buffer
BufferStub. setShort(int woff, short value)
Buffer
BufferAccessor. setUnsignedByte(int woff, int value)
Set the given unsigned byte value at the given write offset.Buffer
BufferStub. setUnsignedByte(int woff, int value)
Buffer
BufferAccessor. setUnsignedInt(int woff, long value)
Set the given unsigned int value at the given write offset.Buffer
BufferStub. setUnsignedInt(int woff, long value)
Buffer
BufferAccessor. setUnsignedMedium(int woff, int value)
Set the given unsigned int value at the given write offset.Buffer
BufferStub. setUnsignedMedium(int woff, int value)
Buffer
BufferAccessor. setUnsignedShort(int woff, int value)
Set the given unsigned short value at the given write offset.Buffer
BufferStub. setUnsignedShort(int woff, int value)
default Buffer
Buffer. split()
Splits the buffer into two, at the write offset position.Buffer
Buffer. split(int splitOffset)
Splits the buffer into two, at the givensplitOffset
.Buffer
BufferStub. split()
Buffer
BufferStub. split(int splitOffset)
Buffer
BufferStub. touch(Object hint)
static Buffer
MemoryManager. unsafeWrap(byte[] array)
Create a new on-heapBuffer
instance that directly wraps the given array.Buffer
BufferAccessor. writeByte(byte value)
Write the given byte value at the currentwriterOffset()
, and increase the writer offset byByte.BYTES
.Buffer
BufferStub. writeByte(byte value)
default Buffer
Buffer. writeBytes(byte[] source)
Writes into this buffer, all the bytes from the given byte array.default Buffer
Buffer. writeBytes(byte[] source, int srcPos, int length)
Writes into this buffer, the given number of bytes from the byte array.default Buffer
Buffer. writeBytes(Buffer source)
Writes into this buffer, all the readable bytes from the given buffer.Buffer
BufferStub. writeBytes(byte[] source)
Buffer
BufferStub. writeBytes(Buffer source)
Buffer
BufferAccessor. writeChar(char value)
Write the given char value at the currentwriterOffset()
, and increase the writer offset by 2.Buffer
BufferStub. writeChar(char value)
default Buffer
Buffer. writeCharSequence(CharSequence source, Charset charset)
Writes into this buffer, all the bytes from the givensource
using the passedcharset
.Buffer
BufferAccessor. writeDouble(double value)
Write the given double value at the currentwriterOffset()
, and increase the writer offset byDouble.BYTES
.Buffer
BufferStub. writeDouble(double value)
Buffer
BufferAccessor. writeFloat(float value)
Write the given float value at the currentwriterOffset()
, and increase the writer offset byFloat.BYTES
.Buffer
BufferStub. writeFloat(float value)
Buffer
BufferAccessor. writeInt(int value)
Write the given int value at the currentwriterOffset()
, and increase the writer offset byInteger.BYTES
.Buffer
BufferStub. writeInt(int value)
Buffer
BufferAccessor. writeLong(long value)
Write the given long value at the currentwriterOffset()
, and increase the writer offset byLong.BYTES
.Buffer
BufferStub. writeLong(long value)
Buffer
BufferAccessor. writeMedium(int value)
Write the given int value at the currentwriterOffset()
, and increase the writer offset by 3.Buffer
BufferStub. writeMedium(int value)
Buffer
Buffer. writerOffset(int offset)
Set the writer offset.Buffer
BufferStub. writerOffset(int offset)
Buffer
BufferAccessor. writeShort(short value)
Write the given short value at the currentwriterOffset()
, and increase the writer offset byShort.BYTES
.Buffer
BufferStub. writeShort(short value)
default Buffer
Buffer. writeSplit(int offset)
Splits the buffer into two, at theoffset
from the current writerOffset() writer offset} position.Buffer
BufferAccessor. writeUnsignedByte(int value)
Write the given unsigned byte value at the currentwriterOffset()
, and increase the writer offset byByte.BYTES
.Buffer
BufferStub. writeUnsignedByte(int value)
Buffer
BufferAccessor. writeUnsignedInt(long value)
Write the given unsigned int value at the currentwriterOffset()
, and increase the writer offset byInteger.BYTES
.Buffer
BufferStub. writeUnsignedInt(long value)
Buffer
BufferAccessor. writeUnsignedMedium(int value)
Write the given unsigned int value at the currentwriterOffset()
, and increase the writer offset by 3.Buffer
BufferStub. writeUnsignedMedium(int value)
Buffer
BufferAccessor. writeUnsignedShort(int value)
Write the given unsigned short value at the currentwriterOffset()
, and increase the writer offset byShort.BYTES
.Buffer
BufferStub. writeUnsignedShort(int value)
Methods in io.netty5.buffer.api that return types with arguments of type Buffer Modifier and Type Method Description Supplier<Buffer>
BufferAllocator. constBufferSupplier(byte[] bytes)
Create a supplier of "constant" Buffers from this allocator, that all have the given byte contents.Send<Buffer>
BufferStub. send()
Methods in io.netty5.buffer.api with parameters of type Buffer Modifier and Type Method Description Buffer
MemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Allocates a constant buffer based on the given parent.void
Buffer. copyInto(int srcPos, Buffer dest, int destPos, int length)
Copies the given length of data from this buffer into the given destination buffer, beginning at the given source position in this buffer, and the given destination position in the destination buffer.void
BufferStub. copyInto(int srcPos, Buffer dest, int destPos, int length)
static boolean
CompositeBuffer. isComposite(Buffer composite)
Check if the given buffer is a composite buffer or not.protected abstract T
BufferHolder. receive(Buffer buf)
Called when a sentBufferHolder
is received by the recipient.protected BufferRef
BufferRef. receive(Buffer buf)
Object
MemoryManager. unwrapRecoverableMemory(Buffer buf)
Create an object that represents the internal memory of the given buffer.default Buffer
Buffer. writeBytes(Buffer source)
Writes into this buffer, all the readable bytes from the given buffer.Buffer
BufferStub. writeBytes(Buffer source)
default CompositeBuffer
CompositeBuffer. writeBytes(Buffer source)
Method parameters in io.netty5.buffer.api with type arguments of type Buffer Modifier and Type Method Description Buffer
MemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Allocates a shared buffer.Buffer
MemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Allocates a shared buffer.CompositeBuffer
CompositeBuffer. extendWith(Send<Buffer> extension)
Extend this composite buffer with the given extension buffer.Buffer
MemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Recover the memory from a priorMemoryManager.unwrapRecoverableMemory(Buffer)
call, and wrap it in aBuffer
instance.void
BufferRef. replace(Send<Buffer> send)
Replace the underlying referenced buffer with the given buffer.protected void
BufferHolder. replaceBuffer(Send<Buffer> send)
Replace the underlying referenced buffer with the given buffer.protected void
BufferHolder. replaceBufferVolatile(Send<Buffer> send)
Replace the underlying referenced buffer with the given buffer.Constructors in io.netty5.buffer.api with parameters of type Buffer Constructor Description BufferHolder(Buffer buf)
Create a newBufferHolder
to hold the given buffer.BufferStub(Buffer delegate)
Create a new buffer stub that delegates all calls to the given instance.Constructor parameters in io.netty5.buffer.api with type arguments of type Buffer Constructor Description BufferHolder(Send<Buffer> send)
BufferRef(Send<Buffer> send)
Create a reference that holds the exclusive ownership of the sent buffer. -
Uses of Buffer in io.netty5.buffer.api.adaptor
Classes in io.netty5.buffer.api.adaptor that implement Buffer Modifier and Type Class Description class
ByteBufBuffer
Methods in io.netty5.buffer.api.adaptor that return Buffer Modifier and Type Method Description Buffer
ByteBufMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Buffer
ByteBufMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufBuffer. compact()
Buffer
ByteBufBuffer. copy(int offset, int length)
Buffer
ByteBufBuffer. ensureWritable(int size, int minimumGrowth, boolean allowCompaction)
static Buffer
ByteBufAdaptor. extract(ByteBuf byteBuf)
static Buffer
ByteBufAdaptor. extractOrCopy(BufferAllocator allocator, ByteBuf byteBuf)
Buffer
ByteBufBuffer. fill(byte value)
Buffer
ByteBufBuffer. makeReadOnly()
Buffer
ByteBufBuffer. readerOffset(int offset)
Buffer
ByteBufMemoryManager. recoverMemory(AllocatorControl control, Object recoverableMemory, Drop<Buffer> drop)
Buffer
ByteBufBuffer. setByte(int woff, byte value)
Buffer
ByteBufBuffer. setChar(int woff, char value)
Buffer
ByteBufBuffer. setDouble(int woff, double value)
Buffer
ByteBufBuffer. setFloat(int woff, float value)
Buffer
ByteBufBuffer. setInt(int woff, int value)
Buffer
ByteBufBuffer. setLong(int woff, long value)
Buffer
ByteBufBuffer. setMedium(int woff, int value)
Buffer
ByteBufBuffer. setShort(int woff, short value)
Buffer
ByteBufBuffer. setUnsignedByte(int woff, int value)
Buffer
ByteBufBuffer. setUnsignedInt(int woff, long value)
Buffer
ByteBufBuffer. setUnsignedMedium(int woff, int value)
Buffer
ByteBufBuffer. setUnsignedShort(int woff, int value)
Buffer
ByteBufBuffer. split(int splitOffset)
static Buffer
ByteBufBuffer. wrap(ByteBuf byteBuf)
Buffer
ByteBufBuffer. writeByte(byte value)
Buffer
ByteBufBuffer. writeChar(char value)
Buffer
ByteBufBuffer. writeDouble(double value)
Buffer
ByteBufBuffer. writeFloat(float value)
Buffer
ByteBufBuffer. writeInt(int value)
Buffer
ByteBufBuffer. writeLong(long value)
Buffer
ByteBufBuffer. writeMedium(int value)
Buffer
ByteBufBuffer. writerOffset(int offset)
Buffer
ByteBufBuffer. writeShort(short value)
Buffer
ByteBufBuffer. writeUnsignedByte(int value)
Buffer
ByteBufBuffer. writeUnsignedInt(long value)
Buffer
ByteBufBuffer. writeUnsignedMedium(int value)
Buffer
ByteBufBuffer. writeUnsignedShort(int value)
Methods in io.netty5.buffer.api.adaptor with parameters of type Buffer Modifier and Type Method Description Buffer
ByteBufMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
void
ByteBufBuffer. copyInto(int srcPos, Buffer dest, int destPos, int length)
static ByteBuf
ByteBufAdaptor. intoByteBuf(Buffer buffer)
Object
ByteBufMemoryManager. unwrapRecoverableMemory(Buffer buf)
Method parameters in io.netty5.buffer.api.adaptor with type arguments of type Buffer Modifier and Type Method Description Buffer
ByteBufMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufMemoryManager. 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 Buffer
ByteBufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Buffer
ByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufferMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Methods in io.netty5.buffer.api.bytebuffer with parameters of type Buffer Modifier and Type Method Description Buffer
ByteBufferMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Object
ByteBufferMemoryManager. unwrapRecoverableMemory(Buffer buf)
Method parameters in io.netty5.buffer.api.bytebuffer with type arguments of type Buffer Modifier and Type Method Description Buffer
ByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufferMemoryManager. allocateShared(AllocatorControl allocatorControl, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
ByteBufferMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
-
Uses of Buffer in io.netty5.buffer.api.internal
Classes in io.netty5.buffer.api.internal with type parameters of type Buffer Modifier and Type Class Description class
AdaptableBuffer<T extends ResourceSupport<Buffer,T>>
class
CleanerDrop<T extends Buffer>
A drop implementation that delegates to another drop instance, either when called directly, or when it becomes cleanable.Classes in io.netty5.buffer.api.internal that implement Buffer Modifier and Type Class Description class
AdaptableBuffer<T extends ResourceSupport<Buffer,T>>
Fields in io.netty5.buffer.api.internal with type parameters of type Buffer Modifier and Type Field Description static Drop<Buffer>
Statics. NO_OP_DROP
Methods in io.netty5.buffer.api.internal with type parameters of type Buffer Modifier and Type Method Description static <T extends Buffer>
Drop<T>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 BufferClosedException
Statics. bufferIsClosed(Buffer buffer)
static BufferReadOnlyException
Statics. bufferIsReadOnly(Buffer buffer)
static CharSequence
Statics. copyToCharSequence(Buffer source, int srcIdx, int length, Charset charset)
static void
Statics. copyToViaReverseLoop(Buffer src, int srcPos, Buffer dest, int destPos, int length)
static boolean
Statics. equals(Buffer a, int aStartIndex, Buffer b, int bStartIndex, int length)
static boolean
Statics. equals(Buffer bufferA, Buffer bufferB)
static int
Statics. hashCode(Buffer buffer)
static CharSequence
Statics. readCharSequence(Buffer source, int length, Charset charset)
static String
Statics. toString(Buffer source, Charset charset)
static void
Statics. writeCharSequence(CharSequence source, Buffer destination, Charset charset)
-
Uses of Buffer in io.netty5.buffer.api.pool
Methods in io.netty5.buffer.api.pool with type parameters of type Buffer Modifier and Type Method Description <BufferType extends Buffer>
Drop<BufferType>UntetheredMemory. drop()
Produces the drop instance associated with this piece of untethered memory.Methods in io.netty5.buffer.api.pool that return Buffer Modifier and Type Method Description Buffer
PooledBufferAllocator. allocate(int size)
Methods in io.netty5.buffer.api.pool that return types with arguments of type Buffer Modifier and Type Method Description Supplier<Buffer>
PooledBufferAllocator. constBufferSupplier(byte[] bytes)
-
Uses of Buffer in io.netty5.buffer.api.unsafe
Methods in io.netty5.buffer.api.unsafe that return Buffer Modifier and Type Method Description Buffer
UnsafeMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Buffer
UnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
UnsafeMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
Methods in io.netty5.buffer.api.unsafe with parameters of type Buffer Modifier and Type Method Description Buffer
UnsafeMemoryManager. allocateConstChild(Buffer readOnlyConstParent)
Object
UnsafeMemoryManager. unwrapRecoverableMemory(Buffer buf)
Method parameters in io.netty5.buffer.api.unsafe with type arguments of type Buffer Modifier and Type Method Description Buffer
UnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
UnsafeMemoryManager. allocateShared(AllocatorControl control, long size, Function<Drop<Buffer>,Drop<Buffer>> dropDecorator, AllocationType allocationType)
Buffer
UnsafeMemoryManager. recoverMemory(AllocatorControl allocatorControl, Object recoverableMemory, Drop<Buffer> drop)
-