Method AsNativeArray
AsNativeArray<T>(T[], out Handle)
Returns NativeArray<T> view on managed array
with handle to prevents from deallocation.
Declaration
public static NativeArray<T> AsNativeArray<T>(this T[] array, out Handle handle) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | array | Array to view. |
| Handle | handle | A handle that prevents the |
Returns
| Type | Description |
|---|---|
| NativeArray<T> | NativeArray<T> view on managed |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the elements. |