Class LittleEndian

java.lang.Object
org.lionsoul.ip2region.xdb.LittleEndian

public class LittleEndian extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getUint16(byte[] buff, int offset)
     
    static long
    getUint32(byte[] buff, int offset)
     
    static void
    put(byte[] buff, int offset, long value, int bytes)
     
    static void
    putUint16(byte[] buff, int offset, int value)
     
    static void
    putUint32(byte[] buff, int offset, long value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • shiftIndex

      public static final int[] shiftIndex
  • Constructor Details

    • LittleEndian

      public LittleEndian()
  • Method Details

    • put

      public static void put(byte[] buff, int offset, long value, int bytes)
    • putUint32

      public static void putUint32(byte[] buff, int offset, long value)
    • putUint16

      public static void putUint16(byte[] buff, int offset, int value)
    • getUint32

      public static long getUint32(byte[] buff, int offset)
    • getUint16

      public static int getUint16(byte[] buff, int offset)