public static long[] toLongs(final byte[] bytes, final ByteOrder byteOrder) {
        return toLongs(bytes, 0, bytes.length, byteOrder);
    }
Extracts an array of eight-byte long integers from the specified array of bytes. The size of the result array is computed based on the size of the input
byte array.

@param bytes     a valid array
@param byteOrder the byte-order for interpreting the input bytes
@return an array of zero or more eight-byte signed integers
src/main/java/org/apache/commons/imaging/common/ByteConversions.java