3 writes to _chars
System.Private.Windows.Core (3)
System\Text\ValueStringBuilder.cs (3)
24
_chars
= initialBuffer;
31
_chars
= _arrayToReturnToPool;
315
_chars
= _arrayToReturnToPool = poolArray;
40 references to _chars
System.Private.Windows.Core (40)
System\Text\ValueStringBuilder.cs (40)
41
Debug.Assert(value <=
_chars
.Length);
46
public readonly int Capacity =>
_chars
.Length;
54
if ((uint)capacity > (uint)
_chars
.Length)
67
public readonly ref char GetPinnableReference() => ref MemoryMarshal.GetReference(
_chars
);
78
_chars
[Length] = '\0';
81
return ref MemoryMarshal.GetReference(
_chars
);
89
return ref
_chars
[index];
95
string s =
_chars
[.._pos].ToString();
103
public readonly Span<char> RawChars =>
_chars
;
114
_chars
[Length] = '\0';
117
return
_chars
[.._pos];
120
public readonly ReadOnlySpan<char> AsSpan() =>
_chars
[.._pos];
121
public readonly ReadOnlySpan<char> AsSpan(int start) =>
_chars
[start.._pos];
122
public readonly ReadOnlySpan<char> AsSpan(int start, int length) =>
_chars
.Slice(start, length);
126
if (
_chars
[.._pos].TryCopyTo(destination))
142
if (_pos >
_chars
.Length - count)
148
_chars
.Slice(index, remaining).CopyTo(
_chars
[(index + count)..]);
149
_chars
.Slice(index, count).Fill(value);
162
if (_pos > (
_chars
.Length - count))
168
_chars
.Slice(index, remaining).CopyTo(
_chars
[(index + count)..]);
169
s.CopyTo(
_chars
[index..]);
177
if ((uint)pos < (uint)
_chars
.Length)
179
_chars
[pos] = c;
197
if (s.Length == 1 && (uint)pos < (uint)
_chars
.Length)
200
_chars
[pos] = s[0];
212
if (pos >
_chars
.Length - s.Length)
217
s.CopyTo(
_chars
[pos..]);
223
if (_pos >
_chars
.Length - count)
228
Span<char> dst =
_chars
.Slice(_pos, count);
240
if (pos >
_chars
.Length - length)
245
Span<char> dst =
_chars
.Slice(_pos, length);
257
if (pos >
_chars
.Length - value.Length)
262
value.CopyTo(
_chars
[_pos..]);
270
if (origPos >
_chars
.Length - length)
276
return
_chars
.Slice(origPos, length);
298
Debug.Assert(_pos >
_chars
.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed.");
306
Math.Min((uint)
_chars
.Length * 2, ArrayMaxLength));
312
_chars
[.._pos].CopyTo(poolArray);