Beispiel #1
0
                public static void MarshalIn(System.IntPtr ptr, martin.Test.Complex arg)
                {
                    Complex_Struct obj = new Complex_Struct();

                    obj._owner = 0x972f3813;
                    obj.foo    = Array_Foo_Helper.ManagedToNative(arg.foo);
                    obj.str    = XobotOS.Runtime.MarshalGlue.String_Helper.ManagedToNative(arg.str);
                    Marshal.StructureToPtr(obj, ptr, false);
                }
Beispiel #2
0
 internal static void bar(martin.Test.Foo[] arg)
 {
     System.IntPtr arg_ptr = System.IntPtr.Zero;
     try
     {
         arg_ptr = Array_Foo_Helper.ManagedToNative(arg);
         libxobotos_Test_bar(arg_ptr);
     }
     finally
     {
         Array_Foo_Helper.FreeManagedPtr(arg_ptr);
     }
 }