Struct UnsafeParallelHashSet<T>
An unordered, expandable set of unique values.
Implements
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: solution.dll
Syntax
public struct UnsafeParallelHashSet<T> : INativeDisposable where T : unmanaged, IEquatable<T>
Type Parameters
Name | Description |
---|---|
T | The type of the values. |
Constructors
Name | Description |
---|---|
UnsafeParallelHashSet(int, AllocatorHandle) | Initializes and returns an instance of UnsafeParallelHashSet. |
Properties
Name | Description |
---|---|
Capacity | The number of values that fit in the current allocation. |
IsCreated | Whether this set has been allocated (and not yet deallocated). |
IsEmpty | Whether this set is empty. |
Methods
Name | Description |
---|---|
Add(T) | Adds a new value (unless it is already present). |
AsParallelWriter() | Returns a parallel writer. |
AsReadOnly() | Returns a readonly version of this UnsafeParallelHashSet instance. |
Clear() | Removes all values. |
Contains(T) | Returns true if a particular value is present. |
Count() | Returns the current number of values in this set. |
Dispose() | Releases all resources (memory). |
Dispose(JobHandle) | Creates and schedules a job that will dispose this set. |
GetEnumerator() | Returns an enumerator over the values of this set. |
Remove(T) | Removes a particular value. |
ToNativeArray(AllocatorHandle) | Returns an array with a copy of this set's values (in no particular order). |