Marshaling – what is it and why do we need it?

后端 未结 6 1774
抹茶落季
抹茶落季 2020-12-12 12:14

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 c

6条回答
  •  情深已故
    2020-12-12 12:35

    As Vinko says in the comments, you can pass primitive types without any special marshalling. These are called "blittable" types and include types like byte, short, int, long, etc and their unsigned counterparts.

    This page contains the list of blittable and non-blittable types.

提交回复
热议问题