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

    Struct UnsafePtrList<T>.ParallelReader

    A parallel reader for an UnsafePtrList<T>.

    Namespace: Unity.Collections.LowLevel.Unsafe
    Syntax
    public struct ParallelReader
    Remarks

    Use AsParallelReader() to create a parallel reader for a list.

    Fields

    Length

    The number of elements.

    Declaration
    public readonly int Length
    Field Value
    Type Description
    Int32

    Ptr

    The internal buffer of the list.

    Declaration
    [NativeDisableUnsafePtrRestriction]
    public readonly T**Ptr
    Field Value
    Type Description
    T**

    Methods

    Contains(Void*)

    Returns true if the list contains at least one occurrence of a specific pointer.

    Declaration
    public bool Contains(void *ptr)
    Parameters
    Type Name Description
    Void* ptr

    The pointer to search for in the list.

    Returns
    Type Description
    Boolean

    True if the list contains at least one occurrence of the pointer.

    IndexOf(Void*)

    Returns the index of the first occurrence of a specific pointer in the list.

    Declaration
    public int IndexOf(void *ptr)
    Parameters
    Type Name Description
    Void* ptr

    The pointer to search for in the list.

    Returns
    Type Description
    Int32

    The index of the first occurrence of the pointer. Returns -1 if it is not found in the list.

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