public void opByteS_async(Test.AMD_MyClass_opByteS cb, Test.ByteS p1, Test.ByteS p2, Ice.Current current) { Test.ByteS p3 = new Test.ByteS(); for (int i = 0; i < p1.Count; i++) { p3.Add(p1[p1.Count - (i + 1)]); } Test.ByteS r = new Test.ByteS(); r.AddRange(p1); r.AddRange(p2); cb.ice_response(r, p3); }
public void opByteS_async(Test.AMD_MyClass_opByteS cb, byte[] p1, byte[] p2, Ice.Current current) { byte[] p3 = new byte[p1.Length]; for (int i = 0; i < p1.Length; i++) { p3[i] = p1[p1.Length - (i + 1)]; } byte[] r = new byte[p1.Length + p2.Length]; Array.Copy(p1, r, p1.Length); Array.Copy(p2, 0, r, p1.Length, p2.Length); cb.ice_response(r, p3); }