reset method

void reset()

Discards the contents and reuses the buffer from the start.

Any Bytes view handed out earlier points into this buffer; use it only after the buffer has been written out.

Implementation

void reset() {
  _pos = 0;
  _docStart = -1;
  _lastFieldId = 0;
  _open = false;
  offsets.clear();
}