19 writes to _pos
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (19)
59
_pos
= 0;
72
_pos
= 0;
87
_pos
= 0;
132
_pos
= 0;
150
_pos
+= value.Length;
275
_pos
+= charsWritten;
287
_pos
+= charsWritten;
342
_pos
+= charsWritten;
354
_pos
+= charsWritten;
409
_pos
+= value.Length;
444
_pos
+= value.Length;
446
_pos
+= paddingRequired;
451
_pos
+= paddingRequired;
453
_pos
+= value.Length;
468
_pos
+= value.Length;
493
_pos
+= value.Length;
587
_pos
+= paddingNeeded;
608
_pos
+= value.Length;
618
_pos
+= value.Length;
26 references to _pos
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (26)
141
public ReadOnlySpan<char> Text => _chars.Slice(0,
_pos
);
148
if (value.TryCopyTo(_chars.Slice(
_pos
)))
270
while (!Enum.TryFormatUnconstrained(value, _chars.Slice(
_pos
), out charsWritten))
282
while (!((ISpanFormattable)value).TryFormat(_chars.Slice(
_pos
), out charsWritten, default, _provider)) // constrained call avoiding boxing for value types
337
while (!Enum.TryFormatUnconstrained(value, _chars.Slice(
_pos
), out charsWritten, format))
349
while (!((ISpanFormattable)value).TryFormat(_chars.Slice(
_pos
), out charsWritten, format, _provider)) // constrained call avoiding boxing for value types
377
int startingPos =
_pos
;
392
int startingPos =
_pos
;
407
if (value.TryCopyTo(_chars.Slice(
_pos
)))
443
value.CopyTo(_chars.Slice(
_pos
));
445
_chars.Slice(
_pos
, paddingRequired).Fill(' ');
450
_chars.Slice(
_pos
, paddingRequired).Fill(' ');
452
value.CopyTo(_chars.Slice(
_pos
));
466
value.TryCopyTo(_chars.Slice(
_pos
)))
492
value.CopyTo(_chars.Slice(
_pos
));
560
Debug.Assert(startingPos >= 0 && startingPos <=
_pos
);
563
int charsWritten =
_pos
- startingPos;
579
_chars.Slice(
_pos
, paddingNeeded).Fill(' ');
591
/// <summary>Ensures <see cref="_chars"/> has the capacity to store <paramref name="additionalChars"/> beyond <see cref="
_pos
"/>.</summary>
595
if (_chars.Length -
_pos
< additionalChars)
607
value.CopyTo(_chars.Slice(
_pos
));
617
value.CopyTo(_chars.Slice(
_pos
));
621
/// <summary>Grows <see cref="_chars"/> to have the capacity to store at least <paramref name="additionalChars"/> beyond <see cref="
_pos
"/>.</summary>
629
Debug.Assert(additionalChars > _chars.Length -
_pos
);
630
GrowCore((uint)
_pos
+ (uint)additionalChars);
656
_chars.Slice(0,
_pos
).CopyTo(newArray);