3 writes to _items
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Dependencies\Collections\SegmentedArray`1.cs (3)
75
_items
= Array.Empty<T[]>();
80
_items
= new T[(length + SegmentSize - 1) >> SegmentShift][];
100
_items
= items;
28 references to _items
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (28)
src\Dependencies\Collections\SegmentedArray`1.cs (27)
42
/// The bit shift to apply to an array index to get the page index within <see cref="
_items
"/>.
53
/// The bit mask to apply to an array index to get the index within a page of <see cref="
_items
"/>.
81
for (var i = 0; i <
_items
.Length - 1; i++)
83
_items
[i] = new T[SegmentSize];
90
var lastPageSize = length - ((
_items
.Length - 1) << SegmentShift);
92
_items
[
_items
.Length - 1] = new T[lastPageSize];
111
public object SyncRoot =>
_items
;
118
return ref
_items
[index >> SegmentShift][index & OffsetMask];
144
var items = (T[][])
_items
.Clone();
155
for (var i = 0; i <
_items
.Length; i++)
157
_items
[i].CopyTo(array, index + (i * SegmentSize));
163
for (var i = 0; i <
_items
.Length; i++)
165
ICollection<T> collection =
_items
[i];
181
return
_items
.GetHashCode();
186
return
_items
== other.
_items
;
203
foreach (IList list in
_items
)
217
foreach (IList list in
_items
)
228
foreach (ICollection<T> collection in
_items
)
239
for (var i = 0; i <
_items
.Length; i++)
241
IList list =
_items
[i];
254
for (var i = 0; i <
_items
.Length; i++)
256
IList<T> list =
_items
[i];
334
if (ReferenceEquals(
_items
, o.
_items
))
377
_items = array.
_items
;
src\Dependencies\Collections\SegmentedArray`1+PrivateMarshal.cs (1)
16
=> array.
_items
;