Package com.jme3.util
Class AndroidBufferAllocator
java.lang.Object
com.jme3.util.AndroidBufferAllocator
- All Implemented Interfaces:
BufferAllocator
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocate(int size) Deprecated.Allocate a direct ByteBuffer of the specified size.voiddestroyDirectBuffer(Buffer toBeDestroyed) Deprecated.Searches the inner direct buffer of the Android-specific wrapped buffer classes and destroys it using the reflection allocator method.
-
Constructor Details
-
AndroidBufferAllocator
public AndroidBufferAllocator()Deprecated.
-
-
Method Details
-
destroyDirectBuffer
Deprecated.Searches the inner direct buffer of the Android-specific wrapped buffer classes and destroys it using the reflection allocator method.- Specified by:
destroyDirectBufferin interfaceBufferAllocator- Parameters:
toBeDestroyed- The direct buffer that will be "cleaned".
-
allocate
Deprecated.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
-
AndroidNativeBufferAllocatorinstead.