Class Hex


  • public class Hex
    extends java.lang.Object
    Working in hex ...
    • Constructor Summary

      Constructors 
      Constructor Description
      Hex()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int formatUnsignedLongHex​(byte[] b, int start, long value, int width)  
      static long getLong​(byte[] arr, int idx)  
      static int hexByteToInt​(int c)  
      static int hexByteToInt​(int c, int marker)
      Return the value of the hex digit, or the marker value if not a hex digit.
      static int hexStringToInt​(java.lang.String s, int i, int len)
      Hex string to value
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Hex

        public Hex()
    • Method Detail

      • formatUnsignedLongHex

        public static int formatUnsignedLongHex​(byte[] b,
                                                int start,
                                                long value,
                                                int width)
      • getLong

        public static long getLong​(byte[] arr,
                                   int idx)
      • hexByteToInt

        public static int hexByteToInt​(int c)
      • hexByteToInt

        public static int hexByteToInt​(int c,
                                       int marker)
        Return the value of the hex digit, or the marker value if not a hex digit.
      • hexStringToInt

        public static int hexStringToInt​(java.lang.String s,
                                         int i,
                                         int len)
        Hex string to value