public static int writeLong ( byte [ ] array , int offset , long v ) { array [ offset + 0 ] = ( byte ) ( v >>> 56 ) ; array [ offset + 1 ] = ( byte ) ( v >>> 48 ) ; array [ offset + 2 ] = ( byte ) ( v >>> 40 ) ; array [ offset + 3 ] = ( byte ) ( v >>> 32 ) ; array [ offset + 4 ] = ( byte ) ( v >>> 24 ) ; array [ offset + 5 ] = ( byte ) ( v >>> 16 ) ; array [ offset + 6 ] = ( byte ) ( v >>> 8 ) ; array [ offset + 7 ] = ( byte ) ( v >>> 0 ) ; return SIZE_LONG ; }
Write a long to the byte array at the given offset .