public SveltoDictionaryGeneric(uint size)
 {
     _valuesInfo = new FasterDictionaryNode <TKey> [size];
     _values     = default;
     _values.Alloc(size);
     DBC.Common.Check.Ensure(_values.capacity == _valuesInfo.Length, "invalid buffer size");
     _buckets = new int[HashHelpers.GetPrime((int)size)];
 }
 public SveltoDictionary(uint size, IBufferStrategy <TValue> allocationStrategy)
 {
     _valuesInfo = new FasterDictionaryNode <TKey> [size];
     _values     = allocationStrategy;
     _values.Alloc(size);
     DBC.Common.Check.Ensure(_values.capacity == _valuesInfo.Length, "invalid buffer size");
     _buckets = new int[HashHelpers.GetPrime((int)size)];
 }
 public FasterDictionary()
 {
     _valuesInfo = new FasterDictionaryNode <TKey> [1];
     _values     = new TValue[1];
     _buckets    = new int[3];
 }
 public FasterDictionary(uint size)
 {
     _valuesInfo = new FasterDictionaryNode <TKey> [size];
     _values     = new TValue[size];
     _buckets    = new int[HashHelpers.GetPrime((int)size)];
 }