6 writes to _buckets
Microsoft.Build (6)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (6)
557
_buckets
= new int[capacity];
575
_buckets
= null;
711
_buckets
= null;
747
_buckets
= newBuckets;
767
_buckets
= new int[size];
802
_buckets
= newBuckets;
23 references to _buckets
Microsoft.Build (23)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (23)
266
Debug.Assert(
_buckets
!= null, "m_buckets was null but m_lastIndex > 0");
271
Array.Clear(
_buckets
, 0,
_buckets
.Length);
365
if (
_buckets
!= null)
369
for (int i =
_buckets
[hashCode %
_buckets
.Length] - 1; i >= 0; i = _slots[i].next)
417
if (
_buckets
!= null)
420
int bucket = hashCode %
_buckets
.Length;
422
for (int i =
_buckets
[bucket] - 1; i >= 0; last = i, i = _slots[i].next)
429
_buckets
[bucket] = _slots[i].next + 1;
526
info.AddValue(CapacityName,
_buckets
== null ? 0 :
_buckets
.Length);
527
if (
_buckets
!= null)
717
Debug.Assert(
_buckets
!= null, "m_buckets was null but m_count > 0");
763
Debug.Assert(
_buckets
== null, "Initialize was called but m_buckets was non-null");
779
Debug.Assert(
_buckets
!= null, "IncreaseCapacity called on a set with no elements");
819
if (
_buckets
== null)
826
int bucket = hashCode %
_buckets
.Length;
827
for (int i =
_buckets
[hashCode %
_buckets
.Length] - 1; i >= 0; i = _slots[i].next)
850
bucket = hashCode %
_buckets
.Length;
857
_slots[index].next =
_buckets
[bucket] - 1;
858
_buckets
[bucket] = index + 1;