Struct NativeMultiHashMap<TKey, TValue>.ParallelWriter
Implements parallel writer. Use AsParallelWriter to obtain it from container.
Namespace: Unity.Collections
Syntax
public struct ParallelWriter
Properties
Capacity
The number of items that can fit in the container.
Declaration
public int Capacity { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of items that the container can hold before it resizes its internal storage. |
Remarks
Capacity specifies the number of items the container can currently hold. You can change Capacity to fit more or fewer items. Changing Capacity creates a new array of the specified size, copies the old array to the new one, and then deallocates the original array memory.
m_ThreadIndex
Declaration
public int m_ThreadIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Add(TKey, TValue)
Add an element with the specified key and value into the container. If the key already exist an ArgumentException will be thrown.
Declaration
public void Add(TKey key, TValue item)
Parameters
Type | Name | Description |
---|---|---|
TKey | key | The key of the element to add. |
TValue | item | The value of the element to add. |