21 writes to _readLen
mscorlib (21)
system\io\filestream.cs (21)
944
_readLen
= 0;
1032
_readLen
= 0;
1243
_readLen
= 0;
1367
_readLen
= 0;
1416
_readLen
= 0;
1434
_readLen
= 0;
1461
_readLen
= 0;
1523
_readLen
= 0;
1531
_readLen
= n;
1561
_readLen
= 0;
1658
_readLen
-= _readPos;
1670
_readLen
-= (_readPos + diff);
1678
_readLen
= 0;
1741
_readLen
= 0;
1770
_readLen
= 0;
1958
_readLen
= EndRead(bufferRead);
1972
_readLen
= 0;
1996
_readLen
= 0;
2168
_readLen
= ReadCore(_buffer, 0, _bufferSize);
2245
_readLen
= 0;
2421
_readLen
= 0;
46 references to _readLen
mscorlib (46)
system\io\filestream.cs (46)
1227
Contract.Assert((_readPos == 0 &&
_readLen
== 0 && _writePos >= 0) || (_writePos == 0 && _readPos <=
_readLen
), "We're either reading or writing, but not both.");
1236
return _pos + (_readPos -
_readLen
+ _writePos);
1341
else if (_readPos <
_readLen
&& CanSeek)
1362
if (_readPos -
_readLen
!= 0) {
1364
SeekCore(_readPos -
_readLen
, SeekOrigin.Current);
1374
Contract.Assert(_readPos == 0 &&
_readLen
== 0, "FileStream: Read buffer must be empty in FlushWrite!");
1457
else if (_readPos <
_readLen
) {
1510
Contract.Assert((_readPos==0 &&
_readLen
==0 && _writePos >= 0) || (_writePos==0 && _readPos <=
_readLen
), "We're either reading or writing, but not both.");
1513
int n =
_readLen
- _readPos;
1555
Contract.Assert(_readPos ==
_readLen
, "Read buffer should be empty!");
1616
Contract.Assert((_readPos==0 &&
_readLen
==0 && _writePos >= 0) || (_writePos==0 && _readPos <=
_readLen
), "We're either reading or writing, but not both.");
1630
offset -= (
_readLen
- _readPos);
1637
long oldPos = _pos + (_readPos -
_readLen
);
1651
if (
_readLen
> 0) {
1657
Buffer.InternalBlockCopy(_buffer, _readPos, _buffer, 0,
_readLen
- _readPos);
1663
if (
_readLen
> 0)
1664
SeekCore(
_readLen
, SeekOrigin.Current);
1666
else if (oldPos - _readPos < pos && pos < oldPos +
_readLen
- _readPos) {
1669
Buffer.InternalBlockCopy(_buffer, _readPos+diff, _buffer, 0,
_readLen
- (_readPos + diff));
1672
if (
_readLen
> 0)
1673
SeekCore(
_readLen
, SeekOrigin.Current);
1680
Contract.Assert(
_readLen
>= 0 && _readPos <=
_readLen
, "_readLen should be nonnegative, and _readPos should be less than or equal _readLen");
1768
if (_readPos <
_readLen
) FlushRead();
1830
Contract.Assert(_readPos ==
_readLen
, "_readPos == _readLen");
1903
Contract.Assert((_readPos == 0 &&
_readLen
== 0 && _writePos >= 0) || (_writePos == 0 && _readPos <=
_readLen
), "We're either reading or writing, but not both.");
1920
if (_readPos <
_readLen
)
1922
int n =
_readLen
- _readPos;
1941
if (_readPos ==
_readLen
)
1959
int n =
_readLen
;
1978
int n =
_readLen
- _readPos;
2162
if (
_readLen
==0 && !CanRead) __Error.ReadNotSupported();
2163
Contract.Assert((_readPos==0 &&
_readLen
==0 && _writePos >= 0) || (_writePos==0 && _readPos <=
_readLen
), "We're either reading or writing, but not both.");
2164
if (_readPos ==
_readLen
) {
2171
if (_readPos ==
_readLen
)
2215
Contract.Assert((_readPos == 0 &&
_readLen
== 0 && _writePos >= 0) || (_writePos == 0 && _readPos <=
_readLen
), "We're either reading or writing, but not both.");
2232
Contract.Assert(_readPos == 0 &&
_readLen
== 0, "FileStream must not have buffered data here! Pipes should be unidirectional.");
2243
if (_readPos <
_readLen
) FlushRead();
2275
Contract.Assert(_readPos ==
_readLen
, "_readPos == _readLen");
2419
if (_readPos <
_readLen
) FlushRead();