Constructor UnsafePtrList
UnsafePtrList(T**, int)
Initializes and returns an instance of UnsafePtrList.
Declaration
public UnsafePtrList(T** ptr, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| T** | ptr | An existing pointer array to set as the internal buffer. |
| int | length | The length. |
UnsafePtrList(int, AllocatorHandle, NativeArrayOptions)
Initializes and returns an instance of UnsafePtrList.
Declaration
public UnsafePtrList(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. |