Пример #1
0
                public static void MarshalOut(System.IntPtr ptr, martin.Test.Blittable arg)
                {
                    Blittable_Struct obj = (Blittable_Struct)Marshal.PtrToStructure(ptr, typeof(Blittable_Struct
                                                                                                ));

                    arg.hello = obj.hello;
                }
Пример #2
0
                public static void MarshalIn(System.IntPtr ptr, martin.Test.Blittable arg)
                {
                    Blittable_Struct obj = new Blittable_Struct();

                    obj._owner = 0x972f3813;
                    obj.hello  = arg.hello;
                    Marshal.StructureToPtr(obj, ptr, false);
                }
Пример #3
0
				public static void MarshalIn(System.IntPtr ptr, martin.Test.Blittable arg)
				{
					Blittable_Struct obj = new Blittable_Struct();
					obj._owner = 0x972f3813;
					obj.hello = arg.hello;
					Marshal.StructureToPtr(obj, ptr, false);
				}