B
- the buffer typepublic interface BufferAllocator<B extends Buffer>
Modifier and Type | Field and Description |
---|---|
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.
|
static final BufferAllocator<ByteBuffer> BYTE_BUFFER_ALLOCATOR
static final BufferAllocator<ByteBuffer> DIRECT_BYTE_BUFFER_ALLOCATOR
B allocate(int size) throws IllegalArgumentException
size
- the sizeIllegalArgumentException
- if the given buffer size is less than zeroCopyright © 2012 JBoss by Red Hat. All Rights Reserved.