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"/>. 84for (var i = 0; i < _items.Length - 1; i++) 86_items[i] = new T[SegmentSize]; 93var lastPageSize = length - ((_items.Length - 1) << SegmentShift); 95_items[_items.Length - 1] = new T[lastPageSize]; 114public object SyncRoot => _items; 121return ref _items[index >> SegmentShift][index & OffsetMask]; 147var items = (T[][])_items.Clone(); 158for (var i = 0; i < _items.Length; i++) 160_items[i].CopyTo(array, index + (i * SegmentSize)); 166for (var i = 0; i < _items.Length; i++) 168ICollection<T> collection = _items[i]; 184return _items.GetHashCode(); 189return _items == other._items; 206foreach (IList list in _items) 220foreach (IList list in _items) 231foreach (ICollection<T> collection in _items) 242for (var i = 0; i < _items.Length; i++) 244IList list = _items[i]; 257for (var i = 0; i < _items.Length; i++) 259IList<T> list = _items[i]; 337if (ReferenceEquals(_items, o._items)) 383_items = array._items; 436public T[][] Items => _array._items;