Uses of Interface
io.netty.buffer.ByteBufAllocator
-
Packages that use ByteBufAllocator Package Description io.netty.buffer Abstraction of a byte buffer - the fundamental data structure to represent a low-level binary and text message. -
-
Uses of ByteBufAllocator in io.netty.buffer
Classes in io.netty.buffer that implement ByteBufAllocator Modifier and Type Class Description classAbstractByteBufAllocatorSkeletalByteBufAllocatorimplementation to extend.classAdaptiveByteBufAllocatorAn auto-tuning poolingByteBufAllocator, that follows an anti-generational hypothesis.classPooledByteBufAllocatorclassUnpooledByteBufAllocatorSimplisticByteBufAllocatorimplementation that does not pool anything.Fields in io.netty.buffer declared as ByteBufAllocator Modifier and Type Field Description static ByteBufAllocatorByteBufAllocator. DEFAULTMethods in io.netty.buffer that return ByteBufAllocator Modifier and Type Method Description abstract ByteBufAllocatorByteBuf. alloc()Returns theByteBufAllocatorwhich created this buffer.ByteBufAllocatorCompositeByteBuf. alloc()ByteBufAllocatorDuplicatedByteBuf. alloc()Deprecated.ByteBufAllocatorEmptyByteBuf. alloc()ByteBufAllocatorReadOnlyByteBuf. alloc()Deprecated.ByteBufAllocatorSwappedByteBuf. alloc()Deprecated.ByteBufAllocatorUnpooledDirectByteBuf. alloc()ByteBufAllocatorUnpooledHeapByteBuf. alloc()ByteBufAllocatorWrappedByteBuf. alloc()Methods in io.netty.buffer with parameters of type ByteBufAllocator Modifier and Type Method Description static ByteBufByteBufUtil. encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset)Encode the givenCharBufferusing the givenCharsetinto a newByteBufwhich is allocated via theByteBufAllocator.static ByteBufByteBufUtil. encodeString(ByteBufAllocator alloc, CharBuffer src, Charset charset, int extraCapacity)Encode the givenCharBufferusing the givenCharsetinto a newByteBufwhich is allocated via theByteBufAllocator.static ByteBufByteBufUtil. readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length)Read the given amount of bytes into a newByteBufthat is allocated from theByteBufAllocator.static ByteBufByteBufUtil. writeAscii(ByteBufAllocator alloc, CharSequence seq)static ByteBufByteBufUtil. writeUtf8(ByteBufAllocator alloc, CharSequence seq)Constructors in io.netty.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.
-