Android Utililty Methods Big Endian to Long Convert

List of utility methods to do Big Endian to Long Convert

Description

The list of methods to do Big Endian to Long Convert are organized into topic(s).

Method

longbigEndToLong(byte[] array, int start)
Converts a byte array into long from big-endian format.
return (((long) (array[start + 0] & 0xFF) << 56)
        | ((long) (array[start + 1] & 0xFF) << 48)
        | ((long) (array[start + 2] & 0xFF) << 40)
        | ((long) (array[start + 3] & 0xFF) << 32)
        | ((long) (array[start + 4] & 0xFF) << 24)
        | ((long) (array[start + 5] & 0xFF) << 16)
        | ((long) (array[start + 6] & 0xFF) << 8) | ((long) (array[start + 7] & 0xFF)));