question: public static long bytesToLong ( final byte [ ] bytes ) { final ByteBuffer buffer = ByteBuffer . allocate ( 8 ) ; buffer . put ( bytes , 0 , 8 ) ; buffer . flip ( ) ; return buffer . getLong ( ) ; }
target:  Converts an array of 8 bytes into a long.