Skip to main content

NativeIntBuffer

class NativeIntBuffer

A NativeIntBuffer is an array int 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 NativeIntBuffer and you will be able to use 100% of the device's ram memory.


public class NativeIntBuffer

— Constructors (1) —

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

— Methods (9) —

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