docs.unity.cn
    Show / Hide Table of Contents

    Struct UnsafeList<T>.ParallelReader

    A parallel reader for an UnsafeList<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*

    Extension Methods

    UnsafeListExtensions.IndexOf<T, U>(UnsafeList<T>.ParallelReader, U)
    UnsafeListExtensions.Contains<T, U>(UnsafeList<T>.ParallelReader, U)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, August 3, 2022
    Terms of use