Modifier and Type | Field and Description |
---|---|
private static long |
BYTE_ARRAY_OFFSET |
private static long |
SHORT_ARRAY_OFFSET |
private static long |
SHORT_ARRAY_STRIDE |
private static sun.misc.Unsafe |
unsafe |
Constructor and Description |
---|
UnsafeMemory() |
Modifier and Type | Method and Description |
---|---|
void |
copyLong(byte[] src,
int srcIndex,
byte[] dest,
int destIndex) |
void |
copyMemory(byte[] input,
int inputIndex,
byte[] output,
int outputIndex,
int length) |
boolean |
fastAccessSupported() |
int |
loadByte(byte[] data,
int index) |
int |
loadInt(byte[] data,
int index) |
long |
loadLong(byte[] data,
int index) |
int |
lookupShort(short[] data,
int index) |
private static final sun.misc.Unsafe unsafe
private static final long BYTE_ARRAY_OFFSET
private static final long SHORT_ARRAY_OFFSET
private static final long SHORT_ARRAY_STRIDE
public boolean fastAccessSupported()
fastAccessSupported
in interface Memory
public int lookupShort(short[] data, int index)
lookupShort
in interface Memory
public void copyLong(byte[] src, int srcIndex, byte[] dest, int destIndex)
public void copyMemory(byte[] input, int inputIndex, byte[] output, int outputIndex, int length)
copyMemory
in interface Memory