6 writes to bytePos
mscorlib (6)
system\io\streamreader.cs (6)
253bytePos = 0; 543for(int i=0; i<len; i++, bytePos++) { 545bytePos = 0; 557bytePos = 0; 585bytePos = byteLen = 0; 1145set { bytePos = value; }
16 references to bytePos
mscorlib (16)
system\io\streamreader.cs (16)
540Contract.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?"); 541int len = (byteLen >= (_preamble.Length))? (_preamble.Length - bytePos) : (byteLen - bytePos); 544if (byteBuffer[bytePos] != _preamble[bytePos]) { 551Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 554if (bytePos == _preamble.Length) { 574Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 575int len = stream.Read(byteBuffer, bytePos, byteBuffer.Length - bytePos); 594Contract.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?"); 659Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 660int len = stream.Read(byteBuffer, bytePos, byteBuffer.Length - bytePos); 683Contract.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?"); 1144get { return bytePos; }