Ice.ObjectProxySeqHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice-compat Show documentation
Show all versions of ice-compat Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
The newest version!
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.10
//
//
//
// Generated from file `BuiltinSequences.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
public final class ObjectProxySeqHelper
{
public static void
write(OutputStream ostr, Ice.ObjectPrx[] v)
{
if(v == null)
{
ostr.writeSize(0);
}
else
{
ostr.writeSize(v.length);
for(int i0 = 0; i0 < v.length; i0++)
{
ostr.writeProxy(v[i0]);
}
}
}
public static Ice.ObjectPrx[]
read(InputStream istr)
{
Ice.ObjectPrx[] v;
final int len0 = istr.readAndCheckSeqSize(2);
v = new Ice.ObjectPrx[len0];
for(int i0 = 0; i0 < len0; i0++)
{
v[i0] = istr.readProxy();
}
return v;
}
}