public class AndroidBufferAllocator extends java.lang.Object implements BufferAllocator
Constructor and Description |
---|
AndroidBufferAllocator() |
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)
BufferAllocator
destroyDirectBuffer
in interface BufferAllocator
toBeDestroyed
- the buffer to de-allocate (not null)public java.nio.ByteBuffer allocate(int size)
BufferAllocator
allocate
in interface BufferAllocator
size
- in bytes (≥0)