ByteBufferAllocator@Contract(threading=IMMUTABLE) public class HeapByteBufferAllocator extends java.lang.Object implements ByteBufferAllocator
ByteBuffer instances using
ByteBuffer.allocate(int).| Modifier and Type | Field | Description |
|---|---|---|
static HeapByteBufferAllocator |
INSTANCE |
| Constructor | Description |
|---|---|
HeapByteBufferAllocator() |
| Modifier and Type | Method | Description |
|---|---|---|
java.nio.ByteBuffer |
allocate(int size) |
Allocates
ByteBuffer of the given size. |
public static final HeapByteBufferAllocator INSTANCE
public java.nio.ByteBuffer allocate(int size)
ByteBufferAllocatorByteBuffer of the given size.allocate in interface ByteBufferAllocatorsize - the size of the buffer.