Modifier and Type | Class and Description |
---|---|
class |
AbstractByteBufAllocator
Skeletal
ByteBufAllocator implementation to extend. |
class |
PooledByteBufAllocator |
class |
UnpooledByteBufAllocator
Simplistic
ByteBufAllocator implementation that does not pool anything. |
Modifier and Type | Field and Description |
---|---|
static ByteBufAllocator |
ByteBufAllocator.DEFAULT |
Modifier and Type | Method and Description |
---|---|
ByteBufAllocator |
SwappedByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
UnpooledUnsafeDirectByteBuf.alloc() |
abstract ByteBufAllocator |
ByteBuf.alloc()
Returns the
ByteBufAllocator which created this buffer. |
ByteBufAllocator |
DuplicatedByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
CompositeByteBuf.alloc() |
ByteBufAllocator |
UnpooledHeapByteBuf.alloc() |
ByteBufAllocator |
ReadOnlyByteBuf.alloc()
Deprecated.
|
ByteBufAllocator |
EmptyByteBuf.alloc() |
ByteBufAllocator |
UnpooledDirectByteBuf.alloc() |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
CharBuffer src,
Charset charset)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
CharBuffer src,
Charset charset,
int extraCapacity)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
static ByteBuf |
ByteBufUtil.readBytes(ByteBufAllocator alloc,
ByteBuf buffer,
int length)
Read the given amount of bytes into a new
ByteBuf that is allocated from the ByteBufAllocator . |
static ByteBuf |
ByteBufUtil.writeAscii(ByteBufAllocator alloc,
CharSequence seq)
|
static ByteBuf |
ByteBufUtil.writeUtf8(ByteBufAllocator alloc,
CharSequence seq)
|
Constructor and 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,
ByteBuffer initialBuffer,
int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.
|
UnpooledDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity)
Creates a new direct 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,
ByteBuffer initialBuffer,
int maxCapacity)
Creates a new direct buffer by wrapping the specified initial buffer.
|
UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity)
Creates a new direct buffer.
|
Copyright © 2008–2019 The Netty Project. All rights reserved.