Method Create
Create(T**, int)
Returns a new list of pointers.
Declaration
public static UnsafePtrList<T>* Create(T** ptr, int length)
Parameters
Type | Name | Description |
---|---|---|
T** | ptr | An existing pointer array to set as the internal buffer. |
int | length | The length. |
Returns
Type | Description |
---|---|
UnsafePtrList<T>* | A pointer to the new list. |
Create(int, AllocatorHandle, NativeArrayOptions)
Returns a new list of pointers.
Declaration
public static UnsafePtrList<T>* Create(int initialCapacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)
Parameters
Type | Name | Description |
---|---|---|
int | initialCapacity | The initial capacity of the list. |
AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
NativeArrayOptions | options | Whether newly allocated bytes should be zeroed out. |
Returns
Type | Description |
---|---|
UnsafePtrList<T>* | A pointer to the new list. |