A B C D E F G H I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(LeakInfo) - Method in class io.netty5.buffer.LoggingLeakCallback
- acquire() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Increment the reference count.
- acquire(int) - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Add to the trace log that the object has been acquired, in other words the reference count has been incremented.
- acquire(Drop<X>) - Static method in class io.netty5.buffer.internal.ArcDrop
- acquire(ResourceSupport<?, ?>) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- AdaptableBuffer<T extends ResourceSupport<Buffer,T>> - Class in io.netty5.buffer.internal
- AdaptableBuffer(Drop<T>, AllocatorControl) - Constructor for class io.netty5.buffer.internal.AdaptableBuffer
- allocate() - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Add to the trace log that the object has been allocated.
- allocate(int) - Method in interface io.netty5.buffer.BufferAllocator
-
Allocate a
Buffer
of the given size in bytes. - allocate(int) - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- allocate(int) - Method in class io.netty5.buffer.SensitiveBufferAllocator
- allocateConstChild(Buffer) - Method in class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- allocateConstChild(Buffer) - Method in interface io.netty5.buffer.MemoryManager
-
Allocates a constant buffer based on the given parent.
- allocateConstChild(Buffer) - Method in class io.netty5.buffer.unsafe.UnsafeMemoryManager
- allocateShared(AllocatorControl, long, Function<Drop<Buffer>, Drop<Buffer>>, AllocationType) - Method in class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- allocateShared(AllocatorControl, long, Function<Drop<Buffer>, Drop<Buffer>>, AllocationType) - Method in interface io.netty5.buffer.MemoryManager
-
Allocates a shared buffer.
- allocateShared(AllocatorControl, long, Function<Drop<Buffer>, Drop<Buffer>>, AllocationType) - Method in class io.netty5.buffer.unsafe.UnsafeMemoryManager
- AllocationType - Interface in io.netty5.buffer
-
An object used by buffer allocators to communicate desirable properties of an allocation to a memory manager, such as whether an allocation should be off-heap.
- allocatorClosedException() - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- AllocatorControl - Interface in io.netty5.buffer
-
Methods for accessing and controlling the internals of an allocator.
- appendPrettyHexDump(StringBuilder, Buffer) - Static method in class io.netty5.buffer.BufferUtil
-
Appends the prettified multi-line hexadecimal dump of the specified
Buffer
to the specifiedStringBuilder
that is easy to read by humans. - appendPrettyHexDump(StringBuilder, Buffer, int, int) - Static method in class io.netty5.buffer.BufferUtil
-
Appends the prettified multi-line hexadecimal dump of the specified
Buffer
to the specifiedStringBuilder
that is easy to read by humans, starting at the givenoffset
using the givenlength
. - apply(Drop<T>) - Method in class io.netty5.buffer.internal.DropCaptor
- ArcDrop<T> - Class in io.netty5.buffer.internal
- ArcDrop(Drop<T>) - Constructor for class io.netty5.buffer.internal.ArcDrop
- arenaMetrics() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Return a
List
of allPoolArenaMetric
s that are provided by this pool. - assertValidBufferSize(long) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
-
Check the given
size
argument is a valid buffer size, or throw anIllegalArgumentException
. - attach(T) - Method in interface io.netty5.buffer.Drop
-
Called when the resource changes owner.
- attach(T) - Method in class io.netty5.buffer.internal.ArcDrop
- attach(T) - Method in class io.netty5.buffer.internal.CleanerDrop
- attachTrace(E) - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Attach a life cycle trace log to the given exception.
- attachTrace(E) - Method in class io.netty5.buffer.internal.ResourceSupport
-
Attach a trace of the life-cycle of this object as suppressed exceptions to the given throwable.
- attachTrace(ResourceSupport<?, ?>, E) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- available() - Method in class io.netty5.buffer.BufferInputStream
- availableManagers() - Static method in interface io.netty5.buffer.MemoryManager
-
Get a stream of all available memory managers.
B
- baseNativeAddress() - Method in interface io.netty5.buffer.BufferComponent
-
Give the base native memory address backing this buffer, or return 0 if this buffer has no native memory address.
- BB_PUT_OFFSETS - Static variable in interface io.netty5.buffer.internal.InternalBufferUtils
- BB_SLICE_OFFSETS - Static variable in interface io.netty5.buffer.internal.InternalBufferUtils
- bbput(ByteBuffer, int, ByteBuffer, int, int) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
-
The ByteBuffer put-buffer-with-offset-and-length method is not available in Java 11.
- bbslice(ByteBuffer, int, int) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
-
The ByteBuffer slice-with-offset-and-length method is only available from Java 13 and onwards, but we need to support Java 11.
- buffer() - Method in class io.netty5.buffer.BufferOutputStream
-
Returns the buffer where this stream is writing data.
- Buffer - Interface in io.netty5.buffer
-
A life cycled buffer of memory, with separate reader and writer offsets.
- BufferAccessor - Interface in io.netty5.buffer
-
This interface is just the primitive data accessor methods that
Buffer
exposes. - BufferAllocator - Interface in io.netty5.buffer
-
Interface for allocating
Buffer
s. - BufferAllocatorMetric - Interface in io.netty5.buffer.pool
- BufferAllocatorMetricProvider - Interface in io.netty5.buffer.pool
- BufferClosedException - Exception in io.netty5.buffer
-
An exception thrown when an operation is attempted on a
Buffer
when it has been closed. - BufferClosedException() - Constructor for exception io.netty5.buffer.BufferClosedException
- BufferClosedException(String) - Constructor for exception io.netty5.buffer.BufferClosedException
- BufferComponent - Interface in io.netty5.buffer
-
A view onto the buffer component being processed in a given iteration of
Buffer.forEachComponent()
. - BufferHolder<T extends io.netty5.util.Resource<T>> - Class in io.netty5.buffer
-
The
BufferHolder
is an abstract class that simplifies the implementation of objects that themselves contain aBuffer
instance. - BufferHolder(Buffer) - Constructor for class io.netty5.buffer.BufferHolder
-
Create a new
BufferHolder
to hold the given buffer. - BufferHolder(Send<Buffer>) - Constructor for class io.netty5.buffer.BufferHolder
- BufferInputStream - Class in io.netty5.buffer
-
An
InputStream
which reads data from aBuffer
. - BufferInputStream(Send<Buffer>) - Constructor for class io.netty5.buffer.BufferInputStream
-
Creates a new stream which reads data from the specified
buffer
starting at the currentreaderOffset
and ending at the currentwriterOffset
. - bufferIsClosed(Buffer) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- bufferIsReadOnly(Buffer) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- BufferOutputStream - Class in io.netty5.buffer
-
An
OutputStream
which writes data to aBuffer
. - BufferOutputStream(Buffer) - Constructor for class io.netty5.buffer.BufferOutputStream
-
Creates a new stream which writes data to the specified
buffer
. - BufferReadOnlyException - Exception in io.netty5.buffer
- BufferReadOnlyException() - Constructor for exception io.netty5.buffer.BufferReadOnlyException
- BufferReadOnlyException(String) - Constructor for exception io.netty5.buffer.BufferReadOnlyException
- BufferRef - Class in io.netty5.buffer
-
A mutable reference to a buffer.
- BufferRef(Send<Buffer>) - Constructor for class io.netty5.buffer.BufferRef
-
Create a reference that holds the exclusive ownership of the sent buffer.
- BufferStub - Class in io.netty5.buffer
-
A stub of a
Buffer
implementation that implements all buffer methods by delegating them to a wrapped buffer instance. - BufferStub(Buffer) - Constructor for class io.netty5.buffer.BufferStub
-
Create a new buffer stub that delegates all calls to the given instance.
- BufferUtil - Class in io.netty5.buffer
-
A collection of utility methods that is related with handling
ByteBuf
, such as the generation of hex dump and swapping an integer's byte order. - ByteBufferMemoryManager - Class in io.netty5.buffer.bytebuffer
-
This memory manager produces and manages
Buffer
instances that are backed by NIOByteBuffer
instances. - ByteBufferMemoryManager() - Constructor for class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- ByteCursor - Interface in io.netty5.buffer
-
The ByteCursor scans through a sequence of bytes.
- bytesBefore(byte) - Method in interface io.netty5.buffer.Buffer
-
Get the number of readable bytes, until the given
needle
is found in this buffer. - bytesBefore(byte) - Method in class io.netty5.buffer.BufferStub
- bytesBefore(Buffer) - Method in interface io.netty5.buffer.Buffer
-
Get the number of readable bytes, until the given
needle
is found in this buffer. - bytesBefore(Buffer) - Method in class io.netty5.buffer.BufferStub
- bytesBefore(Buffer, InternalBufferUtils.UncheckedLoadByte, Buffer, InternalBufferUtils.UncheckedLoadByte) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- bytesLeft() - Method in interface io.netty5.buffer.ByteCursor
-
Get the current number of bytes left in the iterator.
C
- capacity() - Method in interface io.netty5.buffer.Buffer
-
The capacity of this buffer, that is, the maximum number of bytes it can contain.
- capacity() - Method in class io.netty5.buffer.BufferStub
- capture(Drop<T>) - Method in class io.netty5.buffer.internal.DropCaptor
- checkImplicitCapacity(int, int) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- checkLength(int) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- chunkLists() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Returns an unmodifiable
List
which holdsPoolChunkListMetric
s. - chunkSize() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Return the chunk size for an arena.
- chunkSize() - Method in interface io.netty5.buffer.pool.PoolChunkMetric
-
Return the size of the chunk in bytes, this is the maximum of bytes that can be served out of the chunk.
- CLEANER - Static variable in interface io.netty5.buffer.internal.InternalBufferUtils
- CleanerDrop<T extends Buffer> - Class in io.netty5.buffer.internal
-
A drop implementation that delegates to another drop instance, either when called directly, or when it becomes cleanable.
- clearMemory(Object) - Method in class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- clearMemory(Object) - Method in interface io.netty5.buffer.MemoryManager
-
Overwrite the given recoverable memory object with zeroes, erasing all data that it contains.
- clearMemory(Object) - Method in class io.netty5.buffer.unsafe.UnsafeMemoryManager
- close() - Method in interface io.netty5.buffer.BufferAllocator
-
Close this allocator, freeing all of its internal resources.
- close() - Method in class io.netty5.buffer.BufferHolder
- close() - Method in class io.netty5.buffer.BufferInputStream
- close() - Method in class io.netty5.buffer.BufferOutputStream
- close() - Method in class io.netty5.buffer.BufferStub
- close() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Decrement the reference count, and dispose of the resource if the last reference is closed.
- close() - Method in class io.netty5.buffer.internal.SendFromOwned
- close() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- close() - Method in class io.netty5.buffer.SensitiveBufferAllocator
- close(int) - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Add to the trace log that the object has been closed, in other words, the reference count has been decremented.
- collectTraces() - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Return the life-cycle trace as an ordered
Collection
ofLeakInfo.TracePoint
s. - compact() - Method in interface io.netty5.buffer.Buffer
-
Discards the read bytes, and moves the buffer contents to the beginning of the buffer.
- compact() - Method in class io.netty5.buffer.BufferStub
- compact() - Method in interface io.netty5.buffer.CompositeBuffer
- ComponentIterator<T extends ComponentIterator.Next & BufferComponent> - Interface in io.netty5.buffer
-
A facade for iterating the readable or writable components of a
Buffer
. - ComponentIterator.Next - Interface in io.netty5.buffer
-
This interface exposes external iteration on components.
- compose() - Method in interface io.netty5.buffer.BufferAllocator
-
Create an empty composite buffer, that has no components.
- compose(BufferAllocator) - Static method in interface io.netty5.buffer.CompositeBuffer
-
Create an empty composite buffer, that has no components.
- compose(Send<Buffer>) - Method in interface io.netty5.buffer.BufferAllocator
-
Compose the send of a buffer and present them as a single buffer.
- compose(Iterable<Send<Buffer>>) - Method in interface io.netty5.buffer.BufferAllocator
-
Compose the given sequence of sends of buffers and present them as a single buffer.
- CompositeBuffer - Interface in io.netty5.buffer
-
The
CompositeBuffer
is a concreteBuffer
implementation that make a number of other buffers appear as one. - configuredOrDefaultManager() - Static method in class io.netty5.buffer.internal.MemoryManagerOverride
- configuredOrDefaultManager(MemoryManager) - Static method in class io.netty5.buffer.internal.MemoryManagerOverride
- constBufferSupplier(byte[]) - Method in interface io.netty5.buffer.BufferAllocator
-
Create a supplier of "constant" Buffers from this allocator, that all have the given byte contents.
- constBufferSupplier(byte[]) - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- constBufferSupplier(byte[]) - Method in class io.netty5.buffer.SensitiveBufferAllocator
- content() - Method in class io.netty5.buffer.BufferRef
-
Access the buffer in this reference.
- control - Variable in class io.netty5.buffer.internal.AdaptableBuffer
- convert(Drop<T>) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- copy() - Method in interface io.netty5.buffer.Buffer
-
Returns a copy of this buffer's readable bytes.
- copy() - Method in class io.netty5.buffer.BufferStub
- copy() - Method in interface io.netty5.buffer.CompositeBuffer
- copy(boolean) - Method in interface io.netty5.buffer.Buffer
-
Returns a copy of this buffer's readable bytes, with the given read-only setting.
- copy(boolean) - Method in class io.netty5.buffer.BufferStub
- copy(int, int) - Method in interface io.netty5.buffer.Buffer
-
Returns a copy of the given region of this buffer.
- copy(int, int) - Method in class io.netty5.buffer.BufferStub
- copy(int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- copy(int, int, boolean) - Method in interface io.netty5.buffer.Buffer
-
Returns a copy of the given region of this buffer.
- copy(int, int, boolean) - Method in class io.netty5.buffer.BufferStub
- copy(int, int, boolean) - Method in interface io.netty5.buffer.CompositeBuffer
- copyInto(int, byte[], int, int) - Method in interface io.netty5.buffer.Buffer
-
Copies the given length of data from this buffer into the given destination array, beginning at the given source position in this buffer, and the given destination position in the destination array.
- copyInto(int, byte[], int, int) - Method in class io.netty5.buffer.BufferStub
- copyInto(int, Buffer, int, int) - Method in interface io.netty5.buffer.Buffer
-
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.
- copyInto(int, Buffer, int, int) - Method in class io.netty5.buffer.BufferStub
- copyInto(int, ByteBuffer, int, int) - Method in interface io.netty5.buffer.Buffer
-
Copies the given length of data from this buffer into the given destination byte buffer, beginning at the given source position in this buffer, and the given destination position in the destination byte buffer.
- copyInto(int, ByteBuffer, int, int) - Method in class io.netty5.buffer.BufferStub
- copyOf(byte[]) - Method in interface io.netty5.buffer.BufferAllocator
-
Allocate a
Buffer
with the same size and contents of the given byte array. - copyOf(String, Charset) - Method in interface io.netty5.buffer.BufferAllocator
- copyOf(ByteBuffer) - Method in interface io.netty5.buffer.BufferAllocator
-
Allocate a
Buffer
with the same size and contents, as the contents of the givenByteBuffer
. - copyToCharSequence(Buffer, int, int, Charset) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- copyToViaReverseLoop(Buffer, int, Buffer, int, int) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- countBorrows() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Count the number of borrows of this object.
- countBorrows(ResourceSupport<?, ?>) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- countComponents() - Method in interface io.netty5.buffer.Buffer
-
Get the number of components in this buffer.
- countComponents() - Method in class io.netty5.buffer.BufferStub
- countReadableComponents() - Method in interface io.netty5.buffer.Buffer
-
Get the number of "components" in this buffer, that are readable.
- countReadableComponents() - Method in class io.netty5.buffer.BufferStub
- countWritableComponents() - Method in interface io.netty5.buffer.Buffer
-
Get the number of "components" in this buffer, that are writable.
- countWritableComponents() - Method in class io.netty5.buffer.BufferStub
- createResourceClosedException() - Method in class io.netty5.buffer.internal.ResourceSupport
- currentOffset() - Method in interface io.netty5.buffer.ByteCursor
-
The current position of this iterator into the underlying sequence of bytes.
D
- decomposeBuffer() - Method in interface io.netty5.buffer.CompositeBuffer
-
Break a composite buffer into its constituent components.
- DefaultBufferAllocators - Class in io.netty5.buffer
-
Accessor for the default, shared
BufferAllocator
instances. - defaultMaxOrder() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default maximum order - System Property: io.netty5.allocator.maxOrder - default 11
- defaultNormalCacheSize() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default normal cache size - System Property: io.netty5.allocator.normalCacheSize - default 64
- defaultNumDirectArena() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default number of direct arenas - System Property: io.netty5.allocator.numDirectArenas - default 2 * cores
- defaultNumHeapArena() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default number of heap arenas - System Property: io.netty5.allocator.numHeapArenas - default 2 * cores
- defaultPageSize() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default buffer page size - System Property: io.netty5.allocator.pageSize - default 8192
- defaultPreferDirect() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default prefer direct - System Property: io.netty5.noPreferDirect - default false
- defaultSmallCacheSize() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default small cache size - System Property: io.netty5.allocator.smallCacheSize - default 256
- defaultUseCacheForAllThreads() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Default thread caching behavior - System Property: io.netty5.allocator.useCacheForAllThreads - default true
- delegate - Variable in class io.netty5.buffer.BufferStub
- drop() - Method in interface io.netty5.buffer.pool.UntetheredMemory
-
Produces the drop instance associated with this piece of untethered memory.
- drop(int) - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Add to the trace log that the object has been dropped.
- drop(T) - Method in interface io.netty5.buffer.Drop
-
Dispose of the resources in the given
Resource
instance. - drop(T) - Method in class io.netty5.buffer.internal.ArcDrop
- drop(T) - Method in class io.netty5.buffer.internal.CleanerDrop
- Drop<T> - Interface in io.netty5.buffer
-
An interface used by
Resource
instances to implement their resource disposal mechanics. - DropCaptor<T> - Class in io.netty5.buffer.internal
-
Utility class to capture or hold on to a drop instance.
- DropCaptor() - Constructor for class io.netty5.buffer.internal.DropCaptor
- dumpStats() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Returns the status of the allocator (which contains all metrics) as string.
E
- elementSize() - Method in interface io.netty5.buffer.pool.PoolSubpageMetric
-
Return the size (in bytes) of the elements that will be allocated.
- ensureWritable(int) - Method in interface io.netty5.buffer.Buffer
-
Ensures that this buffer has at least the given number of bytes of available space for writing.
- ensureWritable(int) - Method in class io.netty5.buffer.BufferStub
- ensureWritable(int) - Method in interface io.netty5.buffer.CompositeBuffer
- ensureWritable(int, int, boolean) - Method in interface io.netty5.buffer.Buffer
-
Ensures that this buffer has at least the given number of bytes of available space for writing.
- ensureWritable(int, int, boolean) - Method in class io.netty5.buffer.BufferStub
- ensureWritable(int, int, boolean) - Method in interface io.netty5.buffer.CompositeBuffer
- equals(Buffer, int, Buffer, int, int) - Static method in class io.netty5.buffer.BufferUtil
-
Returns
true
if and only if the two specified buffers are identical to each other forlength
bytes starting atfirstReaderOffset
index for thefirst
buffer andsecondReaderOffset
index for thesecond
buffer. - equals(Buffer, int, Buffer, int, int) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- equals(Buffer, Buffer) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- equals(Object) - Method in class io.netty5.buffer.BufferHolder
-
This implementation of the
equals
operation is restricted to work only with instances of the same class. - equals(Object) - Method in class io.netty5.buffer.BufferStub
- equals(Object) - Method in class io.netty5.buffer.internal.AdaptableBuffer
- extendWith(Send<Buffer>) - Method in interface io.netty5.buffer.CompositeBuffer
-
Extend this composite buffer with the given extension buffer.
F
- fill(byte) - Method in interface io.netty5.buffer.Buffer
-
Fills the buffer with the given byte value.
- fill(byte) - Method in class io.netty5.buffer.BufferStub
- fill(byte) - Method in interface io.netty5.buffer.CompositeBuffer
- findVarHandle(MethodHandles.Lookup, Class<?>, String, Class<?>) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- first() - Method in interface io.netty5.buffer.ComponentIterator
-
Get the first component of the iteration, or
null
if there are no components. - firstReadable() - Method in interface io.netty5.buffer.ComponentIterator
-
Get the first component of the iteration that has any bytes to read, or
null
if there are no components with any readable bytes. - firstWritable() - Method in interface io.netty5.buffer.ComponentIterator
-
Get the first component of the iteration that has any space for writing bytes, or
null
if there are no components with any spare capacity. - forEachComponent() - Method in interface io.netty5.buffer.Buffer
-
Create a component iterator for all components in this buffer.
- forEachComponent() - Method in class io.netty5.buffer.BufferStub
- fork() - Method in interface io.netty5.buffer.Drop
-
Branch the responsibility of dropping a resource.
- fork() - Method in class io.netty5.buffer.internal.ArcDrop
- fork() - Method in class io.netty5.buffer.internal.CleanerDrop
- freeBytes() - Method in interface io.netty5.buffer.pool.PoolChunkMetric
-
Return the number of free bytes in the chunk.
G
- get() - Static method in class io.netty5.buffer.internal.LifecycleTracer
-
Get a tracer for a newly allocated resource.
- getAllocationType() - Method in interface io.netty5.buffer.BufferAllocator
-
Get the
AllocationType
from this allocator. - getAllocationType() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- getAllocationType() - Method in class io.netty5.buffer.SensitiveBufferAllocator
- getAllocator() - Method in interface io.netty5.buffer.AllocatorControl
-
Get the
BufferAllocator
instance that is the source of this allocator control. - getArray() - Method in class io.netty5.buffer.internal.WrappingAllocation
- getBoolean(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the boolean value at the given reader offset.
- getBoolean(int) - Method in class io.netty5.buffer.BufferStub
- getBuffer() - Method in class io.netty5.buffer.BufferHolder
-
Access the held
Buffer
instance. - getBufferVolatile() - Method in class io.netty5.buffer.BufferHolder
-
Access the held
Buffer
instance. - getByte() - Method in interface io.netty5.buffer.ByteCursor
-
Return the last byte that was read by
ByteCursor.readByte()
. - getByte(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the byte value at the given reader offset.
- getByte(int) - Method in class io.netty5.buffer.BufferStub
- getByteBufferPutOffsetsMethodHandle() - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- getByteBufferSliceOffsetsMethodHandle() - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- getBytes(Buffer) - Static method in class io.netty5.buffer.BufferUtil
-
Create a copy of the underlying storage from
buf
into a byte array. - getBytes(Buffer, int, int) - Static method in class io.netty5.buffer.BufferUtil
-
Create a copy of the underlying storage from
buf
into a byte array. - getChar(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the char value at the given reader offset.
- getChar(int) - Method in class io.netty5.buffer.BufferStub
- getDouble(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the double value at the given reader offset.
- getDouble(int) - Method in class io.netty5.buffer.BufferStub
- getDrop() - Method in class io.netty5.buffer.internal.DropCaptor
- getFloat(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the float value at the given reader offset.
- getFloat(int) - Method in class io.netty5.buffer.BufferStub
- getInstance() - Static method in class io.netty5.buffer.LoggingLeakCallback
-
Get an instance of the
LoggingLeakCallback
. - getInt(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the int value at the given reader offset.
- getInt(int) - Method in class io.netty5.buffer.BufferStub
- getLong(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the long value at the given reader offset.
- getLong(int) - Method in class io.netty5.buffer.BufferStub
- getMedium(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the int value at the given reader offset.
- getMedium(int) - Method in class io.netty5.buffer.BufferStub
- getShort(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the short value at the given reader offset.
- getShort(int) - Method in class io.netty5.buffer.BufferStub
- getUnsignedByte(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the unsigned byte value at the given reader offset.
- getUnsignedByte(int) - Method in class io.netty5.buffer.BufferStub
- getUnsignedInt(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the unsigned int value at the given reader offset.
- getUnsignedInt(int) - Method in class io.netty5.buffer.BufferStub
- getUnsignedMedium(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the unsigned int value at the given reader offset.
- getUnsignedMedium(int) - Method in class io.netty5.buffer.BufferStub
- getUnsignedShort(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Get the unsigned short value at the given reader offset.
- getUnsignedShort(int) - Method in class io.netty5.buffer.BufferStub
H
- hashCode() - Method in class io.netty5.buffer.BufferHolder
- hashCode() - Method in class io.netty5.buffer.BufferStub
- hashCode() - Method in class io.netty5.buffer.internal.AdaptableBuffer
- hashCode(Buffer) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- hasReadableArray() - Method in interface io.netty5.buffer.BufferComponent
-
Check if this component is backed by a cached byte array that can be accessed cheaply.
- hasWritableArray() - Method in interface io.netty5.buffer.BufferComponent
-
Check if this component is backed by a cached byte array that can be accessed cheaply.
- hexDump(byte[]) - Static method in class io.netty5.buffer.BufferUtil
-
Returns a hex dump of the specified byte array.
- hexDump(byte[], int, int) - Static method in class io.netty5.buffer.BufferUtil
-
Returns a hex dump of the specified byte array's sub-region.
- hexDump(Buffer) - Static method in class io.netty5.buffer.BufferUtil
-
Returns a hex dump of the specified buffer's readable bytes.
- hexDump(Buffer, int, int) - Static method in class io.netty5.buffer.BufferUtil
-
Returns a hex dump of the specified buffer's sub-region.
- hint() - Method in interface io.netty5.buffer.LeakInfo.TracePoint
-
Get the hint object from a touch call, if any.
I
- implementationName() - Method in class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- implementationName() - Method in interface io.netty5.buffer.MemoryManager
-
Get the name for this implementation, which can be used for finding this particular implementation via the
MemoryManager.lookupImplementation(String)
method. - implementationName() - Method in class io.netty5.buffer.unsafe.UnsafeMemoryManager
- implicitCapacityLimit() - Method in interface io.netty5.buffer.Buffer
-
Returns the implicit capacity limit of the buffer.
- implicitCapacityLimit() - Method in class io.netty5.buffer.BufferStub
- implicitCapacityLimit(int) - Method in interface io.netty5.buffer.Buffer
-
Set an upper limit to the implicit capacity growth.
- implicitCapacityLimit(int) - Method in class io.netty5.buffer.BufferStub
- implicitCapacityLimit(int) - Method in interface io.netty5.buffer.CompositeBuffer
- increment() - Method in class io.netty5.buffer.internal.ArcDrop
- instance() - Static method in interface io.netty5.buffer.MemoryManager
-
Get the default, or currently configured, memory managers instance.
- InternalBufferUtils - Interface in io.netty5.buffer.internal
- InternalBufferUtils.UncheckedLoadByte - Interface in io.netty5.buffer.internal
-
This interface provides the fastest possible offsetted byte-access to a buffer.
- io.netty5.buffer - module io.netty5.buffer
- io.netty5.buffer - package io.netty5.buffer
-
Abstraction of a byte buffer - the fundamental data structure to represent a low-level binary and text message.
- io.netty5.buffer.bytebuffer - package io.netty5.buffer.bytebuffer
-
Safe ByteBuffer based implementation.
- io.netty5.buffer.internal - package io.netty5.buffer.internal
-
Internal implementation details that can be shared among Buffer implementations.
- io.netty5.buffer.pool - package io.netty5.buffer.pool
-
A pooling
BufferAllocator
implementation based on jemalloc. - io.netty5.buffer.unsafe - package io.netty5.buffer.unsafe
-
A
Buffer
implementation that is based onsun.misc.Unsafe
. - isAccessible() - Method in class io.netty5.buffer.BufferHolder
- isAccessible() - Method in class io.netty5.buffer.BufferStub
- isAccessible() - Method in class io.netty5.buffer.internal.ResourceSupport
- isComposite(Buffer) - Static method in interface io.netty5.buffer.CompositeBuffer
-
Check if the given buffer is a composite buffer or not.
- isDirect() - Method in interface io.netty5.buffer.AllocationType
- isDirect() - Method in interface io.netty5.buffer.Buffer
-
Queries if this buffer is backed by native memory, or not.
- isDirect() - Method in class io.netty5.buffer.BufferStub
- isDirect() - Method in class io.netty5.buffer.internal.WrappingAllocation
- isDirect() - Method in enum io.netty5.buffer.StandardAllocationTypes
- isDirectBufferPooled() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- isDirectMemoryCacheAlignmentSupported() - Static method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Return
true
if direct memory cache alignment is supported,false
otherwise. - isOwned() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Query if this object is in an "owned" state, which means no other references have been acquired to it.
- isOwned(ResourceSupport<?, ?>) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- isPooling() - Method in interface io.netty5.buffer.BufferAllocator
-
Determine if this allocator is pooling and reusing its allocated memory.
- isPooling() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- isPooling() - Method in class io.netty5.buffer.SensitiveBufferAllocator
L
- LeakDetection - Class in io.netty5.buffer.internal
-
Utility class for the leak detection parts that are static and shared system-wide.
- LeakInfo - Interface in io.netty5.buffer
-
Information about a resource leak that happened.
- LeakInfo.TracePoint - Interface in io.netty5.buffer
-
A moment in the life of the leaked object, for which some information was recorded.
- LifecycleTracer - Class in io.netty5.buffer.internal
-
Instances of this class record life cycle events of resources, to help debug life-cycle errors.
- LifecycleTracer() - Constructor for class io.netty5.buffer.internal.LifecycleTracer
- load(Buffer, int) - Method in interface io.netty5.buffer.internal.InternalBufferUtils.UncheckedLoadByte
- LoggingLeakCallback - Class in io.netty5.buffer
-
The
LoggingLeakCallback
can be installed to enable logging output when a leak is detected. - lookupImplementation(String) - Static method in interface io.netty5.buffer.MemoryManager
-
Find a
MemoryManager
implementation by its implementation name.
M
- makeInaccessible() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Called when this resource needs to be considered inaccessible.
- makeReadOnly() - Method in interface io.netty5.buffer.Buffer
-
Makes this buffer read-only.
- makeReadOnly() - Method in class io.netty5.buffer.BufferStub
- makeReadOnly() - Method in interface io.netty5.buffer.CompositeBuffer
- mark(int) - Method in class io.netty5.buffer.BufferInputStream
- markSupported() - Method in class io.netty5.buffer.BufferInputStream
- MAX_BUFFER_SIZE - Static variable in interface io.netty5.buffer.internal.InternalBufferUtils
-
The maximum buffer size we support is the maximum array length generally supported by JVMs, because on-heap buffers will be backed by byte-arrays.
- maxNumElements() - Method in interface io.netty5.buffer.pool.PoolSubpageMetric
-
Return the number of maximal elements that can be allocated out of the sub-page.
- maxUsage() - Method in interface io.netty5.buffer.pool.PoolChunkListMetric
-
Return the maximum usage of the chunk list after which chunks are promoted to the next list.
- MEM_USAGE_NATIVE - Static variable in interface io.netty5.buffer.internal.InternalBufferUtils
- memory() - Method in interface io.netty5.buffer.pool.UntetheredMemory
-
Produces the recoverable memory object associated with this piece of untethered memory.
- MemoryManager - Interface in io.netty5.buffer
-
The choice of
MemoryManager
implementation also determines the choice ofBuffer
implementation. - MemoryManagerLoader - Class in io.netty5.buffer.internal
- MemoryManagerOverride - Class in io.netty5.buffer.internal
- metric() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetricProvider
-
Returns a
BufferAllocatorMetric
for aBufferAllocator
. - metric() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- minUsage() - Method in interface io.netty5.buffer.pool.PoolChunkListMetric
-
Return the minimum usage of the chunk list before which chunks are promoted to the previous list.
- mutableReadableBuffer() - Method in interface io.netty5.buffer.internal.NotReadOnlyReadableComponent
-
Get a
ByteBuffer
instance for this memory component.
N
- nativeAddressOfDirectByteBuffer(ByteBuffer) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- nativeAddressWithOffset(long, int) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
-
Compute an offset into a native address.
- next() - Method in interface io.netty5.buffer.ComponentIterator.Next
-
Get the next component of the iteration, or
null
if there are no more components. - nextReadable() - Method in interface io.netty5.buffer.ComponentIterator.Next
-
Get the next component of the iteration that has any bytes to read, or
null
if there are no components with any readable bytes. - nextWritable() - Method in interface io.netty5.buffer.ComponentIterator.Next
-
Get the next component of the iteration that has any space for writing bytes, or
null
if there are no components with any spare capacity. - NO_OP_DROP - Static variable in interface io.netty5.buffer.internal.InternalBufferUtils
- normalCacheSize() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Return the size of the normal cache.
- normalizeSize(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Normalizes usable size that would result from allocating an object with the specified size and alignment.
- NotReadOnlyReadableComponent - Interface in io.netty5.buffer.internal
-
Safety by-pass that let us get
ByteBuffer
s from aBufferComponent
that is not read-only. - notSendableException() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Create an
IllegalStateException
with a custom message, tailored to this particularResource
instance, for when the object cannot be sent for some reason. - numActiveAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of currently active allocations.
- numActiveBytes() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of active bytes that are currently allocated by the arena.
- numActiveHugeAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of currently active huge allocations.
- numActiveNormalAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of currently active normal allocations.
- numActiveSmallAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of currently active small allocations.
- numAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of allocations done via the arena.
- numArenas() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Return the number of arenas.
- numArenas() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
- numAvailable() - Method in interface io.netty5.buffer.pool.PoolSubpageMetric
-
Return the number of available elements to be allocated.
- numChunkLists() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Returns the number of chunk lists for the arena.
- numDeallocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of deallocations done via the arena.
- numHugeAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of huge allocations done via the arena.
- numHugeDeallocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of huge deallocations done via the arena.
- numNormalAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of normal allocations done via the arena.
- numNormalDeallocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of normal deallocations done via the arena.
- numPinnedBytes() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of bytes that are currently pinned to buffer instances, by the arena.
- numSmallAllocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of small allocations done via the arena.
- numSmallDeallocations() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Return the number of small deallocations done via the arena.
- numSmallSubpages() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Returns the number of small sub-pages for the arena.
- numThreadCaches() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Returns the number of thread caches backed by this arena.
- numThreadLocalCaches() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Return the number of thread local caches used by this
PooledBufferAllocator
.
O
- objectDescription() - Method in interface io.netty5.buffer.LeakInfo
-
A human-readable description of the object that leaked.
- OFF_HEAP - io.netty5.buffer.StandardAllocationTypes
-
The allocation should use native (non-heap) memory.
- offHeapAllocator() - Static method in class io.netty5.buffer.DefaultBufferAllocators
-
Get the shared off-heap allocator.
- offHeapPooled() - Static method in interface io.netty5.buffer.BufferAllocator
-
Produces a pooling
BufferAllocator
that allocates and recycles off-heap buffers. - offHeapUnpooled() - Static method in interface io.netty5.buffer.BufferAllocator
-
Produces a
BufferAllocator
that allocates unpooled, off-heap buffers. - ON_HEAP - io.netty5.buffer.StandardAllocationTypes
-
The allocation should use Java heap memory.
- onHeapAllocator() - Static method in class io.netty5.buffer.DefaultBufferAllocators
-
Get the shared on-heap allocator.
- onHeapPooled() - Static method in interface io.netty5.buffer.BufferAllocator
-
Produces a pooling
BufferAllocator
that allocates and recycles on-heap buffers. - onHeapUnpooled() - Static method in interface io.netty5.buffer.BufferAllocator
-
Produces a
BufferAllocator
that allocates unpooled, on-heap buffers. - onLeakDetected(Consumer<LeakInfo>) - Static method in class io.netty5.buffer.internal.LeakDetection
-
Internal API for
MemoryManager.onLeakDetected(Consumer)
. - onLeakDetected(Consumer<LeakInfo>) - Static method in interface io.netty5.buffer.MemoryManager
-
Register a callback that will be called whenever a
Buffer
instance is leaked. - openCursor() - Method in interface io.netty5.buffer.Buffer
-
Opens a cursor to iterate the readable bytes of this buffer.
- openCursor() - Method in interface io.netty5.buffer.BufferComponent
-
Open a cursor to iterate the readable bytes of this component.
- openCursor() - Method in class io.netty5.buffer.BufferStub
- openCursor(int, int) - Method in interface io.netty5.buffer.Buffer
-
Opens a cursor to iterate the given number bytes of this buffer, starting at the given offset.
- openCursor(int, int) - Method in class io.netty5.buffer.BufferStub
- openReverseCursor() - Method in interface io.netty5.buffer.Buffer
-
Opens a cursor to iterate the readable bytes of this buffer, in reverse.
- openReverseCursor() - Method in class io.netty5.buffer.BufferStub
- openReverseCursor(int, int) - Method in interface io.netty5.buffer.Buffer
-
Opens a cursor to iterate the given number bytes of this buffer, in reverse, starting at the given offset.
- openReverseCursor(int, int) - Method in class io.netty5.buffer.BufferStub
- Owned<T> - Interface in io.netty5.buffer
-
This interface encapsulates the ownership of a
Resource
, and exposes a method that may be used to transfer this ownership to the specified recipient thread.
P
- pageIdx2size(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Computes size from lookup table according to pageIdx.
- pageIdx2sizeCompute(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Computes size according to pageIdx.
- pages2pageIdx(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Normalizes request size up to the nearest pageSize class.
- pages2pageIdxFloor(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Normalizes request size down to the nearest pageSize class.
- pageSize() - Method in interface io.netty5.buffer.pool.PoolSubpageMetric
-
Return the page size (in bytes) of this page.
- pinnedBytes() - Method in interface io.netty5.buffer.pool.PoolChunkMetric
-
Return the number of pinned bytes in the chunk.
- pinnedMemory() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Returns the number of bytes of memory that is currently pinned to the buffers allocated by a
BufferAllocator
, or-1
if unknown. - PoolArenaMetric - Interface in io.netty5.buffer.pool
-
Expose metrics for an arena.
- PoolChunkListMetric - Interface in io.netty5.buffer.pool
-
Metrics for a list of chunks.
- PoolChunkMetric - Interface in io.netty5.buffer.pool
-
Metrics for a chunk.
- PooledBufferAllocator - Class in io.netty5.buffer.pool
- PooledBufferAllocator(MemoryManager, boolean) - Constructor for class io.netty5.buffer.pool.PooledBufferAllocator
- PooledBufferAllocator(MemoryManager, boolean, int, int, int) - Constructor for class io.netty5.buffer.pool.PooledBufferAllocator
- PooledBufferAllocator(MemoryManager, boolean, int, int, int, int, int, boolean) - Constructor for class io.netty5.buffer.pool.PooledBufferAllocator
- PooledBufferAllocator(MemoryManager, boolean, int, int, int, int, int, boolean, int) - Constructor for class io.netty5.buffer.pool.PooledBufferAllocator
- PoolSubpageMetric - Interface in io.netty5.buffer.pool
-
Metrics for a sub-page.
- preferredAllocator() - Static method in class io.netty5.buffer.DefaultBufferAllocators
-
Get the preferred, shared allocator.
- prepareSend() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Prepare this instance for ownership transfer.
- process(ByteProcessor) - Method in interface io.netty5.buffer.ByteCursor
-
Process the remaining bytes in this iterator with the given
ByteProcessor
.
R
- read() - Method in class io.netty5.buffer.BufferInputStream
- read(byte[], int, int) - Method in class io.netty5.buffer.BufferInputStream
- readableArray() - Method in interface io.netty5.buffer.BufferComponent
-
Get a byte array of the contents of this component.
- readableArrayLength() - Method in interface io.netty5.buffer.BufferComponent
-
The number of bytes in the
BufferComponent.readableArray()
that belong to this component. - readableArrayOffset() - Method in interface io.netty5.buffer.BufferComponent
-
An offset into the
BufferComponent.readableArray()
where this component starts. - readableBuffer() - Method in interface io.netty5.buffer.BufferComponent
-
Get a
ByteBuffer
instance for this memory component. - readableBytes() - Method in interface io.netty5.buffer.Buffer
-
Returns the number of readable bytes which is equal to
(writerOffset() - readerOffset())
. - readableBytes() - Method in interface io.netty5.buffer.BufferComponent
-
Get the number of readable bytes from this component.
- readableBytes() - Method in class io.netty5.buffer.BufferStub
- readableNativeAddress() - Method in interface io.netty5.buffer.BufferComponent
-
Give the native memory address backing this buffer, or return 0 if this buffer has no native memory address.
- readBoolean() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the boolean value at the current
Buffer.readerOffset()
, and increases the reader offset byByte.BYTES
. - readBoolean() - Method in class io.netty5.buffer.BufferInputStream
- readBoolean() - Method in class io.netty5.buffer.BufferStub
- readByte() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the byte value at the current
Buffer.readerOffset()
, and increases the reader offset byByte.BYTES
. - readByte() - Method in class io.netty5.buffer.BufferInputStream
- readByte() - Method in class io.netty5.buffer.BufferStub
- readByte() - Method in interface io.netty5.buffer.ByteCursor
-
Check if the iterator has at least one byte left, and if so, read that byte and move the cursor forward.
- readBytes() - Method in class io.netty5.buffer.BufferInputStream
-
Returns the number of read bytes by this stream so far.
- readBytes(byte[], int, int) - Method in interface io.netty5.buffer.Buffer
-
Read from this buffer, into the destination array, the given number of bytes.
- readBytes(byte[], int, int) - Method in class io.netty5.buffer.BufferStub
- readBytes(byte[], int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- readBytes(ByteBuffer) - Method in interface io.netty5.buffer.Buffer
-
Read from this buffer, into the destination
ByteBuffer
This updates the read offset of this buffer and also the position of the destinationByteBuffer
. - readBytes(ByteBuffer) - Method in class io.netty5.buffer.BufferStub
- readBytes(ByteBuffer) - Method in interface io.netty5.buffer.CompositeBuffer
- readChar() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the char value at the current
Buffer.readerOffset()
, and increases the reader offset by 2. - readChar() - Method in class io.netty5.buffer.BufferInputStream
- readChar() - Method in class io.netty5.buffer.BufferStub
- readCharSequence(int, Charset) - Method in interface io.netty5.buffer.Buffer
- readCharSequence(int, Charset) - Method in class io.netty5.buffer.BufferStub
- readCharSequence(Buffer, int, Charset) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- readDouble() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the double value at the current
Buffer.readerOffset()
, and increases the reader offset byDouble.BYTES
. - readDouble() - Method in class io.netty5.buffer.BufferInputStream
- readDouble() - Method in class io.netty5.buffer.BufferStub
- readerOffset() - Method in interface io.netty5.buffer.Buffer
-
Get the current reader offset.
- readerOffset() - Method in class io.netty5.buffer.BufferStub
- readerOffset(int) - Method in interface io.netty5.buffer.Buffer
-
Set the reader offset.
- readerOffset(int) - Method in class io.netty5.buffer.BufferStub
- readerOffset(int) - Method in interface io.netty5.buffer.CompositeBuffer
- readFloat() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the float value at the current
Buffer.readerOffset()
, and increases the reader offset byFloat.BYTES
. - readFloat() - Method in class io.netty5.buffer.BufferInputStream
- readFloat() - Method in class io.netty5.buffer.BufferStub
- readFully(byte[]) - Method in class io.netty5.buffer.BufferInputStream
- readFully(byte[], int, int) - Method in class io.netty5.buffer.BufferInputStream
- readInt() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the int value at the current
Buffer.readerOffset()
, and increases the reader offset byInteger.BYTES
. - readInt() - Method in class io.netty5.buffer.BufferInputStream
- readInt() - Method in class io.netty5.buffer.BufferStub
- readLine() - Method in class io.netty5.buffer.BufferInputStream
- readLong() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the long value at the current
Buffer.readerOffset()
, and increases the reader offset byLong.BYTES
. - readLong() - Method in class io.netty5.buffer.BufferInputStream
- readLong() - Method in class io.netty5.buffer.BufferStub
- readMedium() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the int value at the current
Buffer.readerOffset()
, and increases the reader offset by 3. - readMedium() - Method in class io.netty5.buffer.BufferStub
- readOnly() - Method in interface io.netty5.buffer.Buffer
-
Queries if this buffer is read-only or not.
- readOnly() - Method in class io.netty5.buffer.BufferStub
- readShort() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the short value at the current
Buffer.readerOffset()
, and increases the reader offset byShort.BYTES
. - readShort() - Method in class io.netty5.buffer.BufferInputStream
- readShort() - Method in class io.netty5.buffer.BufferStub
- readSplit(int) - Method in interface io.netty5.buffer.Buffer
-
Splits the buffer into two, at
length
number of bytes from the current reader offset position. - readSplit(int) - Method in class io.netty5.buffer.BufferStub
- readUnsignedByte() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the unsigned byte value at the current
Buffer.readerOffset()
, and increases the reader offset byByte.BYTES
. - readUnsignedByte() - Method in class io.netty5.buffer.BufferInputStream
- readUnsignedByte() - Method in class io.netty5.buffer.BufferStub
- readUnsignedInt() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the unsigned int value at the current
Buffer.readerOffset()
, and increases the reader offset byInteger.BYTES
. - readUnsignedInt() - Method in class io.netty5.buffer.BufferStub
- readUnsignedMedium() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the unsigned int value at the current
Buffer.readerOffset()
, and increases the reader offset by 3. - readUnsignedMedium() - Method in class io.netty5.buffer.BufferStub
- readUnsignedShort() - Method in interface io.netty5.buffer.BufferAccessor
-
Read the unsigned short value at the current
Buffer.readerOffset()
, and increases the reader offset byShort.BYTES
. - readUnsignedShort() - Method in class io.netty5.buffer.BufferInputStream
- readUnsignedShort() - Method in class io.netty5.buffer.BufferStub
- readUTF() - Method in class io.netty5.buffer.BufferInputStream
- receive() - Method in class io.netty5.buffer.internal.SendFromOwned
- receive(Buffer) - Method in class io.netty5.buffer.BufferHolder
-
Called when a sent
BufferHolder
is received by the recipient. - receive(Buffer) - Method in class io.netty5.buffer.BufferRef
- recoverMemory(AllocatorControl, Object, Drop<Buffer>) - Method in class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- recoverMemory(AllocatorControl, Object, Drop<Buffer>) - Method in interface io.netty5.buffer.MemoryManager
-
Recover the memory from a prior
MemoryManager.unwrapRecoverableMemory(Buffer)
call, and wrap it in aBuffer
instance. - recoverMemory(AllocatorControl, Object, Drop<Buffer>) - Method in class io.netty5.buffer.unsafe.UnsafeMemoryManager
- referentIsInstanceOf(Class<?>) - Method in class io.netty5.buffer.internal.SendFromOwned
- replace(Send<Buffer>) - Method in class io.netty5.buffer.BufferRef
-
Replace the underlying referenced buffer with the given buffer.
- replaceBuffer(Send<Buffer>) - Method in class io.netty5.buffer.BufferHolder
-
Replace the underlying referenced buffer with the given buffer.
- replaceBufferVolatile(Send<Buffer>) - Method in class io.netty5.buffer.BufferHolder
-
Replace the underlying referenced buffer with the given buffer.
- reportLeak(LifecycleTracer, String) - Static method in class io.netty5.buffer.internal.LeakDetection
-
Called when a leak is detected.
- reset() - Method in class io.netty5.buffer.BufferInputStream
- resetOffsets() - Method in interface io.netty5.buffer.Buffer
-
Resets the read offset and the write offset on this buffer to zero, and return this buffer.
- resetOffsets() - Method in class io.netty5.buffer.BufferStub
- resetOffsets() - Method in interface io.netty5.buffer.CompositeBuffer
- ResourceSupport<I extends io.netty5.util.Resource<I>,T extends ResourceSupport<I,T>> - Class in io.netty5.buffer.internal
-
Internal support class for resources.
- ResourceSupport(Drop<T>) - Constructor for class io.netty5.buffer.internal.ResourceSupport
- reverseMedium(int) - Static method in class io.netty5.buffer.BufferUtil
-
Reverses the byte order (endianness) of a medium
- reverseUnsignedInt(long) - Static method in class io.netty5.buffer.BufferUtil
-
Reverses the byte order (endianness) of an unsigned integer
- reverseUnsignedMedium(int) - Static method in class io.netty5.buffer.BufferUtil
-
Reverses the byte order (endianness) of an unsigned medium
- reverseUnsignedShort(int) - Static method in class io.netty5.buffer.BufferUtil
-
Reverses the byte order (endianness) of an unsigned short
S
- send() - Method in class io.netty5.buffer.BufferHolder
- send() - Method in class io.netty5.buffer.BufferStub
- send() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Send this Resource instance to another Thread, transferring the ownership to the recipient.
- send(Owned<T>) - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Add to the trace log that the object is being sent.
- SendFromOwned<I extends io.netty5.util.Resource<I>,T extends ResourceSupport<I,T>> - Class in io.netty5.buffer.internal
- SendFromOwned(Owned<T>, Drop<T>, Class<?>) - Constructor for class io.netty5.buffer.internal.SendFromOwned
- SensitiveBufferAllocator - Class in io.netty5.buffer
-
This
BufferAllocator
is for allocating off-heapBuffer
s that may contain sensitive information, which should be erased from memory (overwritten) when the buffer is closed. - sensitiveOffHeapAllocator() - Static method in class io.netty5.buffer.SensitiveBufferAllocator
-
Get the sensitive off-heap buffer allocator instance.
- setBoolean(int, boolean) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given boolean value at the given write offset.
- setBoolean(int, boolean) - Method in class io.netty5.buffer.BufferStub
- setBoolean(int, boolean) - Method in interface io.netty5.buffer.CompositeBuffer
- setByte(int, byte) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given byte value at the given write offset.
- setByte(int, byte) - Method in class io.netty5.buffer.BufferStub
- setByte(int, byte) - Method in interface io.netty5.buffer.CompositeBuffer
- setChar(int, char) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given char value at the given write offset.
- setChar(int, char) - Method in class io.netty5.buffer.BufferStub
- setChar(int, char) - Method in interface io.netty5.buffer.CompositeBuffer
- setDouble(int, double) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given double value at the given write offset.
- setDouble(int, double) - Method in class io.netty5.buffer.BufferStub
- setDouble(int, double) - Method in interface io.netty5.buffer.CompositeBuffer
- setFloat(int, float) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given float value at the given write offset.
- setFloat(int, float) - Method in class io.netty5.buffer.BufferStub
- setFloat(int, float) - Method in interface io.netty5.buffer.CompositeBuffer
- setInt(int, int) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given int value at the given write offset.
- setInt(int, int) - Method in class io.netty5.buffer.BufferStub
- setInt(int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- setLong(int, long) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given long value at the given write offset.
- setLong(int, long) - Method in class io.netty5.buffer.BufferStub
- setLong(int, long) - Method in interface io.netty5.buffer.CompositeBuffer
- setMedium(int, int) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given int value at the given write offset.
- setMedium(int, int) - Method in class io.netty5.buffer.BufferStub
- setMedium(int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- setMemory(ByteBuffer, int, byte) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- setShort(int, short) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given short value at the given write offset.
- setShort(int, short) - Method in class io.netty5.buffer.BufferStub
- setShort(int, short) - Method in interface io.netty5.buffer.CompositeBuffer
- setUnsignedByte(int, int) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given unsigned byte value at the given write offset.
- setUnsignedByte(int, int) - Method in class io.netty5.buffer.BufferStub
- setUnsignedByte(int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- setUnsignedInt(int, long) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given unsigned int value at the given write offset.
- setUnsignedInt(int, long) - Method in class io.netty5.buffer.BufferStub
- setUnsignedInt(int, long) - Method in interface io.netty5.buffer.CompositeBuffer
- setUnsignedMedium(int, int) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given unsigned int value at the given write offset.
- setUnsignedMedium(int, int) - Method in class io.netty5.buffer.BufferStub
- setUnsignedMedium(int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- setUnsignedShort(int, int) - Method in interface io.netty5.buffer.BufferAccessor
-
Set the given unsigned short value at the given write offset.
- setUnsignedShort(int, int) - Method in class io.netty5.buffer.BufferStub
- setUnsignedShort(int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- size2SizeIdx(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Normalizes request size up to the nearest size class.
- SizeClassesMetric - Interface in io.netty5.buffer.pool
-
Expose metrics for an SizeClasses.
- sizeIdx2size(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Computes size from lookup table according to sizeIdx.
- sizeIdx2sizeCompute(int) - Method in interface io.netty5.buffer.pool.SizeClassesMetric
-
Computes size according to sizeIdx.
- skip(long) - Method in class io.netty5.buffer.BufferInputStream
- skipBytes(int) - Method in class io.netty5.buffer.BufferInputStream
- skipReadableBytes(int) - Method in interface io.netty5.buffer.Buffer
-
Move the reader offset forward by the given delta.
- skipReadableBytes(int) - Method in interface io.netty5.buffer.BufferComponent
-
Move the read-offset to indicate that the given number of bytes were read from this component.
- skipReadableBytes(int) - Method in class io.netty5.buffer.BufferStub
- skipReadableBytes(int) - Method in interface io.netty5.buffer.CompositeBuffer
- skipWritableBytes(int) - Method in interface io.netty5.buffer.Buffer
-
Move the writer offset to ahead by the given delta.
- skipWritableBytes(int) - Method in interface io.netty5.buffer.BufferComponent
-
Move the write-offset to indicate that the given number of bytes were written to this component.
- skipWritableBytes(int) - Method in class io.netty5.buffer.BufferStub
- skipWritableBytes(int) - Method in interface io.netty5.buffer.CompositeBuffer
- sliceMemory(Object, int, int) - Method in class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- sliceMemory(Object, int, int) - Method in interface io.netty5.buffer.MemoryManager
-
Produces a slice of the given internal memory representation object.
- sliceMemory(Object, int, int) - Method in class io.netty5.buffer.unsafe.UnsafeMemoryManager
- smallCacheSize() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Return the size of the small cache.
- smallSubpages() - Method in interface io.netty5.buffer.pool.PoolArenaMetric
-
Returns an unmodifiable
List
which holdsPoolSubpageMetric
s for small sub-pages. - split() - Method in interface io.netty5.buffer.Buffer
-
Splits the buffer into two, at the write offset position.
- split() - Method in class io.netty5.buffer.BufferStub
- split() - Method in interface io.netty5.buffer.CompositeBuffer
- split(int) - Method in interface io.netty5.buffer.Buffer
-
Splits the buffer into two, at the given
splitOffset
. - split(int) - Method in class io.netty5.buffer.BufferStub
- split(int) - Method in interface io.netty5.buffer.CompositeBuffer
- splitComponentsCeil(int) - Method in interface io.netty5.buffer.CompositeBuffer
-
Split this buffer at a component boundary that is greater than or equal to the given offset.
- splitComponentsFloor(int) - Method in interface io.netty5.buffer.CompositeBuffer
-
Split this buffer at a component boundary that is less than or equal to the given offset.
- splitTo(LifecycleTracer) - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Attach a trace to both life-cycles, that a single life-cycle has been split into two.
- StandardAllocationTypes - Enum in io.netty5.buffer
-
Standard implementations of
AllocationType
that all memory managers should support. - standardDrop(MemoryManager) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- stream() - Static method in class io.netty5.buffer.internal.MemoryManagerLoader
- stream() - Method in interface io.netty5.buffer.LeakInfo
T
- threadLocalDirectBuffer() - Static method in class io.netty5.buffer.BufferUtil
-
Returns a cached thread-local direct buffer, if available.
- toString() - Method in class io.netty5.buffer.internal.ArcDrop
- toString() - Method in class io.netty5.buffer.internal.CleanerDrop
- toString(Buffer, Charset) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- toString(Charset) - Method in interface io.netty5.buffer.Buffer
-
Decodes this buffer's readable bytes into a string with the specified Charset.
- toString(Charset) - Method in class io.netty5.buffer.BufferStub
- touch(Object) - Method in class io.netty5.buffer.BufferHolder
- touch(Object) - Method in class io.netty5.buffer.BufferStub
- touch(Object) - Method in class io.netty5.buffer.internal.AdaptableBuffer
- touch(Object) - Method in class io.netty5.buffer.internal.LifecycleTracer
-
Add the hint object to the trace log.
- touch(Object) - Method in class io.netty5.buffer.internal.ResourceSupport
- traceback() - Method in interface io.netty5.buffer.LeakInfo.TracePoint
-
Get a
Throwable
instance that holds the recorded stack trace of this trace point. - transferFrom(FileChannel, long, int) - Method in interface io.netty5.buffer.Buffer
-
Read from the given channel starting from the given position and write to this buffer.
- transferFrom(FileChannel, long, int) - Method in class io.netty5.buffer.BufferStub
- transferFrom(ReadableByteChannel, int) - Method in interface io.netty5.buffer.Buffer
-
Read from the given channel and write to this buffer.
- transferFrom(ReadableByteChannel, int) - Method in class io.netty5.buffer.BufferStub
- transferOwnership(Drop<T>) - Method in interface io.netty5.buffer.Owned
-
Transfer the ownership of the resource, to the calling thread.
- transferTo(WritableByteChannel, int) - Method in interface io.netty5.buffer.Buffer
-
Read from this buffer and write to the given channel.
- transferTo(WritableByteChannel, int) - Method in class io.netty5.buffer.BufferStub
- trimCurrentThreadCache() - Method in class io.netty5.buffer.pool.PooledBufferAllocator
-
Trim thread local cache for the current
Thread
, which will give back any cached memory that was not allocated frequently since the last trim operation. - tryGetWritableBufferFromReadableComponent(BufferComponent) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
U
- UNCHECKED_LOAD_BYTE_BUFFER - Static variable in interface io.netty5.buffer.internal.InternalBufferUtils
- unsafeGetDrop() - Method in class io.netty5.buffer.internal.ResourceSupport
-
Get access to the underlying
Drop
object. - UnsafeMemoryManager - Class in io.netty5.buffer.unsafe
-
This memory manager produces and manages
Buffer
instances that are usingUnsafe
to allocate and access memory. - UnsafeMemoryManager() - Constructor for class io.netty5.buffer.unsafe.UnsafeMemoryManager
- unsafeSetDrop(Drop<T>) - Method in class io.netty5.buffer.internal.ResourceSupport
-
Replace the current underlying
Drop
object with the given one. - unsafeSetDrop(ResourceSupport<?, ?>, Drop<?>) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- unsafeWrap(byte[]) - Static method in interface io.netty5.buffer.MemoryManager
-
Create a new on-heap
Buffer
instance that directly wraps the given array. - UntetheredMemory - Interface in io.netty5.buffer.pool
-
Memory that isn't attached to any particular buffer.
- unwrap() - Method in class io.netty5.buffer.internal.ArcDrop
- unwrapRecoverableMemory(Buffer) - Method in class io.netty5.buffer.bytebuffer.ByteBufferMemoryManager
- unwrapRecoverableMemory(Buffer) - Method in interface io.netty5.buffer.MemoryManager
-
Create an object that represents the internal memory of the given buffer.
- unwrapRecoverableMemory(Buffer) - Method in class io.netty5.buffer.unsafe.UnsafeMemoryManager
- usage() - Method in interface io.netty5.buffer.pool.PoolChunkMetric
-
Return the percentage of the current usage of the chunk.
- usedMemory() - Method in interface io.netty5.buffer.pool.BufferAllocatorMetric
-
Returns the number of bytes of heap memory used by a
BufferAllocator
or-1
if unknown. - using(MemoryManager, Supplier<T>) - Static method in class io.netty5.buffer.internal.MemoryManagerOverride
- using(MemoryManager, Supplier<T>) - Static method in interface io.netty5.buffer.MemoryManager
-
Temporarily override the default configured memory managers instance.
V
- valueOf(String) - Static method in enum io.netty5.buffer.StandardAllocationTypes
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.netty5.buffer.StandardAllocationTypes
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- wrap(Drop<T>, MemoryManager) - Static method in class io.netty5.buffer.internal.CleanerDrop
-
Wrap the given drop instance, and produce a new drop instance that will also call the delegate drop instance if it becomes cleanable.
- wrap(Drop<X>) - Static method in class io.netty5.buffer.internal.ArcDrop
- WrappingAllocation - Class in io.netty5.buffer.internal
-
An
AllocationType
for on-heap buffer allocations that wrap an existing byte array. - WrappingAllocation(byte[]) - Constructor for class io.netty5.buffer.internal.WrappingAllocation
- wrapWithoutLeakDetection(Drop<T>, MemoryManager) - Static method in class io.netty5.buffer.internal.CleanerDrop
-
Wrap the given drop instance, and produce a new drop instance that will also call the delegate drop instance if it becomes cleanable.
- writableArray() - Method in interface io.netty5.buffer.BufferComponent
-
Get a byte array of the contents of this component.
- writableArrayLength() - Method in interface io.netty5.buffer.BufferComponent
-
The number of bytes in the
BufferComponent.writableArray()
that belong to this component. - writableArrayOffset() - Method in interface io.netty5.buffer.BufferComponent
-
An offset into the
BufferComponent.writableArray()
where this component starts. - writableBuffer() - Method in interface io.netty5.buffer.BufferComponent
-
Get a
ByteBuffer
instance for this memory component, which can be used for modifying the buffer contents. - writableBytes() - Method in interface io.netty5.buffer.Buffer
-
Returns the number of writable bytes which is equal to
(capacity() - writerOffset())
. - writableBytes() - Method in interface io.netty5.buffer.BufferComponent
-
Get the space available to be written to this component, as a number of bytes.
- writableBytes() - Method in class io.netty5.buffer.BufferStub
- writableNativeAddress() - Method in interface io.netty5.buffer.BufferComponent
-
Give the native memory address backing this buffer, or return 0 if this buffer has no native memory address.
- write(byte[]) - Method in class io.netty5.buffer.BufferOutputStream
- write(byte[], int, int) - Method in class io.netty5.buffer.BufferOutputStream
- write(int) - Method in class io.netty5.buffer.BufferOutputStream
- writeAscii(BufferAllocator, CharSequence) - Static method in class io.netty5.buffer.BufferUtil
- writeBoolean(boolean) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given boolean value at the current
Buffer.writerOffset()
, and increase the writer offset byByte.BYTES
. - writeBoolean(boolean) - Method in class io.netty5.buffer.BufferOutputStream
- writeBoolean(boolean) - Method in class io.netty5.buffer.BufferStub
- writeBoolean(boolean) - Method in interface io.netty5.buffer.CompositeBuffer
- writeByte(byte) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given byte value at the current
Buffer.writerOffset()
, and increase the writer offset byByte.BYTES
. - writeByte(byte) - Method in class io.netty5.buffer.BufferStub
- writeByte(byte) - Method in interface io.netty5.buffer.CompositeBuffer
- writeByte(int) - Method in class io.netty5.buffer.BufferOutputStream
- writeBytes(byte[]) - Method in interface io.netty5.buffer.Buffer
-
Writes into this buffer, all the bytes from the given byte array.
- writeBytes(byte[]) - Method in class io.netty5.buffer.BufferStub
- writeBytes(byte[]) - Method in interface io.netty5.buffer.CompositeBuffer
- writeBytes(byte[], int, int) - Method in interface io.netty5.buffer.Buffer
-
Writes into this buffer, the given number of bytes from the byte array.
- writeBytes(byte[], int, int) - Method in class io.netty5.buffer.BufferStub
- writeBytes(byte[], int, int) - Method in interface io.netty5.buffer.CompositeBuffer
- writeBytes(Buffer) - Method in interface io.netty5.buffer.Buffer
-
Writes into this buffer, all the readable bytes from the given buffer.
- writeBytes(Buffer) - Method in class io.netty5.buffer.BufferStub
- writeBytes(Buffer) - Method in interface io.netty5.buffer.CompositeBuffer
- writeBytes(String) - Method in class io.netty5.buffer.BufferOutputStream
- writeBytes(ByteBuffer) - Method in interface io.netty5.buffer.Buffer
-
Writes into this buffer from the source
ByteBuffer
. - writeBytes(ByteBuffer) - Method in class io.netty5.buffer.BufferStub
- writeBytes(ByteBuffer) - Method in interface io.netty5.buffer.CompositeBuffer
- writeChar(char) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given char value at the current
Buffer.writerOffset()
, and increase the writer offset by 2. - writeChar(char) - Method in class io.netty5.buffer.BufferStub
- writeChar(char) - Method in interface io.netty5.buffer.CompositeBuffer
- writeChar(int) - Method in class io.netty5.buffer.BufferOutputStream
- writeChars(String) - Method in class io.netty5.buffer.BufferOutputStream
- writeCharSequence(CharSequence, Buffer, Charset) - Static method in interface io.netty5.buffer.internal.InternalBufferUtils
- writeCharSequence(CharSequence, Charset) - Method in interface io.netty5.buffer.Buffer
-
Writes into this buffer, all the bytes from the given
source
using the passedcharset
. - writeCharSequence(CharSequence, Charset) - Method in class io.netty5.buffer.BufferStub
- writeCharSequence(CharSequence, Charset) - Method in interface io.netty5.buffer.CompositeBuffer
- writeDouble(double) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given double value at the current
Buffer.writerOffset()
, and increase the writer offset byDouble.BYTES
. - writeDouble(double) - Method in class io.netty5.buffer.BufferOutputStream
- writeDouble(double) - Method in class io.netty5.buffer.BufferStub
- writeDouble(double) - Method in interface io.netty5.buffer.CompositeBuffer
- writeFloat(float) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given float value at the current
Buffer.writerOffset()
, and increase the writer offset byFloat.BYTES
. - writeFloat(float) - Method in class io.netty5.buffer.BufferOutputStream
- writeFloat(float) - Method in class io.netty5.buffer.BufferStub
- writeFloat(float) - Method in interface io.netty5.buffer.CompositeBuffer
- writeInt(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given int value at the current
Buffer.writerOffset()
, and increase the writer offset byInteger.BYTES
. - writeInt(int) - Method in class io.netty5.buffer.BufferOutputStream
- writeInt(int) - Method in class io.netty5.buffer.BufferStub
- writeInt(int) - Method in interface io.netty5.buffer.CompositeBuffer
- writeLong(long) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given long value at the current
Buffer.writerOffset()
, and increase the writer offset byLong.BYTES
. - writeLong(long) - Method in class io.netty5.buffer.BufferOutputStream
- writeLong(long) - Method in class io.netty5.buffer.BufferStub
- writeLong(long) - Method in interface io.netty5.buffer.CompositeBuffer
- writeMedium(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given int value at the current
Buffer.writerOffset()
, and increase the writer offset by 3. - writeMedium(int) - Method in class io.netty5.buffer.BufferStub
- writeMedium(int) - Method in interface io.netty5.buffer.CompositeBuffer
- writerOffset() - Method in interface io.netty5.buffer.Buffer
-
Get the current writer offset.
- writerOffset() - Method in class io.netty5.buffer.BufferStub
- writerOffset(int) - Method in interface io.netty5.buffer.Buffer
-
Set the writer offset.
- writerOffset(int) - Method in class io.netty5.buffer.BufferStub
- writerOffset(int) - Method in interface io.netty5.buffer.CompositeBuffer
- writeShort(int) - Method in class io.netty5.buffer.BufferOutputStream
- writeShort(short) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given short value at the current
Buffer.writerOffset()
, and increase the writer offset byShort.BYTES
. - writeShort(short) - Method in class io.netty5.buffer.BufferStub
- writeShort(short) - Method in interface io.netty5.buffer.CompositeBuffer
- writeSplit(int) - Method in interface io.netty5.buffer.Buffer
-
Splits the buffer into two, at
length
number of bytes from the current writer offset position. - writeSplit(int) - Method in class io.netty5.buffer.BufferStub
- writeUnsignedByte(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given unsigned byte value at the current
Buffer.writerOffset()
, and increase the writer offset byByte.BYTES
. - writeUnsignedByte(int) - Method in class io.netty5.buffer.BufferStub
- writeUnsignedByte(int) - Method in interface io.netty5.buffer.CompositeBuffer
- writeUnsignedInt(long) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given unsigned int value at the current
Buffer.writerOffset()
, and increase the writer offset byInteger.BYTES
. - writeUnsignedInt(long) - Method in class io.netty5.buffer.BufferStub
- writeUnsignedInt(long) - Method in interface io.netty5.buffer.CompositeBuffer
- writeUnsignedMedium(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given unsigned int value at the current
Buffer.writerOffset()
, and increase the writer offset by 3. - writeUnsignedMedium(int) - Method in class io.netty5.buffer.BufferStub
- writeUnsignedMedium(int) - Method in interface io.netty5.buffer.CompositeBuffer
- writeUnsignedShort(int) - Method in interface io.netty5.buffer.BufferAccessor
-
Write the given unsigned short value at the current
Buffer.writerOffset()
, and increase the writer offset byShort.BYTES
. - writeUnsignedShort(int) - Method in class io.netty5.buffer.BufferStub
- writeUnsignedShort(int) - Method in interface io.netty5.buffer.CompositeBuffer
- writeUTF(String) - Method in class io.netty5.buffer.BufferOutputStream
- writtenBytes() - Method in class io.netty5.buffer.BufferOutputStream
-
Returns the number of written bytes by this stream so far.
All Classes All Packages