Skip to main content

NativeCharBuffer

class NativeCharBuffer

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


public class NativeCharBuffer

— Constructors (1) —

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

— Methods (7) —

NameDescription
char get(int index)Returns the current char value of the position defined to be "idx" argument.
void set(int index, char value)Sets the current value of NativeCharBuffer to be "value" argument and its current position to be "idx" argument.
void put(char value)Places a value defined to be "value" argument sequentially in the NativeCharBuffer.
int capacity()Returns the maximum NativeCharBuffer capacity value.
int getPosition()Returns the current position of the NativeCharBuffer.
void Position(int idx)Returns the current position of the NativeCharBuffer defined to be "idx" argument.
void setPosition(int idx)Sets the current position of the NativeCharBuffer to be "idx" argument.