public static void putLongBE(final byte[] array, final int offset, final long value) {
    array[offset + 7] = (byte) (value       );
    array[offset + 6] = (byte) (value >>>  8);
    array[offset + 5] = (byte) (value >>> 16);
    array[offset + 4] = (byte) (value >>> 24);
    array[offset + 3] = (byte) (value >>> 32);
    array[offset + 2] = (byte) (value >>> 40);
    array[offset + 1] = (byte) (value >>> 48);
    array[offset    ] = (byte) (value >>> 56);
  }
public static void putLongBE ( final byte [ ] array , final int offset , final long value ) { array [ offset + 7 ] = ( byte ) ( value ) ; array [ offset + 6 ] = ( byte ) ( value > > > 8 ) ; array [ offset + 5 ] = ( byte ) ( value > > > 16 ) ; array [ offset + 4 ] = ( byte ) ( value > > > 24 ) ; array [ offset + 3 ] = ( byte ) ( value > > > 32 ) ; array [ offset + 2 ] = ( byte ) ( value > > > 40 ) ; array [ offset + 1 ] = ( byte ) ( value > > > 48 ) ; array [ offset ] = ( byte ) ( value > > > 56 ) ; }
Put the source <i>long</i> into the destination byte array starting at the given offset
in big endian order.
There is no bounds checking.
@param array destination byte array
@param offset destination starting point
@param value source <i>long</i>