Package com.jme3.util
Class AndroidBufferAllocator
java.lang.Object
com.jme3.util.AndroidBufferAllocator
- All Implemented Interfaces:
BufferAllocator
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallocate
(int size) Deprecated.Allocate a direct ByteBuffer of the specified size.void
destroyDirectBuffer
(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:
destroyDirectBuffer
in interfaceBufferAllocator
- Parameters:
toBeDestroyed
- The direct buffer that will be "cleaned".
-
allocate
Deprecated.Description copied from interface:BufferAllocator
Allocate a direct ByteBuffer of the specified size.- Specified by:
allocate
in interfaceBufferAllocator
- Parameters:
size
- in bytes (≥0)- Returns:
- a new direct buffer
-
AndroidNativeBufferAllocator
instead.