Class Bits

java.lang.Object
zombie.core.utils.Bits

public class Bits extends Object
TurboTuTone.
  • Field Details

  • Constructor Details

    • Bits

      public Bits()
  • Method Details

    • packFloatUnitToByte

      public static byte packFloatUnitToByte(float f)
    • unpackByteToFloatUnit

      public static float unpackByteToFloatUnit(byte b)
    • addFlags

      public static byte addFlags(byte value, int flags)
    • addFlags

      public static byte addFlags(byte value, long flags)
    • addFlags

      public static short addFlags(short value, int flags)
    • addFlags

      public static short addFlags(short value, long flags)
    • addFlags

      public static int addFlags(int value, int flags)
    • addFlags

      public static int addFlags(int value, long flags)
    • addFlags

      public static long addFlags(long value, int flags)
    • addFlags

      public static long addFlags(long value, long flags)
    • hasFlags

      public static boolean hasFlags(byte value, int flags)
    • hasFlags

      public static boolean hasFlags(byte value, long flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(byte value, int flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(byte value, long flags)
    • notHasFlags

      public static boolean notHasFlags(byte value, int flags)
    • notHasFlags

      public static boolean notHasFlags(byte value, long flags)
    • hasFlags

      public static boolean hasFlags(short value, int flags)
    • hasFlags

      public static boolean hasFlags(short value, long flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(short value, int flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(short value, long flags)
    • notHasFlags

      public static boolean notHasFlags(short value, int flags)
    • notHasFlags

      public static boolean notHasFlags(short value, long flags)
    • hasFlags

      public static boolean hasFlags(int value, int flags)
    • hasFlags

      public static boolean hasFlags(int value, long flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(int value, int flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(int value, long flags)
    • notHasFlags

      public static boolean notHasFlags(int value, int flags)
    • notHasFlags

      public static boolean notHasFlags(int value, long flags)
    • hasFlags

      public static boolean hasFlags(long value, int flags)
    • hasFlags

      public static boolean hasFlags(long value, long flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(long value, int flags)
    • hasEitherFlags

      public static boolean hasEitherFlags(long value, long flags)
    • notHasFlags

      public static boolean notHasFlags(long value, int flags)
    • notHasFlags

      public static boolean notHasFlags(long value, long flags)
    • checkFlags

      public static boolean checkFlags(int value, int flags, int limit, Bits.CompareOption option)
    • checkFlags

      public static boolean checkFlags(long value, long flags, long limit, Bits.CompareOption option)
    • getLen

      public static int getLen(byte b)
    • getLen

      public static int getLen(short s)
    • getLen

      public static int getLen(int i)
    • getLen

      public static int getLen(long l)
    • getBitsString

      public static String getBitsString(byte bits)
    • getBitsString

      public static String getBitsString(short bits)
    • getBitsString

      public static String getBitsString(int bits)
    • getBitsString

      public static String getBitsString(long bits)