Skip to main content

NativeFloatBuffer

class NativeFloatBuffer

A NativeFloatBuffer is an array float that instead of being allocated in Java's heap memory is allocated in native memory, so if you need to use more memory than the available heap memory, use NativeFloatBuffer and you will be able to use 100% of the device's ram memory.


public class NativeFloatBuffer

— Constructors (1) —

ConstructorDescription
NativeFloatBuffer(int capacity)Creates a new NativeFloatBuffer with its maximum capacity defined to be "capacity" argument.

— Methods (9) —

NameDescription
float get(int idx)Returns the current float value of the position defined to be "idx" argument.
void set(int idx, float value)Sets the current value of NativeFloatBuffer to be "value" argument and its current position to be "idx" argument.
void put(float value)Places a value defined to be "value" argument sequentially in the NativeFloatBuffer.
int capacity()Returns the maximum NativeFloatBuffer capacity value.
long getPosition()Returns the current position of the NativeFloatBuffer.
void Position(int idx)Returns the current position of the NativeFloatBuffer defined to be "idx" argument.
void setPosition(int idx)Sets the current position of the NativeFloatBuffer to be "idx" argument.
boolean isVboEnabled()Returns true if the vbo of NativeFloatBuffer is enabled, false if not.
void setVboEnabled(boolean value)Defines if NativeFloatBuffer's vbo will be enabled or disabled to be "value" argument.