I’m trying to benchmark native vs managed code using a Bubble Sort algorithm to test memory access.
I’m trying to figure out how to return an array (or pass in an array as a reference) in an interop routine. According to documentation I find, however, that’s not supported.
I went digging through the source code to find native methods that return CLR arrays – but I couldn’t come up with anything to use as an example.
Anyone have any ideas how this is done?