{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct UnsafeParallelHashSet<T> | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct UnsafeParallelHashSet<T>

    An unordered, expandable set of unique values.

    Implements
    INativeDisposable
    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).

    Extension Methods

    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList128Bytes<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList32Bytes<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList4096Bytes<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList512Bytes<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, FixedList64Bytes<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeHashSet<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeHashSet<T>.ReadOnly)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeList<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeParallelHashSet<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, UnsafeParallelHashSet<T>.ReadOnly)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeArray<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeHashSet<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeHashSet<T>.ReadOnly)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeList<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeParallelHashSet<T>)
    HashSetExtensions.ExceptWith<T>(ref UnsafeParallelHashSet<T>, NativeParallelHashSet<T>.ReadOnly)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, FixedList128Bytes<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, FixedList32Bytes<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, FixedList4096Bytes<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, FixedList512Bytes<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, FixedList64Bytes<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, UnsafeHashSet<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, UnsafeHashSet<T>.ReadOnly)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, UnsafeList<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, UnsafeParallelHashSet<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, UnsafeParallelHashSet<T>.ReadOnly)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, NativeArray<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, NativeHashSet<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, NativeHashSet<T>.ReadOnly)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, NativeList<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, NativeParallelHashSet<T>)
    HashSetExtensions.IntersectWith<T>(ref UnsafeParallelHashSet<T>, NativeParallelHashSet<T>.ReadOnly)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, FixedList128Bytes<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, FixedList32Bytes<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, FixedList4096Bytes<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, FixedList512Bytes<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, FixedList64Bytes<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, UnsafeHashSet<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, UnsafeHashSet<T>.ReadOnly)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, UnsafeList<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, UnsafeParallelHashSet<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, UnsafeParallelHashSet<T>.ReadOnly)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, NativeArray<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, NativeHashSet<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, NativeHashSet<T>.ReadOnly)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, NativeList<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, NativeParallelHashSet<T>)
    HashSetExtensions.UnionWith<T>(ref UnsafeParallelHashSet<T>, NativeParallelHashSet<T>.ReadOnly)
    Extensions.ToArray<T>(UnsafeParallelHashSet<T>)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)