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