ドキュメント

Unity Engine

Unity Engine

UnsafePtrList

Initializes and returns an instance of UnsafePtrList.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

UnsafePtrList(`0**, int)

Initializes and returns an instance of UnsafePtrList.
public UnsafePtrList(T** ptr, int length)

Parameters

An existing pointer array to set as the internal buffer.

length

The length.

UnsafePtrList(int, AllocatorHandle, NativeArrayOptions)

Initializes and returns an instance of UnsafePtrList.
public UnsafePtrList(int initialCapacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)

Parameters

initialCapacity

The initial capacity of the list.

The allocator to use.

Whether newly allocated bytes should be zeroed out.