format/src/main/java/com/github/sadikovi/riff/io/InStream.java
/**
   * Convert provided byte array into integer, expected first 4 bytes available.
   */
Convert provided byte array into integer, expected first 4 bytes available.
Convert provided byte array into integer expected first 4 bytes available .
private static int convertToInt(byte[] buffer) {
    return
      ((buffer[0] & 0xff) << 24) |
      ((buffer[1] & 0xff) << 16) |
      ((buffer[2] & 0xff) << 8) |
      (buffer[3] & 0xff);
  }
private static int convertToInt ( byte [ ] buffer ) { return ( ( buffer [ 0 ] & 0xff ) << 24 ) | ( ( buffer [ 1 ] & 0xff ) << 16 ) | ( ( buffer [ 2 ] & 0xff ) << 8 ) | ( buffer [ 3 ] & 0xff ) ; }
Convert provided byte array into integer, expected first 4 bytes available.
Convert provided byte array into integer expected first 4 bytes available .