clear method

void clear()

Implementation

void clear() {
  currentBuffer!.clear();
  currentPointer = Position(0, 0);
  needBuild();
}