#NativeArray.Reinterpret() into an existing array?

1 messages · Page 1 of 1 (latest)

left snow
#

I have a NativeArray<Name> that I want to .Reinterpret() into being a NativeArray<FixedString32Bytes>(). It works, but returns a new NativeArray. What I want is for the Reinterpret to put its results into an existing array I specify. Is it possible?
I can for-loop through the array it returns, and individually copy over the elements into where I want them, but that seems inefficient.

tiny locust
left snow
#

Oh wild, thanks

tiny locust
#

modifying reinterpreted array will affect original exactly same way