예제 #1
0
 public void opShortIntLongS_async(Test.AMD_MyClass_opShortIntLongS cb, Test.ShortS p1, Test.IntS p2,
                                   Test.LongS p3, Ice.Current current)
 {
     Test.ShortS p4 = p1;
     Test.IntS   p5 = new Test.IntS();
     for (int i = 0; i < p2.Count; i++)
     {
         p5.Add(p2[p2.Count - (i + 1)]);
     }
     Test.LongS p6 = new Test.LongS();
     p6.AddRange(p3);
     p6.AddRange(p3);
     cb.ice_response(p3, p4, p5, p6);
 }
예제 #2
0
    public void opShortIntLongS_async(Test.AMD_MyClass_opShortIntLongS cb, short[] p1, int[] p2,
                                      long[] p3, Ice.Current current)
    {
        short[] p4 = p1;

        int[] p5 = new int[p2.Length];
        for (int i = 0; i < p2.Length; i++)
        {
            p5[i] = p2[p2.Length - (i + 1)];
        }

        long[] p6 = new long[p3.Length + p3.Length];
        Array.Copy(p3, p6, p3.Length);
        Array.Copy(p3, 0, p6, p3.Length, p3.Length);
        cb.ice_response(p3, p4, p5, p6);
    }