I have a function definition in a native C++ file as follows:
void fun(byte* arg1, int* arg2, byte arg3) {}
So, from my C# file, I am calling the function as follows:
fun(ref byte[] arg1, ref int arg2, byte arg3);
Shouldn't pinvoke take care of this?