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