Am I doing this right?
I get a pointer to a native array and need to copy to a managed array. Use memcpy() with a pin_ptr.
unsigned char* pArray; uns
That works, but isn't safe. You'll blow the garbage collected heap to smithereens when you get arrayCount wrong. Very hard to diagnose.
Marshal::Copy() is safe and just as fast.