org.acplt.oncrpc.XdrEncodingStream.xdrEncodeBoolean C# (CSharp) Method

xdrEncodeBoolean() public method

Encodes (aka "serializes") a boolean and writes it down this XDR stream.
Encodes (aka "serializes") a boolean and writes it down this XDR stream.
if an ONC/RPC error occurs. if an I/O error occurs.
public xdrEncodeBoolean ( bool value ) : void
value bool Boolean value to be encoded.
return void
		public void xdrEncodeBoolean(bool value)
		{
			xdrEncodeInt(value ? 1 : 0);
		}

Usage Example

Exemplo n.º 1
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     if (this._value != null)
     {
         xdr.xdrEncodeBoolean(true);
         this._value.xdrEncode(xdr);
     }
     else { xdr.xdrEncodeBoolean(false); };
 }
All Usage Examples Of org.acplt.oncrpc.XdrEncodingStream::xdrEncodeBoolean