예제 #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;
        }
예제 #2
0
 void Resize()
 {
     Resize(SizingHelper.NextSizingPrime(_count));
 }