B
- the buffer typepublic interface BufferAllocator<B extends java.nio.Buffer>
Modifier and Type | Field and Description |
---|---|
static BufferAllocator<java.nio.ByteBuffer> |
BYTE_BUFFER_ALLOCATOR
A simple allocator for heap-array-backed byte buffers.
|
static BufferAllocator<java.nio.ByteBuffer> |
DIRECT_BYTE_BUFFER_ALLOCATOR
A simple allocator for direct byte buffers.
|
static final BufferAllocator<java.nio.ByteBuffer> BYTE_BUFFER_ALLOCATOR
static final BufferAllocator<java.nio.ByteBuffer> DIRECT_BYTE_BUFFER_ALLOCATOR
B allocate(int size) throws java.lang.IllegalArgumentException
size
- the sizejava.lang.IllegalArgumentException
- if the given buffer size is less than zeroCopyright © 2010 JBoss, a division of Red Hat, Inc.