Lines Matching refs:bytePos
77 private int bytePos; field in System.IO.StreamReader
253 bytePos = 0; in Init()
551 …Contract.Assert(bytePos <= _preamble.Length, "_compressPreamble was called with the current bytePo… in IsPreamble()
552 … int len = (byteLen >= (_preamble.Length))? (_preamble.Length - bytePos) : (byteLen - bytePos); in IsPreamble()
554 for(int i=0; i<len; i++, bytePos++) { in IsPreamble()
555 if (byteBuffer[bytePos] != _preamble[bytePos]) { in IsPreamble()
556 bytePos = 0; in IsPreamble()
562 …Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads … in IsPreamble()
565 if (bytePos == _preamble.Length) { in IsPreamble()
568 bytePos = 0; in IsPreamble()
585 …Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads … in ReadBuffer()
586 int len = stream.Read(byteBuffer, bytePos, byteBuffer.Length - bytePos); in ReadBuffer()
596 bytePos = byteLen = 0; in ReadBuffer()
605 …Contract.Assert(bytePos == 0, "bytePos can be non zero only when we are trying to _checkPreamble. … in ReadBuffer()
670 …Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads … in ReadBuffer()
671 int len = stream.Read(byteBuffer, bytePos, byteBuffer.Length - bytePos); in ReadBuffer()
694 …Contract.Assert(bytePos == 0, "bytePos can be non zero only when we are trying to _checkPreamble. … in ReadBuffer()
1155 get { return bytePos; }
1156 set { bytePos = value; }