ドキュメント

Unity Engine

Unity Engine

UnsafePtrList<T>.ReadOnly

A read only for an UnsafePtrList\<T\>.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public struct UnsafePtrList<T>.ReadOnly

Remarks

Use UnsafePtrList<T>.AsReadOnly to create a read only for a list.

Fields

Value

Description

LengthThe number of elements.
PtrThe internal buffer of the list.

Properties

Property

Description

IsCreatedWhether this list has been allocated (and not yet deallocated).
IsEmptyWhether the list is empty.

Methods

Method

Description

ContainsReturns true if the list contains at least one occurrence of a specific pointer.
IndexOfReturns the index of the first occurrence of a specific pointer in the list.