Method Reinterpret
Reinterpret<T, U>(NativeArray<T>)
Returns the reinterpretation of this array into another kind of NativeArray. See Array reinterpretation.
Declaration
public static NativeArray<U> Reinterpret<T, U>(this NativeArray<T> array) where T : unmanaged where U : unmanaged
Parameters
Type | Name | Description |
---|---|---|
NativeArray<T> | array | The array to reinterpret. |
Returns
Type | Description |
---|---|
NativeArray<U> | The reinterpretation of this array into another kind of NativeArray. |
Type Parameters
Name | Description |
---|---|
T | Type of elements in the array. |
U | Type of elements in the reinterpreted array. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if this array's capacity cannot be evenly divided by |