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

xdrEncodeInt() public abstract method

Encodes (aka "serializes") a "XDR int" value and writes it down a XDR stream.
Encodes (aka "serializes") a "XDR int" value and writes it down a XDR stream. A XDR int is 32 bits wide -- the same width Java's "int" data type has. This method is one of the basic methods all other methods can rely on. Because it's so basic, derived classes have to implement it.
if an ONC/RPC error occurs. if an I/O error occurs.
public abstract xdrEncodeInt ( int value ) : void
value int The int value to be encoded.
return void
		public abstract void xdrEncodeInt(int value);

Usage Example

Exemplo n.º 1
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            xdr.xdrEncodeBoolean(this._setmode);
            if (this._setmode)
            { xdr.xdrEncodeInt(this._mode.Mode); }

            xdr.xdrEncodeBoolean(this._setuid);
            if (this._setuid)
            { xdr.xdrEncodeInt(this._uid); }

            xdr.xdrEncodeBoolean(this._setgid);
            if (this._setgid)
            { xdr.xdrEncodeInt(this._gid); }

            xdr.xdrEncodeBoolean(this._setsize);
            if (this._setsize)
            { xdr.xdrEncodeLong(this._size); }

            xdr.xdrEncodeBoolean(this._setatime != TimeHow.DONT_CHANGE);
            if (this._setatime != TimeHow.DONT_CHANGE)
            { this._atime.xdrEncode(xdr); }

            xdr.xdrEncodeBoolean(this._setmtime != TimeHow.DONT_CHANGE);
            if (this._setmtime != TimeHow.DONT_CHANGE)
            { this._mtime.xdrEncode(xdr); }
        }
All Usage Examples Of org.acplt.oncrpc.XdrEncodingStream::xdrEncodeInt