Package org.nustaq.serialization.util
Class FSTUtil
java.lang.Object
org.nustaq.serialization.util.FSTUtil
public class FSTUtil extends Object
Created with IntelliJ IDEA.
User: ruedi
Date: 29.11.12
Time: 20:38
To change this template use File | Settings | File Templates.
-
Field Summary
Fields Modifier and Type Field Description static longbufoffstatic longchoffstatic longchscalstatic longdoubleoffstatic longdoublescalstatic longfloatoffstatic longfloatscalstatic longintoffstatic longintscalstatic longlongoffstatic longlongscalstatic longrefoffstatic longrefscalstatic sun.misc.UnsafeunFlaggedUnsafe -
Constructor Summary
Constructors Constructor Description FSTUtil() -
Method Summary
Modifier and Type Method Description static voidclear(int[] arr)static voidclear(Object[] arr)static voidclear(Object[] arr, int arrlen)static MethodfindDerivedMethod(Class clazz, String metnam, Class[] argClzz, Class retClz)static MethodfindPrivateMethod(Class clazz, String methName, Class[] clazzArgs, Class retClazz)static List<Field>getAllFields(List<Field> fields, Class<?> type)static StringgetPackage(Class clazz)static ClassgetRealEnumClass(Class enumClass)static sun.misc.UnsafegetUnsafe()static booleanisPackEq(Class clazz1, Class clazz2)static booleanisPrimitiveArray(Class c)static intnextPow2(int num)static voidprintEx(Throwable e)static byte[]readAll(InputStream is)static <T extends Throwable>
voidrethrow(Throwable exception)static StringtoString(Throwable th)static intwriteSignedVarInt(int value, byte[] out, int index)static intwriteUnsignedVarInt(int value, byte[] out, int index)
-
Field Details
-
unFlaggedUnsafe
public static sun.misc.Unsafe unFlaggedUnsafe -
refoff
public static final long refoff -
refscal
public static final long refscal -
bufoff
public static final long bufoff -
choff
public static final long choff -
intoff
public static final long intoff -
longoff
public static final long longoff -
doubleoff
public static final long doubleoff -
floatoff
public static final long floatoff -
intscal
public static final long intscal -
longscal
public static final long longscal -
chscal
public static final long chscal -
floatscal
public static final long floatscal -
doublescal
public static final long doublescal
-
-
Constructor Details
-
FSTUtil
public FSTUtil()
-
-
Method Details
-
clear
public static void clear(int[] arr) -
clear
-
clear
-
toString
-
rethrow
- Throws:
T extends Throwable
-
getPackage
-
isPackEq
-
findPrivateMethod
-
findDerivedMethod
-
printEx
-
isPrimitiveArray
-
getUnsafe
public static sun.misc.Unsafe getUnsafe() -
writeSignedVarInt
public static int writeSignedVarInt(int value, byte[] out, int index) -
writeUnsignedVarInt
public static int writeUnsignedVarInt(int value, byte[] out, int index) -
getAllFields
-
readAll
- Throws:
Exception
-
nextPow2
public static int nextPow2(int num) -
getRealEnumClass
-