What is marshalling and why do we need it?
I find it hard to believe that I cannot send an int
over the wire from C# to C and have to marshall it. Why can't C# just send the 32 bits over with a starting and terminating signal, telling C code that it has received an int
?
If there are any good tutorials or sites about why we need marshalling and how to use it, that would be great.