Friday, August 29, 2014

Use an "unsigned char*" without unsafe block?

It's not possible to use pointers without unsafe code, event a cast would require unsafe. And you can't really cast that to anything else except another pointer type - such as int * or IntPtr.


You could wrap the pointer into a UnamangedMemoryStream at the code of some performance loss.


No comments:

Post a Comment