reset method

void reset()

Reset the buffer discarding all elements

Implementation

void reset() {
  buffer = [];
}