Documentation

Unity Engine

Unity Engine

CreateNativeParallelMultiHashMap<TKey, TValue, U>(int, ref U)

Create a NativeParallelMultiHashMap from a managed array, using a provided Allocator.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

CreateNativeParallelMultiHashMap<T, U, V>(int, T)

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

length

The desired capacity of the NativeParallelMultiHashMap.

allocator

T
The Allocator to use.

Returns

Type

Description

NativeParallelMultiHashMap<T, T>Returns the NativeParallelMultiHashMap that was created.