public void AdjustPosition(int offset, int length) { Fx.Assert(offset >= this.start, "Invalid offset!"); Fx.Assert(offset + length <= this.end, "length too large!"); this.read = offset; this.write = this.read + length; }