docs.unity.cn
    Show / Hide Table of Contents

    Struct UnsafeList<T>.ParallelReader

    Obsolete. Use UnsafeList<T>.ReadOnly instead.

    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*

    Extension Methods

    UnsafeListExtensions.IndexOf<T, U>(UnsafeList<T>.ParallelReader, U)
    UnsafeListExtensions.Contains<T, U>(UnsafeList<T>.ParallelReader, U)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, May 11, 2023