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)
581Debug.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?"); 584for (int i = _bytePos; i < len; i++) 595Debug.Assert(_bytePos <= preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 597if (_bytePos == preamble.Length) 626Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 627int len = _stream.Read(_byteBuffer, _bytePos, _byteBuffer.Length - _bytePos); 640Debug.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?"); 730Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 731int len = _stream.Read(_byteBuffer, _bytePos, _byteBuffer.Length - _bytePos); 744Debug.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?"); 1176Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1177int tmpBytePos = _bytePos; 1212Debug.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?"); 1392Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1393int tmpBytePos = _bytePos; 1407Debug.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?");