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)
88internal List<ReadOnlyMemory<char>> Spans => _spans; 121public int Capacity => _spans.Capacity; 129return new Enumerator(_spans); 161_spans.Add(value!.AsMemory()); 178_spans.Add(value.AsMemory(startIndex, count)); 199_spans.Add(span); 209for (int spanIdx = 0; spanIdx < _spans.Count; spanIdx++) 211ReadOnlySpan<char> span = _spans[spanIdx].Span; 219_spans[spanIdx] = _spans[spanIdx].Slice(i); 222if (!_spans[spanIdx].IsEmpty) 234for (int spanIdx = _spans.Count - 1; spanIdx >= 0; spanIdx--) 236ReadOnlySpan<char> span = _spans[spanIdx].Span; 244_spans[spanIdx] = _spans[spanIdx].Slice(0, i + 1); 247if (!_spans[spanIdx].IsEmpty) 268_spans.Clear();