Method CreateNativeParallelMultiHashMap
CreateNativeParallelMultiHashMap<TKey, TValue, U>(int, ref U)
Create a NativeParallelMultiHashMap from a managed array, using a provided Allocator.
Declaration
public static NativeParallelMultiHashMap<TKey, TValue> CreateNativeParallelMultiHashMap<TKey, TValue, U>(int length, ref U allocator) where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged where U : unmanaged, AllocatorManager.IAllocator
Parameters
Type | Name | Description |
---|---|---|
int | length | The desired capacity of the NativeParallelMultiHashMap. |
U | allocator | The Allocator to use. |
Returns
Type | Description |
---|---|
NativeParallelMultiHashMap<TKey, TValue> | Returns the NativeParallelMultiHashMap that was created. |
Type Parameters
Name | Description |
---|---|
TKey | The type of the keys. |
TValue | The type of the values. |
U | The type of allocator. |