示例#1
0
 public static global::GluonTest.ComplexStruct FromABI(ComplexStruct x)
 {
     return(new global::GluonTest.ComplexStruct
     {
         Name = MConv_.FromABI_string(x.Name),
         Sub = x.Sub,
         Obj = GluonObject.Of <global::GluonTest.DummyClass>(x.Obj),
         Del = ABI.GluonTest.D_827F05B3.Wrap(x.Del.Fn, x.Del.Ctx)
     });
 }
示例#2
0
        public static                            ComplexStruct[] ToABI_Array(global::GluonTest.ComplexStruct[] x)
        {
            if (x == null)
            {
                return(null);
            }
            var r = new ComplexStruct[x.Length];

            for (int i = 0; i < x.Length; i++)
            {
                r[i] = ToABI(x[i]);
            }
            return(r);
        }
示例#3
0
 public static StructMemberTest ToABI(global::GluonTest.StructMemberTest x)
 {
     return(new StructMemberTest
     {
         Boolean = x.Boolean,
         Primitive = x.Primitive,
         PrimitivePtr = x.PrimitivePtr,
         String = MConv_.ToABI_string(x.String),
         BlittableSt = x.BlittableSt,
         ComplexSt = ComplexStruct.ToABI(x.ComplexSt),
         Object = MConv_.ToABI_Object(x.Object == null ? IntPtr.Zero : ((global::GluonTest.DummyClass)x.Object).IPtr),
         NamedDelegate = ABI.GluonTest.D_BD6C0A4E.Unwrap(x.NamedDelegate),
         GenericDelegate = ABI.GluonTest.D_2945414F.Unwrap(x.GenericDelegate)
     });
 }
示例#4
0
 public static global::GluonTest.StructMemberTest FromABI(StructMemberTest x)
 {
     return(new global::GluonTest.StructMemberTest
     {
         Boolean = x.Boolean,
         Primitive = x.Primitive,
         PrimitivePtr = x.PrimitivePtr,
         String = MConv_.FromABI_string(x.String),
         BlittableSt = x.BlittableSt,
         ComplexSt = ComplexStruct.FromABI(x.ComplexSt),
         Object = GluonObject.Of <global::GluonTest.DummyClass>(x.Object),
         NamedDelegate = ABI.GluonTest.D_BD6C0A4E.Wrap(x.NamedDelegate.Fn, x.NamedDelegate.Ctx),
         GenericDelegate = ABI.GluonTest.D_2945414F.Wrap(x.GenericDelegate.Fn, x.GenericDelegate.Ctx)
     });
 }