NativeParallelHashSet<T>.ParallelWriter
A parallel writer for a NativeParallelHashSet.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public struct NativeParallelHashSet<T>.ParallelWriter
Remarks
Use NativeParallelHashSet<T>.AsParallelWriter to create a parallel writer for a set.
Properties
Property | Description |
|---|---|
| Capacity | The number of values that fit in the current allocation. |
Methods
Method | Description |
|---|---|
| Add | Adds a new item. If the item is already present in the collection, this method should throw, but currently does not! Instead, it returns false without replacing said item. |
| TryAdd | Adds a new value. If the item is already present, this method returns false without replacing said item. |