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.
|
Modifier and Type | Method and Description |
---|---|
B |
allocate(int size)
Allocate a buffer of the given size.
|
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 © 2017 JBoss by Red Hat. All rights reserved.