code: public final int strLengthNull(byte[]bytes, int p, int end) {
          int n = 0;
  
          while (true) {
              if (bytes[p] == 0) {
                  int len = minLength();
  
                  if (len == 1) return n;
                  int q = p + 1;
  
                  while (len > 1) {
                      if (bytes[q] != 0) break;
                      q++;
                      len--;
                  }
                  if (len == 1) return n;
              }
              p += length(bytes, p, end);
              n++;
          }
      }
docs: /* onigenc_strlen_null