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)
119
if (
_arrayStorage
!= null)
130
_arrayStorage
[_count++] = new KeyValuePair<TKey, TValue>(key, value);
134
_arrayStorage
[index] = new KeyValuePair<TKey, TValue>(key, value);
157
if (
_arrayStorage
!= null)
161
var array =
_arrayStorage
;
182
if (
_arrayStorage
!= null)
186
var array =
_arrayStorage
;
205
if (
_arrayStorage
!= null)
223
if (
_arrayStorage
!= null)
229
Debug.Assert(
_arrayStorage
== null);
239
_arrayStorage
[_count] = new KeyValuePair<TKey, TValue>(key, value);
256
if (
_arrayStorage
!= null)
258
Array.Clear(
_arrayStorage
, 0, _count);
302
if (
_arrayStorage
!= null)
309
var storage =
_arrayStorage
;
348
if (
_arrayStorage
!= null)
356
var array =
_arrayStorage
;
379
if (
_arrayStorage
!= null)
390
var array =
_arrayStorage
;
418
if (
_arrayStorage
!= null)
430
var array =
_arrayStorage
;
458
if (
_arrayStorage
!= null)
472
_arrayStorage
[Count] = new KeyValuePair<TKey, TValue>(key, value);
488
if (
_arrayStorage
!= null)
505
if (
_arrayStorage
!.Length >= capacity)
515
Debug.Assert(
_arrayStorage
!= null);
520
foreach (var item in
_arrayStorage
)
530
capacity =
_arrayStorage
.Length == 0 ? DefaultArrayThreshold :
_arrayStorage
.Length * 2;
534
Array.Copy(
_arrayStorage
, 0, array, 0, _count);
545
Debug.Assert(
_arrayStorage
is not null);
546
Debug.Assert(_count <=
_arrayStorage
.Length);
548
ref var r = ref MemoryMarshal.GetArrayDataReference(
_arrayStorage
);
557
Debug.Assert(
_arrayStorage
!= null);
577
Debug.Assert(
_arrayStorage
!= null);
647
if (dictionary.
_arrayStorage
!= null)
654
Current = dictionary.
_arrayStorage
[_index];