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