CppSharp icon indicating copy to clipboard operation
CppSharp copied to clipboard

Consider using System.Span

Open josetr opened this issue 5 years ago • 0 comments

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.

josetr avatar Oct 25 '20 17:10 josetr