public final class PrimitiveAllocator extends java.lang.Object implements BufferAllocator
| Constructor and Description |
|---|
PrimitiveAllocator() |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
allocate(int size)
Allocate a direct ByteBuffer of the specified size.
|
void |
destroyDirectBuffer(java.nio.Buffer toBeDestroyed)
De-allocate a direct buffer.
|
public void destroyDirectBuffer(java.nio.Buffer toBeDestroyed)
destroyDirectBuffer in interface BufferAllocatortoBeDestroyed - ignoredpublic java.nio.ByteBuffer allocate(int size)
allocate in interface BufferAllocatorsize - in bytes (≥0)