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

    Struct UnsafeList<T>.ReadOnly

    A read only for an UnsafeList<T>.

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

    Use AsReadOnly() to create a read only 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>.ReadOnly, U)
    UnsafeListExtensions.Contains<T, U>(UnsafeList<T>.ReadOnly, U)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)