logback-android/src/main/java/ch/qos/logback/core/encoder/ByteArrayUtil.java
static int readInt(byte[] byteArray, int offset) {
    int i = 0;
    for (int j = 0; j < 4; j++) {
      int shift = 24 - j * 8;
      i += (byteArray[offset + j] & 0xFF) << shift;
    }
    return i;
  }
static int readInt(byte[] byteArray, int offset) {
    int i = 0;
    for (int j = 0; j < 4; j++) {
      int shift = 24 - j * 8;
      i += (byteArray[offset + j] & 0xFF) << shift;
    }
    return i;
  }
static int readInt ( byte [ ] byteArray , int offset ) { int i = 0 ; for ( int j = 0 ; j < 4 ; j ++ ) { int shift = 24 - j * 8 ; i += ( byteArray [ offset + j ] & 0xFF ) << shift ; } return i ; }
big-endian
big - endian