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

xdrEncodeLong() public method

Encodes (aka "serializes") a long (which is called a "hyper" in XDR babble and is 64 bits wide) and write it down this XDR stream.
Encodes (aka "serializes") a long (which is called a "hyper" in XDR babble and is 64 bits wide) and write it down this XDR stream.
if an ONC/RPC error occurs. if an I/O error occurs.
public xdrEncodeLong ( long value ) : void
value long Long value to encode.
return void
		public void xdrEncodeLong(long value)
		{
			//
			// Just encode the long (which is called a "hyper" in XDR babble) as
			// two ints in network order, that is: big endian with the high int
			// comming first.
			//
			xdrEncodeInt((int)((value) >> 32) & unchecked((int)(0xffffffff)));
			xdrEncodeInt((int)(value & unchecked((int)(0xffffffff))));
		}

Usage Example

Exemplo n.º 1
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     xdr.xdrEncodeInt((int)this._type);
     xdr.xdrEncodeInt(this._mode.Mode);
     xdr.xdrEncodeInt(this._nlink);
     xdr.xdrEncodeInt(this._uid);
     xdr.xdrEncodeInt(this._gid);
     xdr.xdrEncodeLong(this._size);
     xdr.xdrEncodeLong(this._used);
     this._rdev.xdrEncode(xdr);
     xdr.xdrEncodeLong(this._fsid);
     xdr.xdrEncodeLong(this._fileid);
     this._atime.xdrEncode(xdr);
     this._mtime.xdrEncode(xdr);
     this._ctime.xdrEncode(xdr);
 }
All Usage Examples Of org.acplt.oncrpc.XdrEncodingStream::xdrEncodeLong