java.lang.Object
org.ojalgo.type.NativeMemory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longallocateByteArray(Object owner, long count) static longallocateDoubleArray(Object owner, long count) static longallocateFloatArray(Object owner, long count) static longallocateIntArray(Object owner, long count) static longallocateLongArray(Object owner, long count) static longallocateShortArray(Object owner, long count) static voidfillByteArray(long basePointer, long count, byte value) static voidfillDoubleArray(long basePointer, long count, double value) static voidfillFloatArray(long basePointer, long count, float value) static voidfillIntArray(long basePointer, long count, int value) static voidfillLongArray(long basePointer, long count, long value) static voidfillShortArray(long basePointer, long count, short value) static longgetAddressOf(Buffer buffer) static bytegetByte(long address) static bytegetByte(long basePointer, long index) static chargetChar(long address) static doublegetDouble(long address) static doublegetDouble(long basePointer, long index) static floatgetFloat(long address) static floatgetFloat(long basePointer, long index) static intgetInt(long address) static intgetInt(long basePointer, long index) static longgetLong(long address) static longgetLong(long basePointer, long index) static shortgetShort(long address) static shortgetShort(long basePointer, long index) static voidinitialiseByteArray(long basePointer, long count) static voidinitialiseDoubleArray(long basePointer, long count) static voidinitialiseFloatArray(long basePointer, long count) static voidinitialiseIntArray(long basePointer, long count) static voidinitialiseLongArray(long basePointer, long count) static voidinitialiseShortArray(long basePointer, long count) static voidsetByte(long basePointer, long index, byte value) static voidsetDouble(long basePointer, long index, double value) static voidsetFloat(long basePointer, long index, float value) static voidsetInt(long basePointer, long index, int value) static voidsetLong(long basePointer, long index, long value) static voidsetShort(long basePointer, long index, short value)
-
Constructor Details
-
NativeMemory
public NativeMemory()
-
-
Method Details
-
allocateByteArray
-
allocateDoubleArray
-
allocateFloatArray
-
allocateIntArray
-
allocateLongArray
-
allocateShortArray
-
fillByteArray
public static void fillByteArray(long basePointer, long count, byte value) -
fillDoubleArray
public static void fillDoubleArray(long basePointer, long count, double value) -
fillFloatArray
public static void fillFloatArray(long basePointer, long count, float value) -
fillIntArray
public static void fillIntArray(long basePointer, long count, int value) -
fillLongArray
public static void fillLongArray(long basePointer, long count, long value) -
fillShortArray
public static void fillShortArray(long basePointer, long count, short value) -
getAddressOf
-
getByte
public static byte getByte(long address) -
getByte
public static byte getByte(long basePointer, long index) -
getChar
public static char getChar(long address) -
getDouble
public static double getDouble(long address) -
getDouble
public static double getDouble(long basePointer, long index) -
getFloat
public static float getFloat(long address) -
getFloat
public static float getFloat(long basePointer, long index) -
getInt
public static int getInt(long address) -
getInt
public static int getInt(long basePointer, long index) -
getLong
public static long getLong(long address) -
getLong
public static long getLong(long basePointer, long index) -
getShort
public static short getShort(long address) -
getShort
public static short getShort(long basePointer, long index) -
initialiseByteArray
public static void initialiseByteArray(long basePointer, long count) -
initialiseDoubleArray
public static void initialiseDoubleArray(long basePointer, long count) -
initialiseFloatArray
public static void initialiseFloatArray(long basePointer, long count) -
initialiseIntArray
public static void initialiseIntArray(long basePointer, long count) -
initialiseLongArray
public static void initialiseLongArray(long basePointer, long count) -
initialiseShortArray
public static void initialiseShortArray(long basePointer, long count) -
setByte
public static void setByte(long basePointer, long index, byte value) -
setDouble
public static void setDouble(long basePointer, long index, double value) -
setFloat
public static void setFloat(long basePointer, long index, float value) -
setInt
public static void setInt(long basePointer, long index, int value) -
setLong
public static void setLong(long basePointer, long index, long value) -
setShort
public static void setShort(long basePointer, long index, short value)
-