public static long int8 ( byte [ ] bytes , int idx ) { return ( ( long ) ( bytes [ idx + 0 ] & 255 ) << 56 ) + ( ( long ) ( bytes [ idx + 1 ] & 255 ) << 48 ) + ( ( long ) ( bytes [ idx + 2 ] & 255 ) << 40 ) + ( ( long ) ( bytes [ idx + 3 ] & 255 ) << 32 ) + ( ( long ) ( bytes [ idx + 4 ] & 255 ) << 24 ) + ( ( long ) ( bytes [ idx + 5 ] & 255 ) << 16 ) + ( ( long ) ( bytes [ idx + 6 ] & 255 ) << 8 ) + ( bytes [ idx + 7 ] & 255 ) ; }
Parses a long value from the byte array .