UnsafeParallelHashSet<T>.ParallelWriter
A parallel writer for an UnsafeParallelHashSet.
Read time 1 minuteLast updated 15 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public struct UnsafeParallelHashSet<T>.ParallelWriter
Remarks
Use UnsafeParallelHashSet<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. |