| Parameter | Description |
|---|---|
| length | The number of elements to allocate. |
| allocator | The allocator to use. |
| options | Options for allocation, such as whether to clear the memory. |
NativeArray<T> Returns the NativeArray that was created.
Create a NativeArray, using a provided allocator that implements IAllocator.
| Parameter | Description |
|---|---|
| length | The number of elements to allocate. |
| allocator | The AllocatorHandle to use. |
| options | Options for allocation, such as whether to clear the memory. |
NativeArray<T> Returns the NativeArray that was created.
Create a NativeArray, using a provided AllocatorHandle.
| Parameter | Description |
|---|---|
| array | The NativeArray to make a copy of. |
| allocator | The AllocatorHandle to use. |
NativeArray<T> Returns the NativeArray that was created.
Create a NativeArray from another NativeArray, using a provided AllocatorHandle.
| Parameter | Description |
|---|---|
| array | The managed array to make a copy of. |
| allocator | The AllocatorHandle to use. |
NativeArray<T> Returns the NativeArray that was created.
Create a NativeArray from a managed array, using a provided AllocatorHandle.
| Parameter | Description |
|---|---|
| array | The managed array to make a copy of. |
| allocator | The Allocator to use. |
NativeArray<T> Returns the NativeArray that was created.
Create a NativeArray from a managed array, using a provided Allocator.