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)
312
if (
_charPos
== 0 && !flushStream && !flushEncoder)
336
int maxBytesForCharPos = _encoding.GetMaxByteCount(
_charPos
);
342
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0,
_charPos
), byteBuffer, flushEncoder);
379
if (
_charPos
== _charLen)
384
_charBuffer[
_charPos
] = value;
433
buffer.Length <= _charLen -
_charPos
)
458
int dstPos =
_charPos
; // use a local copy of _charPos for safety
485
if (
_charPos
== _charLen)
490
_charBuffer[
_charPos
] = coreNewLine[i];
700
if (
_charPos
== _charLen)
711
if (
_charPos
== _charLen)
802
if (
_charPos
== _charLen)
807
int n = Math.Min(_charLen -
_charPos
, source.Length - copied);
810
source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer,
_charPos
, n));
819
if (
_charPos
== _charLen)
992
if (
_charPos
== 0 && !flushStream && !flushEncoder)
1013
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0,
_charPos
), byteBuffer, flushEncoder);