Example #1
0
 public NativeHashMapDebuggerTypeProxy(NativeHashMap <TKey, TValue> target)
 {
     m_Target = target;
 }
Example #2
0
 public void AllocateAndAutoDispose <T1, T2>(ref NativeHashMap <T1, T2> native, int capacity, Allocator allocator) where T1 : struct, IEquatable <T1> where T2 : struct
 {
     native = new NativeHashMap <T1, T2>(capacity, allocator);
     EnqueueNative(new NativeHashMapWrapper <T1, T2>(native), allocator);
 }
Example #3
0
 /// <summary>
 /// Constructs a new container with the specified initial capacity and type of memory allocation.
 /// </summary>
 /// <param name="capacity">The initial capacity of the container. If the list grows larger than its capacity,
 /// the internal array is copied to a new, larger array.</param>
 /// <param name="allocator">A member of the
 /// [Unity.Collections.Allocator](https://docs.unity3d.com/ScriptReference/Unity.Collections.Allocator.html) enumeration.</param>
 public NativeHashSet(int capacity, Allocator allocator)
 {
     m_Data = new NativeHashMap <T, bool>(capacity, allocator);
 }
Example #4
0
 public NativeHashMapWrapper(NativeHashMap <T1, T2> hashMap)
 {
     this.hashMap = hashMap;
 }