shrink method

void shrink()

Shrink the buffer

Implementation

void shrink() {
  buffer!.removeRange(0, _position);
  _position = 0;
}