11 writes to _readPos
mscorlib (11)
system\io\bufferedstream.cs (11)
261
_readPos
= 0;
328
_writePos =
_readPos
= _readLen = 0;
407
_readPos
= 0;
421
_readPos
= _readLen = 0;
480
_readPos
+= readBytes;
536
_readPos
= _readLen = 0;
764
_readPos
= _readLen = 0;
815
_readPos
= 0;
821
Int32 b = _buffer[
_readPos
++];
1305
_readPos
= (Int32) (newPos - (oldPos - _readPos));
1315
_readPos
= _readLen = 0;
30 references to _readPos
mscorlib (30)
system\io\bufferedstream.cs (30)
247
Contract.Assert(! (_writePos > 0 &&
_readPos
!= _readLen), "Read and Write buffers cannot both have data in them at the same time.");
248
return _stream.Position + (
_readPos
- _readLen + _writePos);
299
Contract.Assert(_writePos == 0 &&
_readPos
== 0 && _readLen == 0);
304
if (
_readPos
< _readLen) {
320
Contract.Assert(_writePos == 0 &&
_readPos
== 0 && _readLen == 0);
339
return FlushAsyncInternal(cancellationToken, this, _stream, _writePos,
_readPos
, _readLen);
359
Contract.Assert(_this._writePos == 0 && _this.
_readPos
== 0 && _this._readLen == 0);
379
Contract.Assert(_this._writePos == 0 && _this.
_readPos
== 0 && _this._readLen == 0);
388
Contract.Assert(_this._writePos == 0 && _this.
_readPos
== _this._readLen);
404
if (
_readPos
- _readLen != 0)
405
_stream.Seek(
_readPos
- _readLen, SeekOrigin.Current);
416
Contract.Assert(
_readPos
<= _readLen, "_readPos <= _readLen [" +
_readPos
+" <= " + _readLen + "]");
419
if (
_readPos
== _readLen) {
426
Contract.Assert(
_readPos
< _readLen);
440
Contract.Assert(
_readPos
== 0 && _readLen == 0,
454
Contract.Assert(
_readPos
== 0 && _readLen == 0,
468
Int32 readBytes = _readLen -
_readPos
;
479
Buffer.InternalBlockCopy(_buffer,
_readPos
, array, offset, readBytes);
535
Contract.Assert(_readLen ==
_readPos
);
763
Contract.Assert(_readLen ==
_readPos
);
808
if (
_readPos
== _readLen) {
818
if (
_readPos
== _readLen)
1289
if (_readLen -
_readPos
> 0 && origin == SeekOrigin.Current) {
1293
offset -= (_readLen -
_readPos
);
1297
Contract.Assert(oldPos == _stream.Position + (
_readPos
- _readLen));
1305
_readPos = (Int32) (newPos - (oldPos -
_readPos
));
1308
if (0 <=
_readPos
&&
_readPos
< _readLen) {
1311
_stream.Seek(_readLen -
_readPos
, SeekOrigin.Current);