3 writes to _items
Microsoft.CodeAnalysis.Collections.Package (3)
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.Collections.Package (28)
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"/>. 81for (var i = 0; i < _items.Length - 1; i++) 83_items[i] = new T[SegmentSize]; 90var lastPageSize = length - ((_items.Length - 1) << SegmentShift); 92_items[_items.Length - 1] = new T[lastPageSize]; 111public object SyncRoot => _items; 118return ref _items[index >> SegmentShift][index & OffsetMask]; 144var items = (T[][])_items.Clone(); 155for (var i = 0; i < _items.Length; i++) 157_items[i].CopyTo(array, index + (i * SegmentSize)); 163for (var i = 0; i < _items.Length; i++) 165ICollection<T> collection = _items[i]; 181return _items.GetHashCode(); 186return _items == other._items; 203foreach (IList list in _items) 217foreach (IList list in _items) 228foreach (ICollection<T> collection in _items) 239for (var i = 0; i < _items.Length; i++) 241IList list = _items[i]; 254for (var i = 0; i < _items.Length; i++) 256IList<T> list = _items[i]; 334if (ReferenceEquals(_items, o._items)) 377_items = array._items;
SegmentedArray`1+PrivateMarshal.cs (1)
16=> array._items;