public class UnsafeHolder extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static long | BYTE_ARR_OFF | 
| Constructor and Description | 
|---|
| UnsafeHolder() | 
| Modifier and Type | Method and Description | 
|---|---|
| static long | allocateMemory(long size) | 
| static void | copyByteArrayFromMemory(byte[] destination,
                       long address,
                       int length) | 
| static void | copyByteArrayToMemory(byte[] data,
                     long address,
                     int length) | 
| static void | freeFromMemory(long address) | 
| static int | getByte(long address) | 
| static boolean | isAvailable() | 
| static long | objectFieldOffset(Field field) | 
| static void | putByte(long address,
       byte b) | 
| static long | reallocateMemory(long oldAddress,
                long size) | 
public static boolean isAvailable()
public static long objectFieldOffset(Field field)
public static long allocateMemory(long size)
public static long reallocateMemory(long oldAddress,
                                    long size)
public static void copyByteArrayToMemory(byte[] data,
                                         long address,
                                         int length)
public static void copyByteArrayFromMemory(byte[] destination,
                                           long address,
                                           int length)
public static void freeFromMemory(long address)
public static void putByte(long address,
                           byte b)
public static int getByte(long address)
Copyright © GigaSpaces.