1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>xdr_encode_opaque_fixed</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs"><link rel="up" href="ch01s05.html" title="SUN RPC subsystem"><link rel="prev" href="ch01s05.html" title="SUN RPC subsystem"><link rel="next" href="API-xdr-encode-opaque.html" title="xdr_encode_opaque"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">xdr_encode_opaque_fixed</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s05.html">Prev</a> </td><th width="60%" align="center">SUN RPC subsystem</th><td width="20%" align="right"> <a accesskey="n" href="API-xdr-encode-opaque.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-xdr-encode-opaque-fixed"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdr_encode_opaque_fixed — 2 Encode fixed length opaque data 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">__be32 * <b class="fsfunc">xdr_encode_opaque_fixed </b>(</code></td><td>__be32 * <var class="pdparam">p</var>, </td></tr><tr><td> </td><td>const void * <var class="pdparam">ptr</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">nbytes</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1096863564"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>p</code></em></span></dt><dd><p> 4 pointer to current position in XDR buffer. 5 </p></dd><dt><span class="term"><em class="parameter"><code>ptr</code></em></span></dt><dd><p> 6 pointer to data to encode (or NULL) 7 </p></dd><dt><span class="term"><em class="parameter"><code>nbytes</code></em></span></dt><dd><p> 8 size of data. 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1096867228"></a><h2>Description</h2><p> 10 Copy the array of data of length nbytes at ptr to the XDR buffer 11 at position p, then align to the next 32-bit boundary by padding 12 with zero bytes (see RFC1832). 13</p></div><div class="refsect1"><a name="idp1096867996"></a><h2>Note</h2><p> 14 if ptr is NULL, only the padding is performed. 15 </p><p> 16 17 Returns the updated current XDR buffer position 18</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s05.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-xdr-encode-opaque.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SUN RPC subsystem </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">xdr_encode_opaque</span></td></tr></table></div></body></html> 19