3 writes to _chars
System.Security.Cryptography (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
22
_chars
= initialBuffer;
29
_chars
= _arrayToReturnToPool;
265
_chars
= _arrayToReturnToPool = poolArray;
33 references to _chars
System.Security.Cryptography (33)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (33)
39
Debug.Assert(value <=
_chars
.Length);
44
public int Capacity =>
_chars
.Length;
52
if ((uint)capacity > (uint)
_chars
.Length)
63
_chars
[_pos] = '\0';
74
return ref MemoryMarshal.GetReference(
_chars
);
82
return ref
_chars
[index];
88
string s =
_chars
.Slice(0, _pos).ToString();
94
public Span<char> RawChars =>
_chars
;
96
public ReadOnlySpan<char> AsSpan() =>
_chars
.Slice(0, _pos);
97
public ReadOnlySpan<char> AsSpan(int start) =>
_chars
.Slice(start, _pos - start);
98
public ReadOnlySpan<char> AsSpan(int start, int length) =>
_chars
.Slice(start, length);
102
if (_pos >
_chars
.Length - count)
108
_chars
.Slice(index, remaining).CopyTo(
_chars
.Slice(index + count));
109
_chars
.Slice(index, count).Fill(value);
122
if (_pos > (
_chars
.Length - count))
128
_chars
.Slice(index, remaining).CopyTo(
_chars
.Slice(index + count));
133
.CopyTo(
_chars
.Slice(index));
141
Span<char> chars =
_chars
;
162
if (s.Length == 1 && (uint)pos < (uint)
_chars
.Length) // very common case, e.g. appending strings from NumberFormatInfo like separators, percent symbols, etc.
164
_chars
[pos] = s[0];
176
if (pos >
_chars
.Length - s.Length)
185
.CopyTo(
_chars
.Slice(pos));
191
if (_pos >
_chars
.Length - count)
196
Span<char> dst =
_chars
.Slice(_pos, count);
207
if (pos >
_chars
.Length - value.Length)
212
value.CopyTo(
_chars
.Slice(_pos));
220
if (origPos >
_chars
.Length - length)
226
return
_chars
.Slice(origPos, length);
248
Debug.Assert(_pos >
_chars
.Length - additionalCapacityBeyondPos, "Grow called incorrectly, no resize is needed.");
256
Math.Min((uint)
_chars
.Length * 2, ArrayMaxLength));
262
_chars
.Slice(0, _pos).CopyTo(poolArray);