text: public override void reset(){lock (this){if (buf == null){throw new System.IO.IOException("Stream is closed");}if (-1 == markpos){throw new System.IO.IOException("Mark has been invalidated.");}pos = markpos;}}