public static boolean startsWith(byte[] array, byte[] startsWith) {
        if (array.length < startsWith.length) {
            return false;
        }
        for (int i = 0; i < startsWith.length; i++) {
            if (array[i] != startsWith[i]) {
                return false;
            }
        }
        return true;
    }
Checks that the range described by {@code offset} and {@code count}
doesn't exceed {@code arrayLength}.
common/src/main/java/org/conscrypt/ArrayUtils.java