/// <summary> /// Encodes -- that is: serializes -- the result of a PMAP_DUMP operationg /// into a XDR stream. /// </summary> /// <remarks> /// Encodes -- that is: serializes -- the result of a PMAP_DUMP operationg /// into a XDR stream. /// </remarks> /// <exception cref="OncRpcException">if an ONC/RPC error occurs.</exception> /// <exception cref="System.IO.IOException">if an I/O error occurs.</exception> /// <exception cref="org.acplt.oncrpc.OncRpcException"></exception> public virtual void xdrEncode(org.acplt.oncrpc.XdrEncodingStream xdr) { if (servers == null) { xdr.xdrEncodeBoolean(false); } else { // // Now encode all server ident objects into the xdr stream. Each // object is preceeded by a boolan, which indicates to the receiver // whether an object follows. After the last object has been // encoded the receiver will find a boolean false in the stream. // int count = servers.Count; int index = 0; while (count > 0) { xdr.xdrEncodeBoolean(true); ((org.acplt.oncrpc.XdrAble)servers[index]).xdrEncode(xdr); index++; count--; } xdr.xdrEncodeBoolean(false); } }
/// <summary> /// Encodes -- that is: serializes -- a XDR boolean into a XDR stream in /// compliance to RFC 1832. /// </summary> /// <remarks> /// Encodes -- that is: serializes -- a XDR boolean into a XDR stream in /// compliance to RFC 1832. /// </remarks> /// <exception cref="OncRpcException">if an ONC/RPC error occurs.</exception> /// <exception cref="System.IO.IOException">if an I/O error occurs.</exception> /// <exception cref="org.acplt.oncrpc.OncRpcException"></exception> public virtual void xdrEncode(org.acplt.oncrpc.XdrEncodingStream xdr) { xdr.xdrEncodeBoolean(value); }