Class NativeMemory

java.lang.Object
org.ojalgo.type.NativeMemory

public abstract class NativeMemory extends Object
  • Field Details

    • ADDRESS_OFFSET

      static final long ADDRESS_OFFSET
    • CLEANER

      static final Cleaner CLEANER
    • SIZE_BYTE

      static final long SIZE_BYTE
    • SIZE_DOUBLE

      static final long SIZE_DOUBLE
    • SIZE_FLOAT

      static final long SIZE_FLOAT
    • SIZE_INT

      static final long SIZE_INT
    • SIZE_LONG

      static final long SIZE_LONG
    • SIZE_SHORT

      static final long SIZE_SHORT
    • UNSAFE

      static final sun.misc.Unsafe UNSAFE
    • ZERO_BYTE

      static final byte ZERO_BYTE
      See Also:
    • ZERO_DOUBLE

      static final double ZERO_DOUBLE
      See Also:
    • ZERO_FLOAT

      static final float ZERO_FLOAT
      See Also:
    • ZERO_INT

      static final int ZERO_INT
      See Also:
    • ZERO_LONG

      static final long ZERO_LONG
      See Also:
    • ZERO_SHORT

      static final short ZERO_SHORT
      See Also:
  • Constructor Details

    • NativeMemory

      public NativeMemory()
  • Method Details

    • allocateByteArray

      public static long allocateByteArray(Object owner, long count)
    • allocateDoubleArray

      public static long allocateDoubleArray(Object owner, long count)
    • allocateFloatArray

      public static long allocateFloatArray(Object owner, long count)
    • allocateIntArray

      public static long allocateIntArray(Object owner, long count)
    • allocateLongArray

      public static long allocateLongArray(Object owner, long count)
    • allocateShortArray

      public static long allocateShortArray(Object owner, long count)
    • 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

      public static long getAddressOf(Buffer buffer)
    • 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)
    • allocate

      static long allocate(Object owner, long bytes)