1 write to _spans
Microsoft.NET.StringTools (1)
SpanBasedStringBuilder.cs (1)
109
_spans
= new List<ReadOnlyMemory<char>>(capacity);
17 references to _spans
Microsoft.NET.StringTools (17)
SpanBasedStringBuilder.cs (17)
88
internal List<ReadOnlyMemory<char>> Spans =>
_spans
;
121
public int Capacity =>
_spans
.Capacity;
129
return new Enumerator(
_spans
);
161
_spans
.Add(value!.AsMemory());
178
_spans
.Add(value.AsMemory(startIndex, count));
199
_spans
.Add(span);
209
for (int spanIdx = 0; spanIdx <
_spans
.Count; spanIdx++)
211
ReadOnlySpan<char> span =
_spans
[spanIdx].Span;
219
_spans
[spanIdx] =
_spans
[spanIdx].Slice(i);
222
if (!
_spans
[spanIdx].IsEmpty)
234
for (int spanIdx =
_spans
.Count - 1; spanIdx >= 0; spanIdx--)
236
ReadOnlySpan<char> span =
_spans
[spanIdx].Span;
244
_spans
[spanIdx] =
_spans
[spanIdx].Slice(0, i + 1);
247
if (!
_spans
[spanIdx].IsEmpty)
268
_spans
.Clear();