10 writes to _charPos
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (10)
317_charPos = 0; 359_charPos++; 413_charBuffer[_charPos++] = buffer[i]; 446_charPos += n; 465_charPos++; 680_charBuffer[_charPos++] = value; 691_charBuffer[_charPos++] = CoreNewLine[i]; 792_charPos += n; 805_charBuffer[_charPos++] = CoreNewLine[i]; 992_charPos = 0;
17 references to _charPos
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (17)
286if (_charPos == 0 && !flushStream && !flushEncoder) 310int maxBytesForCharPos = _encoding.GetMaxByteCount(_charPos); 316int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder); 353if (_charPos == _charLen) 358_charBuffer[_charPos] = value; 407buffer.Length <= _charLen - _charPos) 432int dstPos = _charPos; // use a local copy of _charPos for safety 459if (_charPos == _charLen) 464_charBuffer[_charPos] = coreNewLine[i]; 675if (_charPos == _charLen) 686if (_charPos == _charLen) 783if (_charPos == _charLen) 788int n = Math.Min(_charLen - _charPos, source.Length - copied); 791source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer, _charPos, n)); 800if (_charPos == _charLen) 970if (_charPos == 0 && !flushStream && !flushEncoder) 991int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);