9 writes to _items
Microsoft.Build.Framework (9)
SegmentedList`1.cs (9)
49
_items
= s_emptyArray;
62
_items
= s_emptyArray;
64
_items
= new SegmentedArray<T>(capacity);
78
_items
= (SegmentedArray<T>)segmentedList._items.Clone();
88
_items
= s_emptyArray;
93
_items
= new SegmentedArray<T>(count);
106
_items
= s_emptyArray;
141
_items
= newItems;
145
_items
= s_emptyArray;
70 references to _items
Microsoft.Build.Framework (70)
ImmutableSegmentedList`1.cs (1)
135
return ref self._list.
_items
[index];
ImmutableSegmentedList`1+ValueBuilder.cs (1)
67
return ref ReadOnlyList.
_items
[index];
SegmentedList`1.cs (68)
78
_items = (SegmentedArray<T>)segmentedList.
_items
.Clone();
94
if ((T[][])
_items
.SyncRoot is { Length: 1 } segments)
124
get =>
_items
.Length;
132
if (value !=
_items
.Length)
139
SegmentedArray.Copy(
_items
, newItems, _size);
177
return
_items
[index];
186
_items
[index] = value;
224
var array =
_items
;
244
_items
[size] = item;
302
return SegmentedArray.BinarySearch<T>(
_items
, index, count, item, comparer);
328
SegmentedArray.Clear(
_items
, 0, size); // Clear the elements so that the gc can reclaim the references.
368
list.
_items
[i] = converter(
_items
[i]);
391
SegmentedArray.Copy(
_items
, 0, array!, arrayIndex, _size);
411
SegmentedArray.Copy(
_items
, index, array, arrayIndex, count);
417
SegmentedArray.Copy(
_items
, 0, array, arrayIndex, _size);
427
if (
_items
.Length < min)
429
var newCapacity =
_items
.Length == 0 ? DefaultCapacity :
_items
.Length * 2;
452
if (match(
_items
[i]))
454
return
_items
[i];
470
if (match(
_items
[i]))
472
list.Add(
_items
[i]);
504
if (match(
_items
[i]))
519
if (match(
_items
[i]))
521
return
_items
[i];
566
if (match(
_items
[i]))
589
action(
_items
[i]);
628
SegmentedArray.Copy(
_items
, index, list.
_items
, 0, count);
642
=> SegmentedArray.IndexOf(
_items
, item, 0, _size);
666
return SegmentedArray.IndexOf(
_items
, item, index, _size - index);
686
return SegmentedArray.IndexOf(
_items
, item, index, count);
697
return SegmentedArray.IndexOf(
_items
, item, index, count, comparer);
711
if (_size ==
_items
.Length)
715
SegmentedArray.Copy(
_items
, index,
_items
, index + 1, _size - index);
717
_items
[index] = item;
761
SegmentedArray.Copy(
_items
, index,
_items
, index + count, _size - index);
768
SegmentedArray.Copy(
_items
, 0,
_items
, index, index);
770
SegmentedArray.Copy(
_items
, index + count,
_items
, index * 2, _size - index);
774
SegmentedArray.Copy(list.
_items
, 0,
_items
, index, list.Count);
778
SegmentedArray.Copy(array, 0,
_items
, index, array.Length);
784
_items
[targetIndex++] = item;
874
return SegmentedArray.LastIndexOf(
_items
, item, index, count);
905
return SegmentedArray.LastIndexOf(
_items
, item, index, count, comparer);
942
while (freeIndex < _size && !match(
_items
[freeIndex]))
951
while (current < _size && match(
_items
[current]))
957
_items
[freeIndex++] =
_items
[current++];
965
SegmentedArray.Clear(
_items
, freeIndex, _size - freeIndex); // Clear the elements so that the gc can reclaim the references.
985
SegmentedArray.Copy(
_items
, index + 1,
_items
, index, _size - index);
991
_items
[_size] = default!;
1017
SegmentedArray.Copy(
_items
, index + count,
_items
, index, _size - index);
1025
SegmentedArray.Clear(
_items
, _size, count);
1056
SegmentedArray.Reverse(
_items
, index, count);
1096
SegmentedArray.Sort<T>(
_items
, index, count, comparer);
1110
SegmentedArray.Sort<T>(
_items
, 0, _size, Comparer<T>.Create(comparison));
1125
SegmentedArray.Copy(
_items
, array, _size);
1140
var threshold = (int)(
_items
.Length * 0.9);
1156
if (!match(
_items
[i]))
1189
_current = localList.
_items
[_index];