|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
B - the buffer typepublic interface BufferAllocator<B extends Buffer>
A simple allocator for buffers.
| Field Summary | |
|---|---|
static BufferAllocator<ByteBuffer> |
BYTE_BUFFER_ALLOCATOR
A simple allocator for heap-array-backed byte buffers. |
static BufferAllocator<ByteBuffer> |
DIRECT_BYTE_BUFFER_ALLOCATOR
A simple allocator for direct byte buffers. |
| Method Summary | |
|---|---|
B |
allocate(int size)
Allocate a buffer of the given size. |
| Field Detail |
|---|
static final BufferAllocator<ByteBuffer> BYTE_BUFFER_ALLOCATOR
static final BufferAllocator<ByteBuffer> DIRECT_BYTE_BUFFER_ALLOCATOR
| Method Detail |
|---|
B allocate(int size)
throws IllegalArgumentException
size - the size
IllegalArgumentException - if the given buffer size is less than zero
|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||