public class TUnsafe extends Object
Voovan Framework. WebSite: https://github.com/helyho/Voovan Licence: Apache v2 License
Constructor and Description |
---|
TUnsafe() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
allocateInstance(Class clazz) |
static boolean |
getBoolean(Object obj,
Field field) |
static byte |
getByte(Object obj,
Field field) |
static char |
getChar(Object obj,
Field field) |
static double |
getDouble(Object obj,
Field field) |
static Long |
getFieldOffset(Field field) |
static float |
getFloat(Object obj,
Field field) |
static int |
getIntger(Object obj,
Field field) |
static long |
getLong(Object obj,
Field field) |
static <T> T |
getObject(Object obj,
Field field) |
static short |
getShort(Object obj,
Field field) |
static sun.misc.Unsafe |
getUnsafe() |
static void |
putBoolean(Object obj,
Field field,
boolean value) |
static void |
putByte(Object obj,
Field field,
byte value) |
static void |
putChar(Object obj,
Field field,
char value) |
static void |
putDouble(Object obj,
Field field,
double value) |
static void |
putFloat(Object obj,
Field field,
float value) |
static void |
putIntger(Object obj,
Field field,
int value) |
static void |
putLong(Object obj,
Field field,
long value) |
static void |
putObject(Object obj,
Field field,
Object value) |
static void |
putShort(Object obj,
Field field,
short value) |
public static sun.misc.Unsafe getUnsafe()
public static <T> T allocateInstance(Class clazz) throws InstantiationException
InstantiationException
Copyright © 2020 Voovan. All rights reserved.