3 instantiations of StringSegment
Microsoft.Build (3)
Logging\OptimizedStringIndenter.cs (3)
118
segments[0] = new
StringSegment
(0, 0);
149
segments[i] = new
StringSegment
(start, input.Length);
161
segments[i] = new
StringSegment
(start, index);
11 references to StringSegment
Microsoft.Build (11)
Logging\OptimizedStringIndenter.cs (11)
62
Span<
StringSegment
> segments = GetStringSegments(s.AsSpan(), stackalloc
StringSegment
[128], out
StringSegment
[]? pooledArray);
65
foreach (
StringSegment
segment in segments)
75
foreach (
StringSegment
segment in *(Span<
StringSegment
>*)state.Item2)
107
ArrayPool<
StringSegment
>.Shared.Return(pooledArray);
113
private static Span<
StringSegment
> GetStringSegments(ReadOnlySpan<char> input, Span<
StringSegment
> segments, out
StringSegment
[]? pooledArray)
139
pooledArray = ArrayPool<
StringSegment
>.Shared.Rent(segmentCount);