public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeString(application); xdr.xdrEncodeString(client_library); key.xdrEncode(xdr); value_hash.xdrEncode(xdr); xdr.xdrEncodeInt(ttl_sec); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeString(type); xdr.xdrEncodeString(name); xdr.xdrEncodeString(units); xdr.xdrEncodeInt(slope); xdr.xdrEncodeInt(tmax); xdr.xdrEncodeInt(dmax); { int $size = metadata.length; xdr.xdrEncodeInt($size); for (int $idx = 0; $idx < $size; ++$idx) { metadata[$idx].xdrEncode(xdr); } } }
/** * Encodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server * side. * * @param xdr An XDR encoding stream * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public final void xdrEncodeVerf(XdrEncodingStream xdr) throws OncRpcException, IOException { if (shorthandVerf != null) { // // Encode AUTH_SHORT shorthand verifier (credential). // xdr.xdrEncodeInt(OncRpcAuthType.ONCRPC_AUTH_SHORT); xdr.xdrEncodeDynamicOpaque(shorthandVerf); } else { // // Encode an AUTH_NONE verifier with zero length, if no shorthand // verifier (credential) has been supplied by now. // xdr.xdrEncodeInt(OncRpcAuthType.ONCRPC_AUTH_NONE); xdr.xdrEncodeInt(0); } }
/** * Encodes -- that is: serializes -- an object into a XDR stream in compliance to RFC 1832. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { // // For historial reasons (read: "for dumb and pure idiotic reasons") // and compatibility with the ACPLT/KS C++ Communication Library we // encode/decode the variant part *first* before encoding/decoding // the common part. // xdr.xdrEncodeInt(getXdrTypeCode()); xdrEncodeVariant(xdr); xdrEncodeCommon(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { ffl_stripe_unit.xdrEncode(xdr); { int $size = ffl_mirrors.length; xdr.xdrEncodeInt($size); for (int $idx = 0; $idx < $size; ++$idx) { ffl_mirrors[$idx].xdrEncode(xdr); } } ffl_flags4.xdrEncode(xdr); ffl_stats_collect_hint.xdrEncode(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeInt(gdir_status); switch (gdir_status) { case nfsstat.NFS_OK: gdir_resok4.xdrEncode(xdr); break; case nfsstat.NFSERR_TOOSMALL: gdir_mincount.xdrEncode(xdr); break; default: break; } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeInt(spa_how); switch (spa_how) { case state_protect_how4.SP4_NONE: break; case state_protect_how4.SP4_MACH_CRED: spa_mach_ops.xdrEncode(xdr); break; case state_protect_how4.SP4_SSV: spa_ssv_parms.xdrEncode(xdr); break; } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { metric_id.xdrEncode(xdr); xdr.xdrEncodeString(fmt); xdr.xdrEncodeShort(us); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeOpaque(value, mount_prot.FHSIZE2); }
/** * Encodes -- that is: serializes -- a XDR char into a XDR stream in compliance to RFC 1832. * * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeByte((byte) value); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeInt(status); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeDynamicOpaque(data); }