void Initialize(int capacity) { var prime = SizingHelper.GetSizingPrime(capacity); _buckets = new int[prime]; for (var index = 0; index < _buckets.Length; ++index) { _buckets[index] = -1; } _entries = new Entry[prime]; _freeList = -1; }
void Resize() { Resize(SizingHelper.NextSizingPrime(_count)); }