CppSharp
CppSharp copied to clipboard
Consider using System.Span
Cloning the whole native array is super fast or super slow depending on the size and maybe the consumer just wants to access a specific element, or perhaps just loop through the array.
Span also has a friendly ToArray() method if that's what the consumer really wants.