2 writes to _slots
Microsoft.AspNetCore.SignalR.Core (2)
Internal\Utf8HashLookup.cs (2)
26
_slots
= new Slot[7];
143
_slots
= newSlots;
16 references to _slots
Microsoft.AspNetCore.SignalR.Core (16)
Internal\Utf8HashLookup.cs (16)
31
if (_count ==
_slots
.Length)
45
_slots
[slotIndex].hashCode = hashCode;
46
_slots
[slotIndex].caseSensitiveHashCode = caseSensitiveHashCode;
48
_slots
[slotIndex].value = value;
49
_slots
[slotIndex].encodedValue = encodedValue;
51
_slots
[slotIndex].next = _buckets[bucketIndex] - 1;
52
_slots
[slotIndex].caseSensitiveNext = _caseSensitiveBuckets[caseSensitiveBucketIndex] - 1;
62
for (var i = _caseSensitiveBuckets[caseSensitiveHashCode % _caseSensitiveBuckets.Length] - 1; i >= 0; i =
_slots
[i].caseSensitiveNext)
64
if (
_slots
[i].caseSensitiveHashCode == caseSensitiveHashCode && encodedValue.SequenceEqual(
_slots
[i].encodedValue.AsSpan()))
66
value =
_slots
[i].value;
99
for (var i = _buckets[hashCode % _buckets.Length] - 1; i >= 0; i =
_slots
[i].next)
101
if (
_slots
[i].hashCode == hashCode && key.Equals(
_slots
[i].value, StringComparison.OrdinalIgnoreCase))
103
value =
_slots
[i].value;
130
Array.Copy(
_slots
, newSlots, _count);