Struct UnsafeParallelHashMap<TKey, TValue>
An unordered, expandable associative array.
Implements
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: Unity.Collections.dll
Syntax
public struct UnsafeParallelHashMap<TKey, TValue> : INativeDisposable where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged
Type Parameters
| Name | Description |
|---|---|
| TKey | The type of the keys. |
| TValue | The type of the values. |
Constructors
UnsafeParallelHashMap(int, AllocatorHandle)
Initializes and returns an instance of UnsafeParallelHashMap.
Declaration
public UnsafeParallelHashMap(int capacity, AllocatorManager.AllocatorHandle allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| int | capacity | The number of key-value pairs that should fit in the initial allocation. |
| AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
Fields
MaxCapacity
The maximum number of elements this type of container can hold.
Declaration
public const int MaxCapacity = 1073741823
Field Value
| Type | Description |
|---|---|