docs: public void resetCursor() {
          if(buffer == null) {
              buffer = Pointer.create(new byte[bufsize], 0);
          }
          buffer.buffer[buffer.start] = 0;
          cursor = -1;
          lineptr = -1;
          linectptr = -1;
          token = -1;
          toktmp = -1;
          marker = -1;
          limit = -1;
  
          root = null;
          root_on_error = null;
          linect = 0;
          eof = false;
          last_token = 0;
          force_token = 0;
      }