Method ToNativeArray
ToNativeArray<T>(AllocatorHandle)
Returns a new NativeArray copy of this stream's data.
Declaration
public NativeArray<T> ToNativeArray<T>(AllocatorManager.AllocatorHandle allocator) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
Returns
| Type | Description |
|---|---|
| NativeArray<T> | A new NativeArray copy of this stream's data. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of values in the array. |
Remarks
The length of the array will equal the count of this stream.
Each buffer of this stream is copied to the array, one after the other.