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)
286
if (
_charPos
== 0 && !flushStream && !flushEncoder)
310
int maxBytesForCharPos = _encoding.GetMaxByteCount(
_charPos
);
316
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0,
_charPos
), byteBuffer, flushEncoder);
353
if (
_charPos
== _charLen)
358
_charBuffer[
_charPos
] = value;
407
buffer.Length <= _charLen -
_charPos
)
432
int dstPos =
_charPos
; // use a local copy of _charPos for safety
459
if (
_charPos
== _charLen)
464
_charBuffer[
_charPos
] = coreNewLine[i];
675
if (
_charPos
== _charLen)
686
if (
_charPos
== _charLen)
783
if (
_charPos
== _charLen)
788
int n = Math.Min(_charLen -
_charPos
, source.Length - copied);
791
source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer,
_charPos
, n));
800
if (
_charPos
== _charLen)
970
if (
_charPos
== 0 && !flushStream && !flushEncoder)
991
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0,
_charPos
), byteBuffer, flushEncoder);