private Container(ConcurrentUnifier <K, V> owner, int[] buckets, Entry[] entries, int nextFreeEntry) { _buckets = buckets; _entries = entries; _nextFreeEntry = nextFreeEntry; _owner = owner; }
public Container(ConcurrentUnifier <K, V> owner) { // Note: This could be done by calling Resize()'s logic but we cannot safely do that as this code path is reached // during class construction time and Resize() pulls in enough stuff that we get cyclic cctor warnings from the build. _buckets = new int[_initialCapacity]; for (int i = 0; i < _initialCapacity; i++) { _buckets[i] = -1; } _entries = new Entry[_initialCapacity]; _nextFreeEntry = 0; _owner = owner; }