Table of Contents

Struct NativeMultiDictionary<TKey, TValue>

Namespace
Root
Assembly
SPZGameAssembly.dll
public struct NativeMultiDictionary<TKey, TValue> where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged

Type Parameters

TKey
TValue
Extension Methods

Constructors

NativeMultiDictionary(int, Allocator)

public NativeMultiDictionary(int initialCapacity, Allocator allocator)

Parameters

initialCapacity int
allocator Allocator

Properties

Map

public readonly NativeParallelMultiHashMap<TKey, TValue> Map { get; }

Property Value

NativeParallelMultiHashMap<TKey, TValue>

UniqueKeys

public readonly NativeHashSet<TKey> UniqueKeys { get; }

Property Value

NativeHashSet<TKey>

Methods

Add(TKey, TValue)

public void Add(TKey key, TValue value)

Parameters

key TKey
value TValue

Clear()

public void Clear()

Dispose()

public void Dispose()

Dispose(JobHandle)

public void Dispose(JobHandle handle)

Parameters

handle JobHandle

GetValueListForKey(TKey, Allocator)

public NativeList<TValue> GetValueListForKey(TKey key, Allocator allocator = Allocator.TempJob)

Parameters

key TKey
allocator Allocator

Returns

NativeList<TValue>

Remove(TKey)

public void Remove(TKey key)

Parameters

key TKey

UniqueKeysCount()

public int UniqueKeysCount()

Returns

int