6 writes to _charsRead
Microsoft.AspNetCore.WebUtilities (6)
HttpRequestStreamReader.cs (6)
250_charsRead = 0; 281_charsRead += charsRemaining; // Number of chars in StreamReader's buffer. 457_charsRead = 0; 470_charsRead += _decoder.GetChars( 484_charsRead = 0; 500_charsRead += _decoder.GetChars(
22 references to _charsRead
Microsoft.AspNetCore.WebUtilities (22)
HttpRequestStreamReader.cs (22)
125if (_charBufferIndex == _charsRead) 141if (_charBufferIndex == _charsRead) 176var charsRemaining = _charsRead - _charBufferIndex; 234if (_charBufferIndex == _charsRead && await ReadIntoBufferAsync() == 0) 245var charsRemaining = _charsRead - _charBufferIndex; 329if (_charBufferIndex == _charsRead) 364if (_charBufferIndex == _charsRead) 396var span = new Span<char>(_charBuffer, _charBufferIndex, _charsRead - _charBufferIndex); 407if (_charBufferIndex < _charsRead) 450_charBufferIndex = _charsRead; 466return _charsRead; 475_charsRead); 477while (_charsRead == 0); 479return _charsRead; 494return _charsRead; 505_charsRead); 507while (_charsRead == 0); 509return _charsRead; 515StringBuilder sb = new StringBuilder(_charsRead - _charBufferIndex); 519sb.Append(_charBuffer, tmpCharPos, _charsRead - tmpCharPos); 520_charBufferIndex = _charsRead; // We consumed these characters 522} while (_charsRead > 0);