15 references to AsSegments
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (15)
src\Dependencies\Collections\SegmentedArray.cs (10)
93if (SegmentedCollectionsMarshal.AsSegments(sourceArray) == SegmentedCollectionsMarshal.AsSegments(destinationArray) 448=> new(SegmentedCollectionsMarshal.AsSegments(_first), _firstOffset, SegmentedCollectionsMarshal.AsSegments(_second), _secondOffset, _length); 534=> new(SegmentedCollectionsMarshal.AsSegments(_first), _firstOffset, SegmentedCollectionsMarshal.AsSegments(_second), _secondOffset, _length); 549=> new(SegmentedCollectionsMarshal.AsSegments(_enumerable._first), _enumerable._firstOffset, SegmentedCollectionsMarshal.AsSegments(_enumerable._second), _enumerable._secondOffset, _enumerable._length); 678=> new(SegmentedCollectionsMarshal.AsSegments(_array), _offset, _length); 693=> new(SegmentedCollectionsMarshal.AsSegments(_enumerable._array), _enumerable._offset, _enumerable._length);
src\Dependencies\Collections\SegmentedArray`1+PrivateMarshal.cs (1)
14/// <inheritdoc cref="SegmentedCollectionsMarshal.AsSegments{T}(SegmentedArray{T})"/>
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
672var segments = SegmentedCollectionsMarshal.AsSegments(oldArray);
src\Dependencies\Collections\SegmentedHashSet`1.cs (1)
926var segments = SegmentedCollectionsMarshal.AsSegments(oldArray);
src\Dependencies\Collections\SegmentedList`1.cs (2)
96if (SegmentedCollectionsMarshal.AsSegments(_items) is { Length: 1 } segments) 158var segments = SegmentedCollectionsMarshal.AsSegments(oldArray);