6 writes to _bytePos
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (6)
588
_bytePos
= 0; // preamble match failed; back up to beginning of buffer
593
_bytePos
= len; // we've matched all bytes up to this point
601
_bytePos
= 0;
683
_bytePos
= 0;
807
_bytePos
= 0;
1450
_bytePos
= 0;
18 references to _bytePos
System.Private.CoreLib (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (18)
581
Debug.Assert(
_bytePos
< preamble.Length, "_compressPreamble was called with the current bytePos greater than the preamble buffer length. Are two threads using this StreamReader at the same time?");
584
for (int i =
_bytePos
; i < len; i++)
595
Debug.Assert(
_bytePos
<= preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
597
if (
_bytePos
== preamble.Length)
626
Debug.Assert(
_bytePos
<= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
627
int len = _stream.Read(_byteBuffer,
_bytePos
, _byteBuffer.Length -
_bytePos
);
640
Debug.Assert(
_bytePos
== 0, "bytePos can be non zero only when we are trying to _checkPreamble. Are two threads using this StreamReader at the same time?");
730
Debug.Assert(
_bytePos
<= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
731
int len = _stream.Read(_byteBuffer,
_bytePos
, _byteBuffer.Length -
_bytePos
);
744
Debug.Assert(
_bytePos
== 0, "bytePos can be non zero only when we are trying to _checkPreamble. Are two threads using this StreamReader at the same time?");
1176
Debug.Assert(
_bytePos
<= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
1177
int tmpBytePos =
_bytePos
;
1212
Debug.Assert(
_bytePos
== 0, "_bytePos can be non zero only when we are trying to _checkPreamble. Are two threads using this StreamReader at the same time?");
1392
Debug.Assert(
_bytePos
<= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");
1393
int tmpBytePos =
_bytePos
;
1407
Debug.Assert(
_bytePos
== 0, "_bytePos can be non zero only when we are trying to _checkPreamble. Are two threads using this StreamReader at the same time?");