当前位置: 首页>>代码示例>>C#>>正文


C# org.xdrEncodeBoolean方法代码示例

本文整理汇总了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);
			}
		}
开发者ID:mushuanli,项目名称:nekodrive,代码行数:37,代码来源:OncRpcDumpResult.cs

示例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);
		}
开发者ID:mushuanli,项目名称:nekodrive,代码行数:15,代码来源:XdrBoolean.cs


注:本文中的org.xdrEncodeBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。