Ice.LogMessageSeqHelper 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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.5
//
//
//
// Generated from file `RemoteLogger.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
public final class LogMessageSeqHelper
{
public static void
write(OutputStream ostr, LogMessage[] v)
{
if(v == null)
{
ostr.writeSize(0);
}
else
{
ostr.writeSize(v.length);
for(int i0 = 0; i0 < v.length; i0++)
{
LogMessage.ice_write(ostr, v[i0]);
}
}
}
public static LogMessage[]
read(InputStream istr)
{
LogMessage[] v;
final int len0 = istr.readAndCheckSeqSize(11);
v = new LogMessage[len0];
for(int i0 = 0; i0 < len0; i0++)
{
v[i0] = LogMessage.ice_read(istr);
}
return v;
}
}