M
msnews.microsoft.com
Hi,
I am trying to port some C code to C# but I am stuck on the following lines:
*((unsigned*)&b[3]) = (unsigned)a;
...
((void(*)())&b)();
where a and b are both arrays of type unsigned char (for which I used byte
arrays in C#). I know it needs to be within an unsafe block and use a fixed
statement but I am still not sure on the final details.
Thanks!
I am trying to port some C code to C# but I am stuck on the following lines:
*((unsigned*)&b[3]) = (unsigned)a;
...
((void(*)())&b)();
where a and b are both arrays of type unsigned char (for which I used byte
arrays in C#). I know it needs to be within an unsafe block and use a fixed
statement but I am still not sure on the final details.
Thanks!