Version: 2022.2
public ReadOnly<U> Reinterpret ();

返回

ReadOnly<U> 相同数组的别名,但重新解释为目标类型。

描述

将数组重新解释为具有不同的数据类型(类型双关)。

The sizes of T and U must match. Reinterpret allows you to create a view into memory that has a different element size and length compared to the source array. For example, an array of float triples can be reinterpreted as an array of 3d vector structs.