Example #1
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     claim = xdr.xdrDecodeInt();
     switch ( claim ) {
     case open_claim_type4.CLAIM_NULL:
         file = new component4(xdr);
         break;
     case open_claim_type4.CLAIM_PREVIOUS:
         delegate_type = xdr.xdrDecodeInt();
         break;
     case open_claim_type4.CLAIM_DELEGATE_CUR:
         delegate_cur_info = new open_claim_delegate_cur4(xdr);
         break;
     case open_claim_type4.CLAIM_DELEGATE_PREV:
         file_delegate_prev = new component4(xdr);
         break;
     case open_claim_type4.CLAIM_FH:
         break;
     case open_claim_type4.CLAIM_DELEG_PREV_FH:
         break;
     case open_claim_type4.CLAIM_DELEG_CUR_FH:
         oc_delegate_stateid = new stateid4(xdr);
         break;
     }
 }
Example #2
0
        public void xdrDecode(XdrDecodingStream xdr)
        {
            claim = xdr.xdrDecodeInt();
            switch (claim)
            {
                case open_claim_type4.CLAIM_NULL:
                    file = new component4(xdr);
                    break;

                case open_claim_type4.CLAIM_PREVIOUS:
                    delegate_type = xdr.xdrDecodeInt();
                    break;

                case open_claim_type4.CLAIM_DELEGATE_CUR:
                    delegate_cur_info = new open_claim_delegate_cur4(xdr);
                    break;

                case open_claim_type4.CLAIM_DELEGATE_PREV:
                    file_delegate_prev = new component4(xdr);
                    break;

                case open_claim_type4.CLAIM_FH:
                    break;

                case open_claim_type4.CLAIM_DELEG_PREV_FH:
                    break;

                case open_claim_type4.CLAIM_DELEG_CUR_FH:
                    oc_delegate_stateid = new stateid4(xdr);
                    break;
            }
        }