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
Ejemplo n.º 1
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     if (this._value != null)
     {
         xdr.xdrEncodeBoolean(true);
         this._value.xdrEncode(xdr);
     }
     else { xdr.xdrEncodeBoolean(false); };
 }
Ejemplo n.º 2
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     this._obj_attributes.xdrEncode(xdr);
     xdr.xdrEncodeInt(this._linkmax);
     xdr.xdrEncodeInt(this._name_max);
     xdr.xdrEncodeBoolean(this._no_trunc);
     xdr.xdrEncodeBoolean(this._chown_restricted);
     xdr.xdrEncodeBoolean(this._case_insensitive);
     xdr.xdrEncodeBoolean(this._case_preserving);
 }
Ejemplo n.º 3
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            if (this._entries != null)
            {
                xdr.xdrEncodeBoolean(true);
                this._entries.xdrEncode(xdr);
            }
            else { xdr.xdrEncodeBoolean(false); };

            xdr.xdrEncodeBoolean(this._eof);
        }
Ejemplo n.º 4
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeInt(ond_why);
     switch ( ond_why ) {
     case why_no_delegation4.WND4_CONTENTION:
         xdr.xdrEncodeBoolean(ond_server_will_push_deleg);
         break;
     case why_no_delegation4.WND4_RESOURCE:
         xdr.xdrEncodeBoolean(ond_server_will_signal_avail);
         break;
     default:
         break;
     }
 }
Ejemplo n.º 5
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     this._attributes.xdrEncode(xdr);
     xdr.xdrEncodeInt(this._count);
     xdr.xdrEncodeBoolean(this._eof);
     xdr.xdrEncodeDynamicOpaque(this._data);
 }
Ejemplo n.º 6
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            xdr.xdrEncodeBoolean(this._attributes_follow);

            if (this._attributes_follow)
            { this._attributes.xdrEncode(xdr); }
        }
Ejemplo n.º 7
0
 public void xdrEncode(XdrEncodingStream xdr) {
     csa_sequenceid.xdrEncode(xdr);
     csa_slotid.xdrEncode(xdr);
     csa_highest_slotid.xdrEncode(xdr);
     xdr.xdrEncodeBoolean(csa_cachethis);
     { int _size = csa_referring_call_lists.Length; xdr.xdrEncodeInt(_size); for ( int _idx = 0; _idx < _size; ++_idx ) { csa_referring_call_lists[_idx].xdrEncode(xdr); } }
 }
Ejemplo n.º 8
0
 public void xdrEncode(XdrEncodingStream xdr) {
     loca_length.xdrEncode(xdr);
     xdr.xdrEncodeBoolean(loca_reclaim);
     loca_stateid.xdrEncode(xdr);
     loca_last_write_offset.xdrEncode(xdr);
     loca_time_modify.xdrEncode(xdr);
     loca_layoutupdate.xdrEncode(xdr);
 }
Ejemplo n.º 9
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     this._obj.xdrEncode(xdr);
     this._new_attributes.xdrEncode(xdr);
     xdr.xdrEncodeBoolean(this._guardcheck);
     if (this._guardcheck)
     { this._guardctime.xdrEncode(xdr); }
 }
Ejemplo n.º 10
0
 public void xdrEncode(XdrEncodingStream xdr)
     {
     sa_sessionid.xdrEncode(xdr);
     sa_sequenceid.xdrEncode(xdr);
     sa_slotid.xdrEncode(xdr);
     sa_highest_slotid.xdrEncode(xdr);
     xdr.xdrEncodeBoolean(sa_cachethis);
 }
Ejemplo n.º 11
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeBoolean(new_lock_owner);
     if ( new_lock_owner == true ) {
         open_owner.xdrEncode(xdr);
     }
     else if ( new_lock_owner == false ) {
         lock_owner.xdrEncode(xdr);
     }
 }
Ejemplo n.º 12
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            xdr.xdrEncodeBoolean(this._handleexists);
            if (this._handleexists)
            { this._handle.xdrEncode(xdr); }

            this._attributes.xdrEncode(xdr);
            this._dir_wcc.xdrEncode(xdr);
        }
Ejemplo n.º 13
0
 public void xdrEncode(XdrEncodingStream xdr) {
     entry4 _this = this;
     do {
         _this.cookie.xdrEncode(xdr);
         _this.name.xdrEncode(xdr);
         _this.attrs.xdrEncode(xdr);
         _this = _this.nextentry;
         xdr.xdrEncodeBoolean(_this != null);
     } while ( _this != null );
 }
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeInt(gddrnf_status);
     switch ( gddrnf_status ) {
     case gddrnf4_status.GDD4_OK:
         gddrnf_resok4.xdrEncode(xdr);
         break;
     case gddrnf4_status.GDD4_UNAVAIL:
         xdr.xdrEncodeBoolean(gddrnf_will_signal_deleg_avail);
         break;
     }
 }
Ejemplo n.º 15
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); }
        }
Ejemplo n.º 16
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeInt(logr_status);
     switch ( logr_status ) {
     case nfsstat4.NFS4_OK:
         logr_resok4.xdrEncode(xdr);
         break;
     case nfsstat4.NFS4ERR_LAYOUTTRYLATER:
         xdr.xdrEncodeBoolean(logr_will_signal_layout_avail);
         break;
     default:
         break;
     }
 }
Ejemplo n.º 17
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            Entry _this = this;

            do
            {
                xdr.xdrEncodeInt(_this._fileid);

                _this._name.xdrEncode(xdr);
                _this._cookie.xdrEncode(xdr);
                _this = _this._nextentry;

                xdr.xdrEncodeBoolean(_this != null);
            } while (_this != null);
        }
Ejemplo n.º 18
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeBoolean(truncate);
     fh.xdrEncode(xdr);
 }
Ejemplo n.º 19
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     xdr.xdrEncodeBoolean(recall);
     permissions.xdrEncode(xdr);
 }
Ejemplo n.º 20
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeInt(clora_iomode);
     xdr.xdrEncodeBoolean(clora_changed);
     clora_recall.xdrEncode(xdr);
 }
Ejemplo n.º 21
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeBoolean(value);
 }
Ejemplo n.º 22
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     xdr.xdrEncodeBoolean(atomic);
     before.xdrEncode(xdr);
     after.xdrEncode(xdr);
 }
Ejemplo n.º 23
0
 public void xdrEncode(XdrEncodingStream xdr) {
     gdlr_cookieverf.xdrEncode(xdr);
     { int _size = gdlr_deviceid_list.Length; xdr.xdrEncodeInt(_size); for ( int _idx = 0; _idx < _size; ++_idx ) { gdlr_deviceid_list[_idx].xdrEncode(xdr); } }
     xdr.xdrEncodeBoolean(gdlr_eof);
 }
Ejemplo n.º 24
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeBoolean(ns_sizechanged);
     if ( ns_sizechanged == true ) {
         ns_size.xdrEncode(xdr);
     }
 }
Ejemplo n.º 25
0
 public void xdrEncode(XdrEncodingStream xdr) {
     ndc_deviceid.xdrEncode(xdr);
     xdr.xdrEncodeBoolean(ndc_immediate);
 }
Ejemplo n.º 26
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeBoolean(reclaim);
     offset.xdrEncode(xdr);
     length.xdrEncode(xdr);
     locker.xdrEncode(xdr);
 }
Ejemplo n.º 27
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeBoolean(no_newoffset);
     if ( no_newoffset == true ) {
         no_offset.xdrEncode(xdr);
     }
 }
Ejemplo n.º 28
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            FolderEntry _this = this;

            do
            {
                xdr.xdrEncodeLong(_this._fileid);
                _this._name.xdrEncode(xdr);
                _this._cookie.xdrEncode(xdr);
                _this._name_attributes.xdrEncode(xdr);
                _this._name_handle.xdrEncode(xdr);
                _this = _this._nextentry;
                xdr.xdrEncodeBoolean(_this != null);
            } while (_this != null);
        }
Ejemplo n.º 29
0
 public void xdrEncode(XdrEncodingStream xdr) {
     nad_new_entry.xdrEncode(xdr);
     { int _size = nad_new_entry_cookie.Length; xdr.xdrEncodeInt(_size); for ( int _idx = 0; _idx < _size; ++_idx ) { nad_new_entry_cookie[_idx].xdrEncode(xdr); } }
     { int _size = nad_prev_entry.Length; xdr.xdrEncodeInt(_size); for ( int _idx = 0; _idx < _size; ++_idx ) { nad_prev_entry[_idx].xdrEncode(xdr); } }
     xdr.xdrEncodeBoolean(nad_last_entry);
 }
Ejemplo n.º 30
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     xdr.xdrEncodeInt(bctsa_dir);
     xdr.xdrEncodeBoolean(bctsa_use_conn_in_rdma_mode);
 }