public static long getLongFromByteArray(final byte[] bytes) {
        return ByteBuffer.wrap(bytes).getLong();
    }
Converts a byte array to a long.

@param bytes the bytes
@return the long from byte array
library/src/main/java/dev/alt236/bluetoothlelib/util/ByteUtils.java