Package com.jme3.util
Class AndroidNativeBufferAllocator
java.lang.Object
com.jme3.util.AndroidNativeBufferAllocator
- All Implemented Interfaces:
 BufferAllocator
Allocates and destroys direct byte buffers using native code.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionallocate(int size) Allocate a direct ByteBuffer of the specified size.voiddestroyDirectBuffer(Buffer toBeDestroyed) De-allocate a direct buffer. 
- 
Constructor Details
- 
AndroidNativeBufferAllocator
public AndroidNativeBufferAllocator() 
 - 
 - 
Method Details
- 
destroyDirectBuffer
Description copied from interface:BufferAllocatorDe-allocate a direct buffer.- Specified by:
 destroyDirectBufferin interfaceBufferAllocator- Parameters:
 toBeDestroyed- the buffer to de-allocate (not null)
 - 
allocate
Description copied from interface:BufferAllocatorAllocate a direct ByteBuffer of the specified size.- Specified by:
 allocatein interfaceBufferAllocator- Parameters:
 size- in bytes (≥0)- Returns:
 - a new direct buffer
 
 
 -