format/src/main/java/com/github/sadikovi/riff/io/InStream.java
/**
   * Convert provided byte array into long, expected first 8 bytes available.
   */
Convert provided byte array into long, expected first 8 bytes available.
Convert provided byte array into long expected first 8 bytes available .
private static long convertToLong(byte[] buffer) {
    return
      ((long) (buffer[0] & 0xff) << 56) |
      ((long) (buffer[1] & 0xff) << 48) |
      ((long) (buffer[2] & 0xff) << 40) |
      ((long) (buffer[3] & 0xff) << 32) |
      ((long) (buffer[4] & 0xff) << 24) |
      ((long) (buffer[5] & 0xff) << 16) |
      ((long) (buffer[6] & 0xff) << 8) |
      ((long) (buffer[7] & 0xff));
  }
private static long convertToLong ( byte [ ] buffer ) { return ( ( long ) ( buffer [ 0 ] & 0xff ) << 56 ) | ( ( long ) ( buffer [ 1 ] & 0xff ) << 48 ) | ( ( long ) ( buffer [ 2 ] & 0xff ) << 40 ) | ( ( long ) ( buffer [ 3 ] & 0xff ) << 32 ) | ( ( long ) ( buffer [ 4 ] & 0xff ) << 24 ) | ( ( long ) ( buffer [ 5 ] & 0xff ) << 16 ) | ( ( long ) ( buffer [ 6 ] & 0xff ) << 8 ) | ( ( long ) ( buffer [ 7 ] & 0xff ) ) ; }
Convert provided byte array into long, expected first 8 bytes available.
Convert provided byte array into long expected first 8 bytes available .