/*
 * 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{
using org.acplt.oncrpc;

public class openflag4 : XdrAble {
    public int opentype;
    public createhow4 how;

    public openflag4() {
    }

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

    public void xdrEncode(XdrEncodingStream xdr) {
        xdr.xdrEncodeInt(opentype);
        switch ( opentype ) {
        case opentype4.OPEN4_CREATE:
            how.xdrEncode(xdr);
            break;
        default:
            break;
        }
    }

    public void xdrDecode(XdrDecodingStream xdr) {
        opentype = xdr.xdrDecodeInt();
        switch ( opentype ) {
        case opentype4.OPEN4_CREATE:
            how = new createhow4(xdr);
            break;
        default:
            break;
        }
    }

}
} // End of openflag4.cs
