4 writes to _arrayStorage
Microsoft.AspNetCore.Http (4)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (4)
74_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>(); 78_arrayStorage = new KeyValuePair<TKey, TValue>[capacity]; 526_arrayStorage = null; 537_arrayStorage = array;
37 references to _arrayStorage
Microsoft.AspNetCore.Http (37)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (37)
119if (_arrayStorage != null) 130_arrayStorage[_count++] = new KeyValuePair<TKey, TValue>(key, value); 134_arrayStorage[index] = new KeyValuePair<TKey, TValue>(key, value); 157if (_arrayStorage != null) 161var array = _arrayStorage; 182if (_arrayStorage != null) 186var array = _arrayStorage; 205if (_arrayStorage != null) 223if (_arrayStorage != null) 229Debug.Assert(_arrayStorage == null); 239_arrayStorage[_count] = new KeyValuePair<TKey, TValue>(key, value); 256if (_arrayStorage != null) 258Array.Clear(_arrayStorage, 0, _count); 302if (_arrayStorage != null) 309var storage = _arrayStorage; 348if (_arrayStorage != null) 356var array = _arrayStorage; 379if (_arrayStorage != null) 390var array = _arrayStorage; 418if (_arrayStorage != null) 430var array = _arrayStorage; 458if (_arrayStorage != null) 472_arrayStorage[Count] = new KeyValuePair<TKey, TValue>(key, value); 488if (_arrayStorage != null) 505if (_arrayStorage!.Length >= capacity) 515Debug.Assert(_arrayStorage != null); 520foreach (var item in _arrayStorage) 530capacity = _arrayStorage.Length == 0 ? DefaultArrayThreshold : _arrayStorage.Length * 2; 534Array.Copy(_arrayStorage, 0, array, 0, _count); 545Debug.Assert(_arrayStorage is not null); 546Debug.Assert(_count <= _arrayStorage.Length); 548ref var r = ref MemoryMarshal.GetArrayDataReference(_arrayStorage); 557Debug.Assert(_arrayStorage != null); 577Debug.Assert(_arrayStorage != null); 647if (dictionary._arrayStorage != null) 654Current = dictionary._arrayStorage[_index];