10 writes to _charPos
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (10)
343_charPos = 0; 385_charPos++; 439_charBuffer[_charPos++] = buffer[i]; 472_charPos += n; 491_charPos++; 705_charBuffer[_charPos++] = value; 716_charBuffer[_charPos++] = CoreNewLine[i]; 811_charPos += n; 824_charBuffer[_charPos++] = CoreNewLine[i]; 1014_charPos = 0;
17 references to _charPos
System.Private.CoreLib (17)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (17)
312if (_charPos == 0 && !flushStream && !flushEncoder) 336int maxBytesForCharPos = _encoding.GetMaxByteCount(_charPos); 342int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder); 379if (_charPos == _charLen) 384_charBuffer[_charPos] = value; 433buffer.Length <= _charLen - _charPos) 458int dstPos = _charPos; // use a local copy of _charPos for safety 485if (_charPos == _charLen) 490_charBuffer[_charPos] = coreNewLine[i]; 700if (_charPos == _charLen) 711if (_charPos == _charLen) 802if (_charPos == _charLen) 807int n = Math.Min(_charLen - _charPos, source.Length - copied); 810source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer, _charPos, n)); 819if (_charPos == _charLen) 992if (_charPos == 0 && !flushStream && !flushEncoder) 1013int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);