16 writes to _charPos
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (16)
292_charPos = 0; 316_charPos = 0; 372_charPos++; 422_charPos += n; 449_charPos = _charLen; // Note we consumed these characters 613_charPos = 0; 701_charPos = 0; 858_charPos += idxOfNewline + 1; 867_charPos++; 968_charPos = charPos; 977_charPos++; 1068_charPos = _charLen; // We consumed these characters 1159_charPos = 0; 1250_charPos = 0; 1278_charPos += n; 1377_charPos = 0;
29 references to _charPos
System.Private.CoreLib (29)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (29)
333if (_charPos < _charLen) 349if (_charPos == _charLen) 356return _charBuffer[_charPos]; 364if (_charPos == _charLen) 371int result = _charBuffer[_charPos]; 406int n = _charLen - _charPos; 421new Span<char>(_charBuffer, _charPos, n).CopyTo(buffer.Slice(charsRead)); 445StringBuilder sb = new StringBuilder(_charLen - _charPos); 448sb.Append(_charBuffer, _charPos, _charLen - _charPos); 671Debug.Assert(_charPos == 0 && _charLen == 0, "We shouldn't be trying to decode more data if we made progress in an earlier iteration."); 681Debug.Assert(_charPos == 0 && _charLen == 0, "We shouldn't be looking for EOF unless we have an empty char buffer."); 778Debug.Assert(charsRead == 0 && _charPos == 0 && _charLen == 0, "We shouldn't be trying to decode more data if we made progress in an earlier iteration."); 796Debug.Assert(charsRead == 0 && _charPos == 0 && _charLen == 0, "We shouldn't be looking for EOF unless we have an empty char buffer."); 828if (_charPos == _charLen) 840ReadOnlySpan<char> charBufferSpan = _charBuffer.AsSpan(_charPos, _charLen - _charPos); 863if (_charPos < _charLen || ReadBuffer() > 0) 865if (_charBuffer[_charPos] == '\n') 935if (_charPos == _charLen && (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) == 0) 948int charPos = _charPos; 975if (_charBuffer[_charPos] == '\n') 1063StringBuilder sb = new StringBuilder(_charLen - _charPos); 1066int tmpCharPos = _charPos; 1135if (_charPos == _charLen && (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) == 0) 1153int n = _charLen - _charPos; 1277new Span<char>(_charBuffer, _charPos, n).CopyTo(buffer.Span.Slice(charsRead)); 1438Debug.Assert(_charPos == 0 && _charLen == 0, "We shouldn't be trying to decode more data if we made progress in an earlier iteration."); 1448Debug.Assert(_charPos == 0 && _charLen == 0, "We shouldn't be looking for EOF unless we have an empty char buffer.");