2 writes to _storage
System.Threading.Tasks.Dataflow (2)
Internal\QueuedMap.cs (2)
58_storage = new List<KeyValuePair<int, T>>(); 65_storage = new List<KeyValuePair<int, T>>(capacity);
15 references to _storage
System.Threading.Tasks.Dataflow (15)
Internal\QueuedMap.cs (15)
78Debug.Assert(0 <= _freeIndex && _freeIndex < _storage.Count, "Index is out of range."); 80_freeIndex = _storage[_freeIndex].Key; 81_storage[newIndex] = new KeyValuePair<int, T>(TERMINATOR_INDEX, item); 86newIndex = _storage.Count; 87_storage.Add(new KeyValuePair<int, T>(TERMINATOR_INDEX, item)); 100_storage[_tailIndex] = new KeyValuePair<int, T>(newIndex, _storage[_tailIndex].Value); 122Debug.Assert(0 <= _headIndex && _headIndex < _storage.Count, "Head is out of range."); 123item = _storage[_headIndex].Value; 126int newHeadIndex = _storage[_headIndex].Key; 127_storage[_headIndex] = new KeyValuePair<int, T>(_freeIndex, default(T)!); 140Debug.Assert(0 <= index && index < _storage.Count, "Index is out of range."); 143for (int idx = _freeIndex; idx != TERMINATOR_INDEX; idx = _storage[idx].Key) 146_storage[index] = new KeyValuePair<int, T>(_storage[index].Key, item);