xdrEncodeOpaque() публичный Метод

Encodes (aka "serializes") a XDR opaque value, which is represented by a vector of byte values.
Encodes (aka "serializes") a XDR opaque value, which is represented by a vector of byte values. Only the opaque value is encoded, but no length indication is preceeding the opaque value, so the receiver has to know how long the opaque value will be. The encoded data is always padded to be a multiple of four. If the length of the given byte vector is not a multiple of four, zero bytes will be used for padding.
if an ONC/RPC error occurs. if an I/O error occurs.
public xdrEncodeOpaque ( Array value ) : void
value Array /// The opaque value to be encoded in the form of a series of /// bytes. ///
Результат void
Пример #1
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     this._file_wcc.xdrEncode(xdr);
     xdr.xdrEncodeInt(this._count);
     xdr.xdrEncodeInt((int)this._committed);
     xdr.xdrEncodeOpaque(this._verf, NFSv3Protocol.NFS3_WRITEVERFSIZE);
 }
 public void xdrEncode(XdrEncodingStream xdr)
 {
     this._dir.xdrEncode(xdr);
     this._cookie.xdrEncode(xdr);
     xdr.xdrEncodeOpaque(this._cookieverf, NFSv3Protocol.NFS3_COOKIEVERFSIZE);
     xdr.xdrEncodeInt(this._dircount);
     xdr.xdrEncodeInt(this._maxcount);
 }
Пример #3
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     switch (this._version)
     {
         case 2:
             xdr.xdrEncodeOpaque(this._value, V2.RPC.NFSv2Protocol.FHSIZE);
             break;
         case 3:
             xdr.xdrEncodeDynamicOpaque(this._value);
             break;
     }
 }
Пример #4
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            xdr.xdrEncodeInt((int)this._mode);

            switch (this._mode)
            {
                case MakeFileModes.UNCHECKED:
                case MakeFileModes.GUARDED:
                    this._obj_attributes.xdrEncode(xdr);
                    break;
                case MakeFileModes.EXCLUSIVE:
                    xdr.xdrEncodeOpaque(this._verf, NFSv3Protocol.NFS3_CREATEVERFSIZE);
                    break;
            }
        }
Пример #5
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     this._file_wcc.xdrEncode(xdr);
     xdr.xdrEncodeOpaque(this._verf, NFSv3Protocol.NFS3_WRITEVERFSIZE);
 }
 public void xdrEncode(XdrEncodingStream xdr)
 {
     this._dir_attributes.xdrEncode(xdr);
     xdr.xdrEncodeOpaque(this._cookieverf, NFSv3Protocol.NFS3_COOKIEVERFSIZE);
     this._reply.xdrEncode(xdr);
 }
Пример #7
0
 public void xdrEncode(XdrEncodingStream xdr) {
     xdr.xdrEncodeOpaque(value, NFSv4Protocol.NFS4_DEVICEID4_SIZE);
 }
Пример #8
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     seqid.xdrEncode(xdr);
     xdr.xdrEncodeOpaque(other, 12);
 }
Пример #9
0
 public void xdrEncode(XdrEncodingStream xdr)
 {
     xdr.xdrEncodeOpaque(value, NFSv4Protocol.NFS4_SESSIONID_SIZE);
 }