本文整理汇总了C#中org.xdrDecodeBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# org.xdrDecodeBoolean方法的具体用法?C# org.xdrDecodeBoolean怎么用?C# org.xdrDecodeBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org
的用法示例。
在下文中一共展示了org.xdrDecodeBoolean方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: xdrDecode
/// <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();
}
示例2: xdrDecode
/// <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));
}
}