public final class Memory extends Object
Utility class around allocating memory via Unsafe
| Constructor and Description |
|---|
Memory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyMemory(byte[] theBytes,
long theOffset,
long theAddress,
long theLength) |
static void |
copyMemory(long theAddress,
byte[] theBytes,
int theOffset,
long theLength) |
static void |
copyMemory(long theSrc,
long theDest,
long theLength) |
static byte |
getByte(long theAddress) |
static double |
getDouble(long theAddress) |
static float |
getFloat(long theAddress) |
static int |
getInt(long theAddress) |
static long |
getLong(long theAddress) |
static short |
getShort(long theAddress) |
static boolean |
isOffHeapAvailable() |
static boolean |
isUnsafeAvailable() |
static void |
putByte(long theAddress,
byte theValue) |
static void |
putDouble(long theAddress,
double theValue) |
static void |
putFloat(long theAddress,
float theValue) |
static void |
putInt(long theAddress,
int theValue) |
static void |
putLong(long theAddress,
long theValue) |
static void |
putShort(long theAddress,
short theValue) |
static void |
zero(long theAddress,
long theSize) |
public static void zero(long theAddress,
long theSize)
public static boolean isUnsafeAvailable()
public static boolean isOffHeapAvailable()
public static void copyMemory(long theSrc,
long theDest,
long theLength)
public static void copyMemory(byte[] theBytes,
long theOffset,
long theAddress,
long theLength)
public static void copyMemory(long theAddress,
byte[] theBytes,
int theOffset,
long theLength)
public static long getLong(long theAddress)
public static int getInt(long theAddress)
public static short getShort(long theAddress)
public static byte getByte(long theAddress)
public static double getDouble(long theAddress)
public static float getFloat(long theAddress)
public static void putLong(long theAddress,
long theValue)
public static void putInt(long theAddress,
int theValue)
public static void putByte(long theAddress,
byte theValue)
public static void putShort(long theAddress,
short theValue)
public static void putDouble(long theAddress,
double theValue)
public static void putFloat(long theAddress,
float theValue)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.