private static long byteArrayToLong ( byte [ ] ba , int offset ) { long l = 0 ; for ( int i = 0 ; i < SIZE_OF_LONG ; ++ i ) { l |= ( ba [ offset + SIZE_OF_LONG - 1 - i ] & 0xff L ) << ( i << 3 ) ; } return l ; }
Converts the given byte array to a long .