Exemple #1
0
 public static TestStruct ToABI(global::GluonTest.TestStruct x)
 {
     return(new TestStruct
     {
         a = x.a,
         b = x.b,
         c = x.c,
         d = x.d,
         e = MConv_.ToABI_string(x.e),
         f = MConv_.ToABI_int(x.f)
     });
 }
Exemple #2
0
        public static global::GluonTest.TestStruct[] FromABI_Array(TestStruct[] x)
        {
            if (x == null)
            {
                return(null);
            }
            var r = new global::GluonTest.TestStruct[x.Length];

            for (int i = 0; i < x.Length; i++)
            {
                r[i] = FromABI(x[i]);
            }
            return(r);
        }