| 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 | Method and Description |
|---|---|
ByteBufAllocator |
DuplicatedByteBuf.alloc() |
ByteBufAllocator |
UnpooledHeapByteBuf.alloc() |
ByteBufAllocator |
WrappedByteBuf.alloc() |
ByteBufAllocator |
ReadOnlyByteBuf.alloc() |
abstract ByteBufAllocator |
ByteBuf.alloc()
Returns the
ByteBufAllocator which created this buffer. |
ByteBufAllocator |
SwappedByteBuf.alloc() |
ByteBufAllocator |
EmptyByteBuf.alloc() |
ByteBufAllocator |
SlicedByteBuf.alloc() |
ByteBufAllocator |
CompositeByteBuf.alloc() |
ByteBufAllocator |
UnpooledUnsafeDirectByteBuf.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.readBytes(ByteBufAllocator alloc,
ByteBuf buffer,
int length)
Read the given amount of bytes into a new
ByteBuf that is allocated from the ByteBufAllocator. |
| 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–2013 The Netty Project. All rights reserved.