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