Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 void Resize()
 {
     Resize(SizingHelper.NextSizingPrime(_count));
 }