Package com.drew.lang

Class ByteUtil


  • public class ByteUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getInt16​(byte[] buffer, int offset, boolean bigEndian)  
      static int getInt32​(byte[] buffer, int offset, boolean bigEndian)  
      static long getLong64​(byte[] buffer, int offset, boolean bigEndian)  
      • Methods inherited from class java.lang.Object

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

      • ByteUtil

        public ByteUtil()
    • Method Detail

      • getInt16

        public static int getInt16​(byte[] buffer,
                                   int offset,
                                   boolean bigEndian)
      • getInt32

        public static int getInt32​(byte[] buffer,
                                   int offset,
                                   boolean bigEndian)
      • getLong64

        public static long getLong64​(byte[] buffer,
                                     int offset,
                                     boolean bigEndian)