When you call `.peek()` while the `this._pos == this.buf.length`, the relative seek line in the `peek` definition results in reseting `this._pos` to zero.