GetUniqueKeyArray
Returns an array populated with the unique keys from this multi hash map.
阅读时间1 分钟最后更新于 1 个月前
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. |