public class TUnsafe extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAY_BOOLEAN_INDEX_SCALE |
static int |
ARRAY_BYTE_INDEX_SCALE |
static int |
ARRAY_CHAR_INDEX_SCALE |
static int |
ARRAY_DOUBLE_INDEX_SCALE |
static int |
ARRAY_FLOAT_INDEX_SCALE |
static int |
ARRAY_INT_INDEX_SCALE |
static int |
ARRAY_LONG_INDEX_SCALE |
static int |
ARRAY_SHORT_INDEX_SCALE |
| Constructor and Description |
|---|
TUnsafe() |
| Modifier and Type | Method and Description |
|---|---|
long |
allocateMemory(long aAmount) |
int |
arrayBaseOffset(Class clazz) |
int |
arrayIndexScale(Class clazz) |
boolean |
compareAndSetReference(Object o1,
long l,
Object o2,
Object o3) |
void |
copyMemory(long a,
long b,
long c) |
void |
copyMemory(Object o,
long a,
Object b,
long c,
long d) |
void |
copySwapMemory(Object a,
long b,
Object c,
long d,
long e,
long f) |
void |
ensureClassInitialized(Class<?> c) |
void |
freeMemory(long a) |
long |
getAddress(long a) |
int |
getAndAddInt(Object ol,
long a,
int b) |
byte |
getByte(long a) |
char |
getChar(long a) |
char |
getCharUnaligned(Object o,
long a) |
char |
getCharUnaligned(Object o,
long a,
boolean b) |
float |
getFloat(long a) |
int |
getInt(long a) |
int |
getInt(Object o,
long a) |
int |
getIntUnaligned(Object o,
long a) |
int |
getIntUnaligned(Object o,
long a,
boolean b) |
long |
getLongUnaligned(Object o,
long a) |
long |
getLongUnaligned(Object o,
long a,
boolean b) |
Object |
getReference(Object a,
long b) |
short |
getShort(long a) |
short |
getShortUnaligned(Object o,
long a,
boolean b) |
static TUnsafe |
getUnsafe() |
boolean |
isBigEndian() |
long |
objectFieldOffset(Class clazz,
String fieldName) |
int |
pageSize() |
void |
putByte(long a,
byte b) |
void |
putChar(long a,
char b) |
void |
putCharUnaligned(Object a,
long b,
char c,
boolean d) |
void |
putFloat(long a,
float b) |
void |
putInt(long a,
int b) |
void |
putIntUnaligned(Object a,
long b,
int c,
boolean d) |
void |
putReference(Object a,
long b,
Object c) |
void |
putReferenceRelease(Object a,
long b,
Object c) |
void |
putShort(long a,
short b) |
void |
putShortUnaligned(Object a,
long b,
short c,
boolean d) |
long |
reallocateMemory(long a,
long b) |
void |
setMemory(long a,
long b,
byte c) |
void |
storeFence() |
boolean |
unalignedAccess() |
public static final int ARRAY_BOOLEAN_INDEX_SCALE
public static final int ARRAY_BYTE_INDEX_SCALE
public static final int ARRAY_CHAR_INDEX_SCALE
public static final int ARRAY_SHORT_INDEX_SCALE
public static final int ARRAY_INT_INDEX_SCALE
public static final int ARRAY_LONG_INDEX_SCALE
public static final int ARRAY_FLOAT_INDEX_SCALE
public static final int ARRAY_DOUBLE_INDEX_SCALE
public static TUnsafe getUnsafe()
public int arrayBaseOffset(Class clazz)
public int arrayIndexScale(Class clazz)
public void storeFence()
public void ensureClassInitialized(Class<?> c)
public boolean isBigEndian()
public long getLongUnaligned(Object o, long a)
public long getLongUnaligned(Object o, long a, boolean b)
public int getIntUnaligned(Object o, long a)
public int getIntUnaligned(Object o, long a, boolean b)
public char getCharUnaligned(Object o, long a)
public char getCharUnaligned(Object o, long a, boolean b)
public short getShortUnaligned(Object o, long a, boolean b)
public int getAndAddInt(Object ol, long a, int b)
public boolean compareAndSetReference(Object o1, long l, Object o2, Object o3)
public boolean unalignedAccess()
public int pageSize()
public long allocateMemory(long aAmount)
public void setMemory(long a,
long b,
byte c)
public float getFloat(long a)
public void putFloat(long a,
float b)
public byte getByte(long a)
public void putByte(long a,
byte b)
public int getInt(long a)
public int getInt(Object o, long a)
public void putInt(long a,
int b)
public void putIntUnaligned(Object a, long b, int c, boolean d)
public void putShortUnaligned(Object a, long b, short c, boolean d)
public short getShort(long a)
public void putShort(long a,
short b)
public void putChar(long a,
char b)
public char getChar(long a)
public void putCharUnaligned(Object a, long b, char c, boolean d)
public void copyMemory(long a,
long b,
long c)
public long getAddress(long a)
public void freeMemory(long a)
public long reallocateMemory(long a,
long b)
Copyright © 2021 Systemprogrammierung Mirko Sertic. All rights reserved.