reset method

void reset()

Reset the stream so that it's in the same state it was when the object was created except the data array is not touched.

Implementation

void reset() {
  _index = 0;
}