public static long getLongLE(byte[] data, int offset) {
        long result = 0;

        for (int j = offset + LONG_SIZE - 1; j >= offset; j--) {
            result <<= 8;
            result |= 0xff & data[j];
        }
        return result;
    }
Get a LE long value from a byte array

@param data   the byte array
@param offset a starting offset into the byte array
@return the long (64-bit) value
tika-core/src/main/java/org/apache/tika/io/EndianUtils.java