public static boolean doesArrayBeginWith(final byte[] array, final byte[] prefix) {
        if (array.length < prefix.length) {
            return false;
        }

        for (int i = 0; i < prefix.length; i++) {
            if (array[i] != prefix[i]) {
                return false;
            }
        }

        return true;
    }
Checks to see if a byte array starts with another byte array.

@param array  the array
@param prefix the prefix
@return true, if successful
library/src/main/java/dev/alt236/bluetoothlelib/util/ByteUtils.java