code: public static boolean equalIncreasingByteArray(int start, int len, byte[] arr) {
      if (arr == null || arr.length != len) {
        return false;
      }
      for (int k = 0; k < len; k++) {
        if (arr[k] != (byte) (start + k)) {
          return false;
        }
      }
      return true;
    }
docs: Checks if the given byte array starts with an increasing sequence of bytes of the given
  length, starting from the given value. The array length must be equal to the length checked.
  
  @param start the starting value to use
  @param len the target length of the sequence
  @param arr the byte array to check
  @return true if the byte array has a prefix of length {@code len} that is an increasing
  sequence of bytes starting at {@code start}