/// <summary> /// Decodes -- that is: deserializes -- a XDR boolean from a XDR stream in /// compliance to RFC 1832. /// </summary> /// <remarks> /// Decodes -- that is: deserializes -- a XDR boolean from 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 xdrDecode(org.acplt.oncrpc.XdrDecodingStream xdr) { value = xdr.xdrDecodeBoolean(); }
/// <summary> /// Decodes -- that is: deserializes -- the result from a PMAP_DUMP remote /// procedure call from a XDR stream. /// </summary> /// <remarks> /// Decodes -- that is: deserializes -- the result from a PMAP_DUMP remote /// procedure call from 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 xdrDecode(org.acplt.oncrpc.XdrDecodingStream xdr) { // // Calling removeAllElements() instead of clear() preserves // pre-JDK2 compatibility. // servers.Clear(); // // Pull the server ident object off the xdr stream. Each object is // preceeded by a boolean value indicating whether there is still an // object in the pipe. // while (xdr.xdrDecodeBoolean()) { servers.Add(new org.acplt.oncrpc.OncRpcServerIdent(xdr)); } }