6 writes to _buckets
Microsoft.Build (6)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (6)
554
_buckets
= new int[capacity];
572
_buckets
= null;
708
_buckets
= null;
744
_buckets
= newBuckets;
764
_buckets
= new int[size];
799
_buckets
= newBuckets;
23 references to _buckets
Microsoft.Build (23)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (23)
263
Debug.Assert(
_buckets
!= null, "m_buckets was null but m_lastIndex > 0");
268
Array.Clear(
_buckets
, 0,
_buckets
.Length);
362
if (
_buckets
!= null)
366
for (int i =
_buckets
[hashCode %
_buckets
.Length] - 1; i >= 0; i = _slots[i].next)
414
if (
_buckets
!= null)
417
int bucket = hashCode %
_buckets
.Length;
419
for (int i =
_buckets
[bucket] - 1; i >= 0; last = i, i = _slots[i].next)
426
_buckets
[bucket] = _slots[i].next + 1;
523
info.AddValue(CapacityName,
_buckets
== null ? 0 :
_buckets
.Length);
524
if (
_buckets
!= null)
714
Debug.Assert(
_buckets
!= null, "m_buckets was null but m_count > 0");
760
Debug.Assert(
_buckets
== null, "Initialize was called but m_buckets was non-null");
776
Debug.Assert(
_buckets
!= null, "IncreaseCapacity called on a set with no elements");
816
if (
_buckets
== null)
823
int bucket = hashCode %
_buckets
.Length;
824
for (int i =
_buckets
[hashCode %
_buckets
.Length] - 1; i >= 0; i = _slots[i].next)
847
bucket = hashCode %
_buckets
.Length;
854
_slots[index].next =
_buckets
[bucket] - 1;
855
_buckets
[bucket] = index + 1;