public static int getInt(byte[] b, int off) {
    return ((b[off + 3] & 0xFF) << 0) +
           ((b[off + 2] & 0xFF) << 8) +
           ((b[off + 1] & 0xFF) << 16) +
           ((b[off + 0] & 0xFF) << 24);
  }
public static int getInt(byte[] b, int off)