public interface BufferAllocator
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.
|
void destroyDirectBuffer(java.nio.Buffer toBeDestroyed)
toBeDestroyed
- the buffer to de-allocate (not null)java.nio.ByteBuffer allocate(int size)
size
- in bytes (≥0)