public class FSTUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
bufoff |
static long |
choff |
static long |
chscal |
static long |
doubleoff |
static long |
doublescal |
static long |
floatoff |
static long |
floatscal |
static long |
intoff |
static long |
intscal |
static long |
longoff |
static long |
longscal |
static long |
refoff |
static long |
refscal |
static sun.misc.Unsafe |
unFlaggedUnsafe |
| Constructor and Description |
|---|
FSTUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear(int[] arr) |
static void |
clear(Object[] arr) |
static void |
clear(Object[] arr,
int arrlen) |
static Method |
findDerivedMethod(Class clazz,
String metnam,
Class[] argClzz,
Class retClz) |
static Method |
findPrivateMethod(Class clazz,
String methName,
Class[] clazzArgs,
Class retClazz) |
static List<Field> |
getAllFields(List<Field> fields,
Class<?> type) |
static String |
getPackage(Class clazz) |
static sun.misc.Unsafe |
getUnsafe() |
static boolean |
isPackEq(Class clazz1,
Class clazz2) |
static boolean |
isPrimitiveArray(Class c) |
static int |
nextPow2(int num) |
static void |
printEx(Throwable e) |
static byte[] |
readAll(InputStream is) |
static <T extends Throwable> |
rethrow(Throwable exception) |
static String |
toString(Throwable th) |
static int |
writeSignedVarInt(int value,
byte[] out,
int index) |
static int |
writeUnsignedVarInt(int value,
byte[] out,
int index) |
public static sun.misc.Unsafe unFlaggedUnsafe
public static final long refoff
public static final long refscal
public static final long bufoff
public static final long choff
public static final long intoff
public static final long longoff
public static final long doubleoff
public static final long floatoff
public static final long intscal
public static final long longscal
public static final long chscal
public static final long floatscal
public static final long doublescal
public static void clear(int[] arr)
public static void clear(Object[] arr)
public static void clear(Object[] arr, int arrlen)
public static <T extends Throwable> void rethrow(Throwable exception) throws T extends Throwable
T extends Throwablepublic static Method findPrivateMethod(Class clazz, String methName, Class[] clazzArgs, Class retClazz)
public static Method findDerivedMethod(Class clazz, String metnam, Class[] argClzz, Class retClz)
public static void printEx(Throwable e)
public static boolean isPrimitiveArray(Class c)
public static sun.misc.Unsafe getUnsafe()
public static int writeSignedVarInt(int value,
byte[] out,
int index)
public static int writeUnsignedVarInt(int value,
byte[] out,
int index)
public static byte[] readAll(InputStream is) throws Exception
Exceptionpublic static int nextPow2(int num)
Copyright © 2015. All rights reserved.