3 writes to _items
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (3)
77
_items
= Array.Empty<T[]>();
82
_items
= new T[(length + SegmentSize - 1) >> SegmentShift][];
102
_items
= items;
28 references to _items
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (28)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (27)
44
/// 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
"/>.
83
for (var i = 0; i <
_items
.Length - 1; i++)
85
_items
[i] = new T[SegmentSize];
92
var lastPageSize = length - ((
_items
.Length - 1) << SegmentShift);
94
_items
[
_items
.Length - 1] = new T[lastPageSize];
113
public object SyncRoot =>
_items
;
120
return ref
_items
[index >> SegmentShift][index & OffsetMask];
146
var items = (T[][])
_items
.Clone();
157
for (var i = 0; i <
_items
.Length; i++)
159
_items
[i].CopyTo(array, index + (i * SegmentSize));
165
for (var i = 0; i <
_items
.Length; i++)
167
ICollection<T> collection =
_items
[i];
183
return
_items
.GetHashCode();
188
return
_items
== other.
_items
;
205
foreach (IList list in
_items
)
219
foreach (IList list in
_items
)
230
foreach (ICollection<T> collection in
_items
)
241
for (var i = 0; i <
_items
.Length; i++)
243
IList list =
_items
[i];
256
for (var i = 0; i <
_items
.Length; i++)
258
IList<T> list =
_items
[i];
336
if (ReferenceEquals(
_items
, o.
_items
))
379
_items = array.
_items
;
src\Dependencies\Collections\Segmented\SegmentedArray`1+PrivateMarshal.cs (1)
18
=> array.
_items
;