public override int Read(byte[] buffer, int offset, int count) { int read = base.Read(buffer, offset, count); this.pos += read; return read; } }