4 writes to _arrayStorage
Microsoft.AspNetCore.Http (4)
parent\parent\parent\Shared\Dictionary\AdaptiveCapacityDictionary.cs (4)
73
_arrayStorage
= Array.Empty<KeyValuePair<TKey, TValue>>();
77
_arrayStorage
= new KeyValuePair<TKey, TValue>[capacity];
525
_arrayStorage
= null;
536
_arrayStorage
= array;
37 references to _arrayStorage
Microsoft.AspNetCore.Http (37)
parent\parent\parent\Shared\Dictionary\AdaptiveCapacityDictionary.cs (37)
118
if (
_arrayStorage
!= null)
129
_arrayStorage
[_count++] = new KeyValuePair<TKey, TValue>(key, value);
133
_arrayStorage
[index] = new KeyValuePair<TKey, TValue>(key, value);
156
if (
_arrayStorage
!= null)
160
var array =
_arrayStorage
;
181
if (
_arrayStorage
!= null)
185
var array =
_arrayStorage
;
204
if (
_arrayStorage
!= null)
222
if (
_arrayStorage
!= null)
228
Debug.Assert(
_arrayStorage
== null);
238
_arrayStorage
[_count] = new KeyValuePair<TKey, TValue>(key, value);
255
if (
_arrayStorage
!= null)
257
Array.Clear(
_arrayStorage
, 0, _count);
301
if (
_arrayStorage
!= null)
308
var storage =
_arrayStorage
;
347
if (
_arrayStorage
!= null)
355
var array =
_arrayStorage
;
378
if (
_arrayStorage
!= null)
389
var array =
_arrayStorage
;
417
if (
_arrayStorage
!= null)
429
var array =
_arrayStorage
;
457
if (
_arrayStorage
!= null)
471
_arrayStorage
[Count] = new KeyValuePair<TKey, TValue>(key, value);
487
if (
_arrayStorage
!= null)
504
if (
_arrayStorage
!.Length >= capacity)
514
Debug.Assert(
_arrayStorage
!= null);
519
foreach (var item in
_arrayStorage
)
529
capacity =
_arrayStorage
.Length == 0 ? DefaultArrayThreshold :
_arrayStorage
.Length * 2;
533
Array.Copy(
_arrayStorage
, 0, array, 0, _count);
544
Debug.Assert(
_arrayStorage
is not null);
545
Debug.Assert(_count <=
_arrayStorage
.Length);
547
return
_arrayStorage
.AsSpan(0, _count);
555
Debug.Assert(
_arrayStorage
!= null);
576
Debug.Assert(
_arrayStorage
!= null);
646
if (dictionary.
_arrayStorage
!= null)
653
Current = dictionary.
_arrayStorage
[_index];