Blittable types have an identical presentation in memory for both Managed & Unmanaged environments, and can be directly shared by them. Hence, it does not require special attention from the interop marshaler.
• System.Byte • System.SByte • System.Int16
• System.UInt16 • System.Int32 • System.UInt32
• System.Int64 • System.IntPtr • System.UIntPtr
Additionally, one-dimensional arrays of these types as well as complex types containing only fields of these types are blittable. The following are some commonly-used non-blittable types in the .NET framework:
System.Boolean, System.Char, System.Object, System.String
No comments :
Post a Comment
What are your thoughts on this post? Did you like it?