6 instantiations of SegmentedArraySegment
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\Internal\SegmentedArraySegment`1.cs (2)
36return new SegmentedArraySegment<T>(Array, Start + start, Length - start); 49return new SegmentedArraySegment<T>(Array, Start + start, length);
src\Dependencies\Collections\SegmentedArray.cs (3)
366var segment = new SegmentedArraySegment<T>(array, 0, array.Length); 392var segment = new SegmentedArraySegment<T>(array, index, length); 406var segment = new SegmentedArraySegment<T>(array, 0, array.Length);
src\Dependencies\Collections\SegmentedList`1.cs (1)
1262var segment = new SegmentedArraySegment<T>(_items, 0, _size);
40 references to SegmentedArraySegment
Microsoft.CodeAnalysis.Workspaces (40)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (34)
30public static void Sort(SegmentedArraySegment<T> keys, IComparer<T>? comparer) 63internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 108private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 121private static void Swap(SegmentedArraySegment<T> a, int i, int j) 130internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 143private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 188private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 233private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 251private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 274private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 295public static void Sort(SegmentedArraySegment<T> keys, IComparer<T>? comparer) 423private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit) 470private static int PickPivotAndPartition(SegmentedArraySegment<T> keys) 533private static void HeapSort(SegmentedArraySegment<T> keys) 550private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n) 571private static void InsertionSort(SegmentedArraySegment<T> keys) 671public static void Sort(SegmentedArraySegment<TKey> keys, Span<TValue> values, IComparer<TKey>? comparer) 689private static void SwapIfGreaterWithValues(SegmentedArraySegment<TKey> keys, Span<TValue> values, IComparer<TKey> comparer, int i, int j) 709private static void Swap(SegmentedArraySegment<TKey> keys, Span<TValue> values, int i, int j) 722internal static void IntrospectiveSort(SegmentedArraySegment<TKey> keys, Span<TValue> values, IComparer<TKey> comparer) 733private static void IntroSort(SegmentedArraySegment<TKey> keys, Span<TValue> values, int depthLimit, IComparer<TKey> comparer) 779private static int PickPivotAndPartition(SegmentedArraySegment<TKey> keys, Span<TValue> values, IComparer<TKey> comparer) 824private static void HeapSort(SegmentedArraySegment<TKey> keys, Span<TValue> values, IComparer<TKey> comparer) 842private static void DownHeap(SegmentedArraySegment<TKey> keys, Span<TValue> values, int i, int n, IComparer<TKey> comparer) 869private static void InsertionSort(SegmentedArraySegment<TKey> keys, Span<TValue> values, IComparer<TKey> comparer) 895public static void Sort(SegmentedArraySegment<TKey> keys, Span<TValue> values, IComparer<TKey>? comparer) 942private static void SwapIfGreaterWithValues(SegmentedArraySegment<TKey> keys, Span<TValue> values, int i, int j) 960private static void Swap(SegmentedArraySegment<TKey> keys, Span<TValue> values, int i, int j) 973private static void IntroSort(SegmentedArraySegment<TKey> keys, Span<TValue> values, int depthLimit) 1018private static int PickPivotAndPartition(SegmentedArraySegment<TKey> keys, Span<TValue> values) 1077private static void HeapSort(SegmentedArraySegment<TKey> keys, Span<TValue> values) 1094private static void DownHeap(SegmentedArraySegment<TKey> keys, Span<TValue> values, int i, int n) 1119private static void InsertionSort(SegmentedArraySegment<TKey> keys, Span<TValue> values) 1231public static int MoveNansToFront<TKey, TValue>(SegmentedArraySegment<TKey> keys, Span<TValue> values) where TKey : notnull
src\Dependencies\Collections\Internal\SegmentedArraySegment`1.cs (2)
31public SegmentedArraySegment<T> Slice(int start) 39public SegmentedArraySegment<T> Slice(int start, int length)
src\Dependencies\Collections\SegmentedArray.cs (3)
366var segment = new SegmentedArraySegment<T>(array, 0, array.Length); 392var segment = new SegmentedArraySegment<T>(array, index, length); 406var segment = new SegmentedArraySegment<T>(array, 0, array.Length);
src\Dependencies\Collections\SegmentedList`1.cs (1)
1262var segment = new SegmentedArraySegment<T>(_items, 0, _size);