public static int writeLong ( byte [ ] target , int offset , long value ) { target [ offset ] = ( byte ) ( value >>> 56 ) ; target [ offset + 1 ] = ( byte ) ( value >>> 48 ) ; target [ offset + 2 ] = ( byte ) ( value >>> 40 ) ; target [ offset + 3 ] = ( byte ) ( value >>> 32 ) ; target [ offset + 4 ] = ( byte ) ( value >>> 24 ) ; target [ offset + 5 ] = ( byte ) ( value >>> 16 ) ; target [ offset + 6 ] = ( byte ) ( value >>> 8 ) ; target [ offset + 7 ] = ( byte ) value ; return Long . BYTES ; }
Writes the given 64 - bit Long to the given byte array at the given offset .