clear method

void clear()

Clears all frames from the buffer.

Implementation

void clear() {
  _buffer.fillRange(0, capacity, null);
  _head = 0;
  _size = 0;
}