GetUniqueKeyArray
Returns an array populated with the unique keys from this multi hash map.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
GetUniqueKeyArray<T, U>(UnsafeParallelMultiHashMap<T, T>, AllocatorHandle)
Returns an array populated with the unique keys from this multi hash map.
public static (NativeArray<TKey>, int) GetUniqueKeyArray<TKey, TValue>(this UnsafeParallelMultiHashMap<TKey, TValue> container, AllocatorManager.AllocatorHandle allocator) where TKey : unmanaged, IEquatable<TKey>, IComparable<TKey> where TValue : unmanaged
Parameters
The multi hash map.
The allocator to use.
Returns
Type | Description |
|---|---|
| ValueTuple<NativeArray<T>, int> | An array populated with the unique keys from this multi hash map. |
GetUniqueKeyArray<T, U>(NativeParallelMultiHashMap<T, T>, AllocatorHandle)
Returns an array populated with the unique keys from this multi hash map.
public static (NativeArray<TKey>, int) GetUniqueKeyArray<TKey, TValue>(this NativeParallelMultiHashMap<TKey, TValue> container, AllocatorManager.AllocatorHandle allocator) where TKey : unmanaged, IEquatable<TKey>, IComparable<TKey> where TValue : unmanaged
Parameters
The multi hash map.
The allocator to use.
Returns
Type | Description |
|---|---|
| ValueTuple<NativeArray<T>, int> | An array populated with the unique keys from this multi hash map. |