Blittable Vs. Non-Blittable in IL

Posted by Michael Covelli on Stack Overflow See other posts from Stack Overflow or by Michael Covelli
Published on 2010-03-21T23:03:26Z Indexed on 2010/03/21 23:11 UTC
Read the original article Hit count: 139

Filed under:
|
|
|
|

I'm trying to make sure that my Managed to Unmanaged calls are optimized. Is there a quick way to see by looking at the IL if any non-blittable types have accidentally gotten into my pinvoke calls?

I tried just writing two unmanaged functions in a .dll, one that uses bool (which is non-blittable) and one that uses ints. But I didn't see anything different when looking at the IL to let me know that it was doing something extra to marshal the bool.

© Stack Overflow or respective owner

Related posts about c#

Related posts about managed