3 writes to buckets
mscorlib (3)
system\collections\hashtable.cs (3)
288
buckets
= new bucket[hashsize];
763
buckets
= newBuckets;
1272
buckets
= new bucket[hashsize];
74 references to buckets
mscorlib (74)
system\collections\hashtable.cs (74)
456
for (int i = 0; i <
buckets
.Length; i++){
457
buckets
[i].hash_coll = 0;
458
buckets
[i].key = null;
459
buckets
[i].val = null;
476
bucket[] lbuckets =
buckets
;
511
bucket[] lbuckets =
buckets
;
541
for (int i =
buckets
.Length; --i >= 0;) {
542
if (
buckets
[i].key != null &&
buckets
[i].key !=
buckets
&&
buckets
[i].val == null)
547
for (int i =
buckets
.Length; --i >= 0;) {
548
Object val =
buckets
[i].val;
562
bucket[] lbuckets =
buckets
;
565
if ((keyv != null) && (keyv !=
buckets
)){
578
bucket[] lbuckets =
buckets
;
581
if ((keyv != null) && (keyv !=
buckets
)){
612
bucket[] lbuckets =
buckets
;
615
if ((keyv != null) && (keyv !=
buckets
)){
631
bucket[] lbuckets =
buckets
;
634
if ((keyv != null) && (keyv !=
buckets
)){
655
bucket[] lbuckets =
buckets
;
719
int rawsize = HashHelpers.ExpandPrime(
buckets
.Length);
725
rehash(
buckets
.Length, false );
750
for (nb = 0; nb <
buckets
.Length; nb++){
751
bucket oldb =
buckets
[nb];
752
if ((oldb.key != null) && (oldb.key !=
buckets
)) {
824
if( Object.ReferenceEquals(
buckets
, item)) {
892
uint hashcode = InitHash(key,
buckets
.Length, out seed, out incr);
896
int bucketNumber = (int) (seed % (uint)
buckets
.Length);
903
if (emptySlotNumber == -1 && (
buckets
[bucketNumber].key ==
buckets
) && (
buckets
[bucketNumber].hash_coll < 0))//(((buckets[bucketNumber].hash_coll & unchecked(0x80000000))!=0)))
909
if ((
buckets
[bucketNumber].key == null) ||
910
(
buckets
[bucketNumber].key ==
buckets
&& ((
buckets
[bucketNumber].hash_coll & unchecked(0x80000000))==0))) {
923
buckets
[bucketNumber].val = nvalue;
924
buckets
[bucketNumber].key = key;
925
buckets
[bucketNumber].hash_coll |= (int) hashcode;
944
rehash(
buckets
.Length, true);
956
if (((
buckets
[bucketNumber].hash_coll & 0x7FFFFFFF) == hashcode) &&
957
KeyEquals (
buckets
[bucketNumber].key, key)) {
959
throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__",
buckets
[bucketNumber].key, key));
965
buckets
[bucketNumber].val = nvalue;
981
rehash(
buckets
.Length, true);
993
if(
buckets
[bucketNumber].hash_coll >= 0 ) {
994
buckets
[bucketNumber].hash_coll |= unchecked((int)0x80000000);
999
bucketNumber = (int) (((long)bucketNumber + incr)% (uint)
buckets
.Length);
1000
} while (++ntry <
buckets
.Length);
1011
buckets
[emptySlotNumber].val = nvalue;
1012
buckets
[emptySlotNumber].key = key;
1013
buckets
[emptySlotNumber].hash_coll |= (int) hashcode;
1023
if(
buckets
.Length > HashHelpers.HashCollisionThreshold && HashHelpers.IsWellKnownEqualityComparer(_keycomparer))
1030
rehash(
buckets
.Length, true);
1054
if ((newBuckets[bucketNumber].key == null) || (newBuckets[bucketNumber].key ==
buckets
)) {
1084
uint hashcode = InitHash(key,
buckets
.Length, out seed, out incr);
1088
int bn = (int) (seed % (uint)
buckets
.Length); // bucketNumber
1090
b =
buckets
[bn];
1098
buckets
[bn].hash_coll &= unchecked((int)0x80000000);
1099
if (
buckets
[bn].hash_coll != 0) {
1100
buckets
[bn].key =
buckets
;
1103
buckets
[bn].key = null;
1105
buckets
[bn].val = null; // Free object references sooner & simplify ContainsValue.
1114
bn = (int) (((long)bn + incr)% (uint)
buckets
.Length);
1115
} while (b.hash_coll < 0 && ++ntry <
buckets
.Length);
1192
info.AddValue(HashSizeName,
buckets
.Length); //This is the length of the bucket array.
1211
if (
buckets
!=null) {
1561
bucket = hashtable.
buckets
.Length;
1582
Object keyv = hashtable.
buckets
[bucket].key;
1583
if ((keyv!= null) && (keyv != hashtable.
buckets
)) {
1585
currentValue = hashtable.
buckets
[bucket].val;
1625
bucket = hashtable.
buckets
.Length;