/** * Encodes -- that is: serializes -- a XDR float into a XDR stream in * compliance to RFC 1832. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeFloat(value); }
/** * Encodes -- that is: serializes -- a XDR float into a XDR stream in * compliance to RFC 1832. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeFloat(value); }
/** * Encodes (aka "serializes") a vector of floats and writes it down * this XDR stream. * * @param value float vector to be encoded. * @param length of vector to write. This parameter is used as a sanity * check. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. * @throws IllegalArgumentException if the length of the vector does not * match the specified length. */ public final void xdrEncodeFloatFixedVector(float [] value, int length) throws OncRpcException, IOException { if ( value.length != length ) { throw(new IllegalArgumentException("array size does not match protocol specification")); } for ( int i = 0; i < length; i++ ) { xdrEncodeFloat(value[i]); } }
/** * Encodes (aka "serializes") a vector of floats and writes it down * this XDR stream. * * @param value float vector to be encoded. * @param length of vector to write. This parameter is used as a sanity * check. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. * @throws IllegalArgumentException if the length of the vector does not * match the specified length. */ public final void xdrEncodeFloatFixedVector(float [] value, int length) throws OncRpcException, IOException { if ( value.length != length ) { throw(new IllegalArgumentException("array size does not match protocol specification")); } for ( int i = 0; i < length; i++ ) { xdrEncodeFloat(value[i]); } }
/** * Encodes (aka "serializes") a vector of floats and writes it down * this XDR stream. * * @param value float vector to be encoded. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public final void xdrEncodeFloatVector(float [] value) throws OncRpcException, IOException { int size = value.length; xdrEncodeInt(size); for ( int i = 0; i < size; i++ ) { xdrEncodeFloat(value[i]); } }
/** * Encodes (aka "serializes") a vector of floats and writes it down * this XDR stream. * * @param value float vector to be encoded. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public final void xdrEncodeFloatVector(float [] value) throws OncRpcException, IOException { int size = value.length; xdrEncodeInt(size); for ( int i = 0; i < size; i++ ) { xdrEncodeFloat(value[i]); } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { metric_id.xdrEncode(xdr); xdr.xdrEncodeString(fmt); xdr.xdrEncodeFloat(f); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { metric_id.xdrEncode(xdr); xdr.xdrEncodeString(fmt); xdr.xdrEncodeFloat(f); }
case Ganglia_message_formats.metric_cpu_intr: case Ganglia_message_formats.metric_cpu_sintr: xdr.xdrEncodeFloat(f); break; case Ganglia_message_formats.metric_disk_total:
case Ganglia_message_formats.metric_cpu_intr: case Ganglia_message_formats.metric_cpu_sintr: xdr.xdrEncodeFloat(f); break; case Ganglia_message_formats.metric_disk_total: