Uses of Interface
io.netty5.buffer.ByteBufAllocator
-
Packages that use ByteBufAllocator 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.adaptor Helpers for integrating with the existingByteBuf
API. -
-
Uses of ByteBufAllocator in io.netty5.buffer
Classes in io.netty5.buffer that implement ByteBufAllocator Modifier and Type Class Description class
AbstractByteBufAllocator
SkeletalByteBufAllocator
implementation to extend.class
PooledByteBufAllocator
class
UnpooledByteBufAllocator
SimplisticByteBufAllocator
implementation that does not pool anything.Fields in io.netty5.buffer declared as ByteBufAllocator Modifier and Type Field Description static ByteBufAllocator
ByteBufAllocator. DEFAULT
Methods in io.netty5.buffer that return ByteBufAllocator Modifier and Type Method Description abstract ByteBufAllocator
ByteBuf. alloc()
Returns theByteBufAllocator
which created this buffer.ByteBufAllocator
CompositeByteBuf. alloc()
ByteBufAllocator
DuplicatedByteBuf. alloc()
Deprecated.ByteBufAllocator
EmptyByteBuf. alloc()
ByteBufAllocator
ReadOnlyByteBuf. alloc()
Deprecated.ByteBufAllocator
SwappedByteBuf. alloc()
Deprecated.ByteBufAllocator
UnpooledDirectByteBuf. alloc()
ByteBufAllocator
UnpooledHeapByteBuf. alloc()
Methods in io.netty5.buffer with parameters of type ByteBufAllocator Modifier and Type Method Description static ByteBuf
ByteBufUtil. encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset)
Encode the givenCharBuffer
using the givenCharset
into a newByteBuf
which is allocated via theByteBufAllocator
.static ByteBuf
ByteBufUtil. encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset, int extraCapacity)
Encode the givenCharBuffer
using the givenCharset
into a newByteBuf
which is allocated via theByteBufAllocator
.static ByteBuf
ByteBufUtil. readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length)
Read the given amount of bytes into a newByteBuf
that is allocated from theByteBufAllocator
.static ByteBuf
ByteBufUtil. writeAscii(ByteBufAllocator alloc, CharSequence seq)
static ByteBuf
ByteBufUtil. writeUtf8(ByteBufAllocator alloc, CharSequence seq)
Constructors in io.netty5.buffer with parameters of type ByteBufAllocator Constructor Description CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, ByteBuf... buffers)
CompositeByteBuf(ByteBufAllocator alloc, boolean direct, int maxNumComponents, Iterable<ByteBuf> buffers)
EmptyByteBuf(ByteBufAllocator alloc)
UnpooledDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
Creates a new direct buffer.UnpooledDirectByteBuf(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.UnpooledHeapByteBuf(ByteBufAllocator alloc, byte[] initialArray, int maxCapacity)
Creates a new heap buffer with an existing byte array.UnpooledHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
Creates a new heap buffer with a newly allocated byte array.UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
Creates a new direct buffer.UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.UnpooledUnsafeHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
Creates a new heap buffer with a newly allocated byte array. -
Uses of ByteBufAllocator in io.netty5.buffer.api.adaptor
Classes in io.netty5.buffer.api.adaptor that implement ByteBufAllocator Modifier and Type Class Description class
ByteBufAllocatorAdaptor
Methods in io.netty5.buffer.api.adaptor that return ByteBufAllocator Modifier and Type Method Description ByteBufAllocator
ByteBufAdaptor. alloc()
-