public NativeMultiValueMapDebugView(NativeMultiValueMap <TKey, TValue> map)
 {
     _map = map._map;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NativeMultiValueMap{TKey, TValue}"/> struct.
 /// </summary>
 /// <param name="initialSlots">The initial amount of slots for store values.</param>
 /// <param name="allocator">The allocator.</param>
 /// <exception cref="ArgumentException">If the initialCapacity is negative or zero, or the allocator is no in cache.</exception>
 public NativeMultiValueMap(int initialSlots, Allocator allocator)
 {
     _map   = new NativeMap <TKey, NativeList <TValue> >(initialSlots, allocator);
     _count = 0;
 }