3 writes to _items
Microsoft.Build.Framework (3)
SegmentedArray`1.cs (3)
78
_items
= Array.Empty<T[]>();
83
_items
= new T[(length + SegmentSize - 1) >> SegmentShift][];
103
_items
= items;
28 references to _items
Microsoft.Build.Framework (28)
SegmentedArray`1.cs (28)
43
/// The bit shift to apply to an array index to get the page index within <see cref="
_items
"/>.
55
/// The bit mask to apply to an array index to get the index within a page of <see cref="
_items
"/>.
84
for (var i = 0; i <
_items
.Length - 1; i++)
86
_items
[i] = new T[SegmentSize];
93
var lastPageSize = length - ((
_items
.Length - 1) << SegmentShift);
95
_items
[
_items
.Length - 1] = new T[lastPageSize];
114
public object SyncRoot =>
_items
;
121
return ref
_items
[index >> SegmentShift][index & OffsetMask];
147
var items = (T[][])
_items
.Clone();
158
for (var i = 0; i <
_items
.Length; i++)
160
_items
[i].CopyTo(array, index + (i * SegmentSize));
166
for (var i = 0; i <
_items
.Length; i++)
168
ICollection<T> collection =
_items
[i];
184
return
_items
.GetHashCode();
189
return
_items
== other.
_items
;
206
foreach (IList list in
_items
)
220
foreach (IList list in
_items
)
231
foreach (ICollection<T> collection in
_items
)
242
for (var i = 0; i <
_items
.Length; i++)
244
IList list =
_items
[i];
257
for (var i = 0; i <
_items
.Length; i++)
259
IList<T> list =
_items
[i];
337
if (ReferenceEquals(
_items
, o.
_items
))
383
_items = array.
_items
;
436
public T[][] Items => _array.
_items
;