Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create

Returns a new list of pointers.
Read time 1 minuteLast updated 14 days ago

Definition

Create(`0**, int)

Returns a new list of pointers.
public static UnsafePtrList<T>* Create(T** ptr, int length)

Parameters

An existing pointer array to set as the internal buffer.

length

The length.

Returns

Type

Description

UnsafePtrList<T>*A pointer to the new list.

Create(int, AllocatorHandle, NativeArrayOptions)

Returns a new list of pointers.
public static UnsafePtrList<T>* Create(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.

Returns

Type

Description

UnsafePtrList<T>*A pointer to the new list.