Method GetUniqueKeyArray
GetUniqueKeyArray<TKey, TValue>(UnsafeParallelMultiHashMap<TKey, TValue>, AllocatorHandle)
Returns an array populated with the unique keys from this multi hash map.
Declaration
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
Type | Name | Description |
---|---|---|
Unsafe |
container | The multi hash map. |
Allocator |
allocator | The allocator to use. |
Returns
Type | Description |
---|---|
(Native |
An array populated with the unique keys from this multi hash map. |
Type Parameters
Name | Description |
---|---|
TKey | The type of the keys. |
TValue | The type of the values. |
GetUniqueKeyArray<TKey, TValue>(NativeParallelMultiHashMap<TKey, TValue>, AllocatorHandle)
Returns an array populated with the unique keys from this multi hash map.
Declaration
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
Type | Name | Description |
---|---|---|
Native |
container | The multi hash map. |
Allocator |
allocator | The allocator to use. |
Returns
Type | Description |
---|---|
(Native |
An array populated with the unique keys from this multi hash map. |
Type Parameters
Name | Description |
---|---|
TKey | The type of the keys. |
TValue | The type of the values. |