NativeHashMap<TKey, TValue>
struct in Unity.Collections · Unity.Collections
Not in Unity's public API, or in an assembly the coverage doesn't count.
In Tassix
An unordered key-value map in native memory, with the job safety system's checks.
Constructors 1
NativeHashMap(int initialCapacity, AllocatorManager.AllocatorHandle allocator)Properties 5
int Capacity { get; set; }readonly int Count { get; }readonly bool IsCreated { get; }readonly bool IsEmpty { get; }TValue this[TKey key] { get; set; }Methods 13
void Add(TKey key, TValue item)ReadOnly AsReadOnly()void Clear()bool ContainsKey(TKey key)Enumerator GetEnumerator()NativeArray<TKey> GetKeyArray(AllocatorManager.AllocatorHandle allocator)NativeKeyValueArrays<TKey, TValue> GetKeyValueArrays(AllocatorManager.AllocatorHandle allocator)NativeArray<TValue> GetValueArray(AllocatorManager.AllocatorHandle allocator)bool Remove(TKey key)void TrimExcess()bool TryAdd(TKey key, TValue item)bool TryGetValue(TKey key, out TValue item)