15 references to AsSegments
Microsoft.CodeAnalysis.Collections.Package (15)
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);
SegmentedArray`1+PrivateMarshal.cs (1)
14/// <inheritdoc cref="SegmentedCollectionsMarshal.AsSegments{T}(SegmentedArray{T})"/>
SegmentedDictionary`2.cs (1)
672var segments = SegmentedCollectionsMarshal.AsSegments(oldArray);
SegmentedHashSet`1.cs (1)
926var segments = SegmentedCollectionsMarshal.AsSegments(oldArray);
SegmentedList`1.cs (2)
96if (SegmentedCollectionsMarshal.AsSegments(_items) is { Length: 1 } segments) 158var segments = SegmentedCollectionsMarshal.AsSegments(oldArray);