IceMX.MetricsMapHelper 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.3
//
//
//
// Generated from file `Metrics.ice'
//
// Warning: do not edit this file.
//
//
//
package IceMX;
public final class MetricsMapHelper
{
public static void
write(Ice.OutputStream ostr, Metrics[] v)
{
if(v == null)
{
ostr.writeSize(0);
}
else
{
ostr.writeSize(v.length);
for(int i0 = 0; i0 < v.length; i0++)
{
ostr.writeValue(v[i0]);
}
}
}
public static Metrics[]
read(Ice.InputStream istr)
{
Metrics[] v;
final int len0 = istr.readAndCheckSeqSize(1);
v = new Metrics[len0];
for(int i0 = 0; i0 < len0; i0++)
{
istr.readValue(new IceInternal.SequencePatcher(v, Metrics.class, i0));
}
return v;
}
}