reset method

void reset()

Resets the buffer to empty, discarding all written data.

Implementation

void reset() {
  checkClosed();

  _count = 0;
}