/*
 * Automatically generated by jrpcgen 1.0.7 on 29.11.2012
 * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C#
 * See http://remotetea.sourceforge.net for details
 */
namespace NFSLibrary.Protocols.V4.RPC.Callback{
using org.acplt.oncrpc;

public class CB_COMPOUND4args : XdrAble {
    public utf8str_cs tag;
    public int minorversion;
    public int callback_ident;
    public nfs_cb_argop4 [] argarray;

    public CB_COMPOUND4args() {
    }

    public CB_COMPOUND4args(XdrDecodingStream xdr) {
        xdrDecode(xdr);
    }

    public void xdrEncode(XdrEncodingStream xdr) {
        xdr.xdrEncodeInt(minorversion);
        xdr.xdrEncodeInt(callback_ident);
        { int _size = argarray.Length; xdr.xdrEncodeInt(_size); for ( int _idx = 0; _idx < _size; ++_idx ) { argarray[_idx].xdrEncode(xdr); } }
    }

    public void xdrDecode(XdrDecodingStream xdr) {
        minorversion = xdr.xdrDecodeInt();
        callback_ident = xdr.xdrDecodeInt();
        { int _size = xdr.xdrDecodeInt(); argarray = new nfs_cb_argop4[_size]; for ( int _idx = 0; _idx < _size; ++_idx ) { argarray[_idx] = new nfs_cb_argop4(xdr); } }
    }

}
} // End of CB_COMPOUND4args.cs
