Package com.jme3.util
Interface BufferAllocator
- All Known Implementing Classes:
 AndroidBufferAllocator,AndroidNativeBufferAllocator,LWJGLBufferAllocator,LWJGLBufferAllocator.ConcurrentLWJGLBufferAllocator,PrimitiveAllocator,ReflectionAllocator
public interface BufferAllocator
Interface to create/destroy direct buffers.
- 
Method Summary
Modifier and TypeMethodDescriptionallocate(int size) Allocate a direct ByteBuffer of the specified size.voiddestroyDirectBuffer(Buffer toBeDestroyed) De-allocate a direct buffer. 
- 
Method Details
- 
destroyDirectBuffer
De-allocate a direct buffer.- Parameters:
 toBeDestroyed- the buffer to de-allocate (not null)
 - 
allocate
Allocate a direct ByteBuffer of the specified size.- Parameters:
 size- in bytes (≥0)- Returns:
 - a new direct buffer
 
 
 -