35 references to SegmentedCollectionsMarshal
Microsoft.CodeAnalysis.Workspaces (35)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+PrivateMarshal.cs (3)
12/// Private helper class for use only by <see cref="SegmentedCollectionsMarshal"/>. 16/// <inheritdoc cref="SegmentedCollectionsMarshal.GetValueRefOrNullRef{TKey, TValue}(ImmutableSegmentedDictionary{TKey, TValue}.Builder, TKey)"/> 18=> ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dictionary._builder.GetOrCreateMutableDictionary(), key);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (5)
14/// <see cref="SegmentedCollectionsMarshal"/>. 45/// <inheritdoc cref="SegmentedCollectionsMarshal.GetValueRefOrNullRef{TKey, TValue}(ImmutableSegmentedDictionary{TKey, TValue}, TKey)"/> 47=> ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dictionary._dictionary, key); 49/// <inheritdoc cref="SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary{TKey, TValue}(SegmentedDictionary{TKey, TValue}?)"/> 53/// <inheritdoc cref="SegmentedCollectionsMarshal.AsSegmentedDictionary{TKey, TValue}(ImmutableSegmentedDictionary{TKey, TValue})"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
14/// <see cref="SegmentedCollectionsMarshal"/>. 45/// <inheritdoc cref="SegmentedCollectionsMarshal.AsImmutableSegmentedHashSet{T}(SegmentedHashSet{T}?)"/> 49/// <inheritdoc cref="SegmentedCollectionsMarshal.AsSegmentedHashSet{T}(ImmutableSegmentedHashSet{T})"/>
src\Dependencies\Collections\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
14/// <see cref="SegmentedCollectionsMarshal"/>. 45/// <inheritdoc cref="SegmentedCollectionsMarshal.AsImmutableSegmentedList{T}(SegmentedList{T}?)"/> 49/// <inheritdoc cref="SegmentedCollectionsMarshal.AsSegmentedList{T}(ImmutableSegmentedList{T})"/>
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 (2)
10/// Private helper class for use only by <see cref="SegmentedCollectionsMarshal"/>. 14/// <inheritdoc cref="SegmentedCollectionsMarshal.AsSegments{T}(SegmentedArray{T})"/>
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
672var segments = SegmentedCollectionsMarshal.AsSegments(oldArray); 689return SegmentedCollectionsMarshal.AsSegmentedArray(newSize, segments);
src\Dependencies\Collections\SegmentedDictionary`2+PrivateMarshal.cs (2)
10/// Private helper class for use only by <see cref="SegmentedCollectionsMarshal"/>. 14/// <inheritdoc cref="SegmentedCollectionsMarshal.GetValueRefOrNullRef{TKey, TValue}(SegmentedDictionary{TKey, TValue}, TKey)"/>
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
926var segments = SegmentedCollectionsMarshal.AsSegments(oldArray); 943return SegmentedCollectionsMarshal.AsSegmentedArray(newSize, segments);
src\Dependencies\Collections\SegmentedList`1.cs (3)
96if (SegmentedCollectionsMarshal.AsSegments(_items) is { Length: 1 } segments) 158var segments = SegmentedCollectionsMarshal.AsSegments(oldArray); 175return SegmentedCollectionsMarshal.AsSegmentedArray(newSize, segments);