9 instantiations of SegmentedArray
Microsoft.Build.Framework (9)
SegmentedArray`1.cs (1)
153
return new
SegmentedArray
<T>(Length, items);
SegmentedDictionary`2.cs (4)
456
var buckets = new
SegmentedArray
<int>(size);
457
var entries = new
SegmentedArray
<Entry>(size);
653
var entries = new
SegmentedArray
<Entry>(newSize);
659
_buckets = new
SegmentedArray
<int>(newSize);
SegmentedList`1.cs (4)
41
private static readonly SegmentedArray<T> s_emptyArray =
new
(0);
64
_items = new
SegmentedArray
<T>(capacity);
93
_items = new
SegmentedArray
<T>(count);
136
var newItems = new
SegmentedArray
<T>(value);
92 references to SegmentedArray
Microsoft.Build.Framework (92)
ArraySortHelper.cs (4)
47
public static int BinarySearch(
SegmentedArray
<T> array, int index, int length, T value, IComparer<T>? comparer)
80
internal static int InternalBinarySearch(
SegmentedArray
<T> array, int index, int length, T value, IComparer<T> comparer)
336
public static int BinarySearch(
SegmentedArray
<T> array, int index, int length, T value, IComparer<T>? comparer)
361
private static int BinarySearch(
SegmentedArray
<T> array, int index, int length, T value)
SegmentedArray.cs (49)
17
internal static void Clear<T>(
SegmentedArray
<T> array, int index, int length)
26
internal static void Copy<T>(
SegmentedArray
<T> sourceArray,
SegmentedArray
<T> destinationArray, int length)
44
public static void Copy<T>(
SegmentedArray
<T> sourceArray, Array destinationArray, int length)
71
public static void Copy<T>(
SegmentedArray
<T> sourceArray, int sourceIndex,
SegmentedArray
<T> destinationArray, int destinationIndex, int length)
104
private static void CopyOverlapped<T>(
SegmentedArray
<T> array, int sourceIndex, int destinationIndex, int length)
130
public static void Copy<T>(
SegmentedArray
<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
166
public static int BinarySearch<T>(
SegmentedArray
<T> array, T value)
171
public static int BinarySearch<T>(
SegmentedArray
<T> array, T value, IComparer<T>? comparer)
176
public static int BinarySearch<T>(
SegmentedArray
<T> array, int index, int length, T value)
181
public static int BinarySearch<T>(
SegmentedArray
<T> array, int index, int length, T value, IComparer<T>? comparer)
193
public static int IndexOf<T>(
SegmentedArray
<T> array, T value)
198
public static int IndexOf<T>(
SegmentedArray
<T> array, T value, int startIndex)
203
public static int IndexOf<T>(
SegmentedArray
<T> array, T value, int startIndex, int count)
208
public static int IndexOf<T>(
SegmentedArray
<T> array, T value, int startIndex, int count, IEqualityComparer<T>? comparer)
258
public static int LastIndexOf<T>(
SegmentedArray
<T> array, T value)
263
public static int LastIndexOf<T>(
SegmentedArray
<T> array, T value, int startIndex)
268
public static int LastIndexOf<T>(
SegmentedArray
<T> array, T value, int startIndex, int count)
273
public static int LastIndexOf<T>(
SegmentedArray
<T> array, T value, int startIndex, int count, IEqualityComparer<T>? comparer)
327
public static void Reverse<T>(
SegmentedArray
<T> array)
332
public static void Reverse<T>(
SegmentedArray
<T> array, int index, int length)
356
public static void Sort<T>(
SegmentedArray
<T> array)
365
public static void Sort<T>(
SegmentedArray
<T> array, int index, int length)
370
public static void Sort<T>(
SegmentedArray
<T> array, IComparer<T>? comparer)
375
public static void Sort<T>(
SegmentedArray
<T> array, int index, int length, IComparer<T>? comparer)
391
public static void Sort<T>(
SegmentedArray
<T> array, Comparison<T> comparison)
405
private static SegmentEnumerable<T> GetSegments<T>(this
SegmentedArray
<T> array, int offset, int length)
408
private static AlignedSegmentEnumerable<T> GetSegments<T>(
SegmentedArray
<T> first,
SegmentedArray
<T> second, int length)
412
private static AlignedSegmentEnumerable<T> GetSegmentsAligned<T>(
SegmentedArray
<T> first, int firstOffset,
SegmentedArray
<T> second, int secondOffset, int length)
416
private static UnalignedSegmentEnumerable<T> GetSegmentsUnaligned<T>(
SegmentedArray
<T> first, int firstOffset,
SegmentedArray
<T> second, int secondOffset, int length)
421
private readonly
SegmentedArray
<T> _first;
423
private readonly
SegmentedArray
<T> _second;
427
public AlignedSegmentEnumerable(
SegmentedArray
<T> first,
SegmentedArray
<T> second, int length)
432
public AlignedSegmentEnumerable(
SegmentedArray
<T> first, int firstOffset,
SegmentedArray
<T> second, int secondOffset, int length)
507
private readonly
SegmentedArray
<T> _first;
509
private readonly
SegmentedArray
<T> _second;
513
public UnalignedSegmentEnumerable(
SegmentedArray
<T> first,
SegmentedArray
<T> second, int length)
518
public UnalignedSegmentEnumerable(
SegmentedArray
<T> first, int firstOffset,
SegmentedArray
<T> second, int secondOffset, int length)
650
private readonly
SegmentedArray
<T> _array;
654
public SegmentEnumerable(
SegmentedArray
<T> array)
661
public SegmentEnumerable(
SegmentedArray
<T> array, int offset, int length)
SegmentedArray`1.cs (9)
20
internal readonly struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<
SegmentedArray
<T>>
178
return obj is
SegmentedArray
<T> other
187
public bool Equals(
SegmentedArray
<T> other)
313
if (other is not
SegmentedArray
<T> o
334
if (other is not
SegmentedArray
<T> o)
381
public Enumerator(
SegmentedArray
<T> array)
427
private readonly
SegmentedArray
<T> _array;
429
public TestAccessor(
SegmentedArray
<T> array)
434
public static int SegmentSize =>
SegmentedArray
<T>.SegmentSize;
SegmentedArraySegment`1.cs (2)
9
public
SegmentedArray
<T> Array { get; }
13
public SegmentedArraySegment(
SegmentedArray
<T> array, int start, int length)
SegmentedDictionary`2.cs (22)
42
private
SegmentedArray
<int> _buckets;
43
private
SegmentedArray
<Entry> _entries;
121
var
entries = d._entries;
253
var
entries = _entries;
311
var
entries = _entries;
343
var
entries = _entries;
411
var
entries = _entries;
456
var
buckets = new SegmentedArray<int>(size);
457
var
entries = new SegmentedArray<Entry>(size);
481
var
entries = _entries;
653
var
entries = new SegmentedArray<Entry>(newSize);
691
var
entries = _entries;
763
var
entries = _entries;
878
var
entries = _entries;
898
var
entries = _entries;
975
var
oldEntries = _entries;
985
var
entries = _entries;
1119
var
buckets = _buckets;
1293
var
entries = _dictionary._entries;
1366
var
entries = _dictionary._entries;
1493
var
entries = _dictionary._entries;
1566
var
entries = _dictionary._entries;
SegmentedList`1.cs (6)
37
internal
SegmentedArray
<T> _items;
41
private static readonly
SegmentedArray
<T> s_emptyArray = new(0);
78
_items = (
SegmentedArray
<T>)segmentedList._items.Clone();
136
var
newItems = new SegmentedArray<T>(value);
224
var
array = _items;
776
else if (c is
SegmentedArray
<T> array)