According to its implementation, it seems that we don’t need “ref” at all.
Replacing “ref” by “in” will be improve API and also preserves code level, and assembly level backwards compatibility.
NativeArray is actually a value type. In that particular function it’s passed to store the output results, so the array will be modified, which goes against the purpose of “in” which is supposed to pass immutable references.