Package org.nustaq.serialization.util
Class FSTUtil
java.lang.Object
org.nustaq.serialization.util.FSTUtil
Created with IntelliJ IDEA.
User: ruedi
Date: 29.11.12
Time: 20:38
To change this template use File | Settings | File Templates.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static sun.misc.Unsafe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear
(int[] arr) static void
static void
static Method
findDerivedMethod
(Class clazz, String metnam, Class[] argClzz, Class retClz) static Method
findPrivateMethod
(Class clazz, String methName, Class[] clazzArgs, Class retClazz) getAllFields
(List<Field> fields, Class<?> type) static String
getPackage
(Class clazz) static Class
getRealEnumClass
(Class enumClass) static sun.misc.Unsafe
static boolean
static boolean
static int
nextPow2
(int num) static void
static byte[]
readAll
(InputStream is) static <T extends Throwable>
voidstatic String
static int
writeSignedVarInt
(int value, byte[] out, int index) static int
writeUnsignedVarInt
(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
-