docs.unity3d.com
    目次を表示する/隠す

    Struct UnsafeParallelHashSet<T>.ParallelWriter

    A parallel writer for an UnsafeParallelHashSet.

    Namespace: Unity.Collections.LowLevel.Unsafe
    Syntax
    [NativeContainerIsAtomicWriteOnly]
    public struct ParallelWriter
    Remarks

    Use AsParallelWriter() to create a parallel writer for a set.

    Properties

    Capacity

    The number of values that fit in the current allocation.

    Declaration
    public readonly int Capacity { get; }
    Property Value
    Type Description
    Int32

    The number of values that fit in the current allocation.

    Methods

    Add(T)

    Adds a new value (unless it is already present).

    Declaration
    public bool Add(T item)
    Parameters
    Type Name Description
    T item

    The value to add.

    Returns
    Type Description
    Boolean

    True if the value is not already present.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)