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 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

      public static void clear(Object[] arr)
    • clear

      public static void clear(Object[] arr, int arrlen)
    • toString

      public static String toString(Throwable th)
    • rethrow

      public static <T extends Throwable> void rethrow(Throwable exception) throws T
      Throws:
      T extends Throwable
    • getPackage

      public static String getPackage(Class clazz)
    • isPackEq

      public static boolean isPackEq(Class clazz1, Class clazz2)
    • findPrivateMethod

      public static Method findPrivateMethod(Class clazz, String methName, Class[] clazzArgs, Class retClazz)
    • findDerivedMethod

      public static Method findDerivedMethod(Class clazz, String metnam, Class[] argClzz, Class retClz)
    • printEx

      public static void printEx(Throwable e)
    • isPrimitiveArray

      public static boolean isPrimitiveArray(Class c)
    • 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

      public static List<Field> getAllFields(List<Field> fields, Class<?> type)
    • readAll

      public static byte[] readAll(InputStream is) throws Exception
      Throws:
      Exception
    • nextPow2

      public static int nextPow2(int num)
    • getRealEnumClass

      public static Class getRealEnumClass(Class enumClass)