XDR library routines allow C programmers to describe arbitrary
data structures in a machine-independent fashion. Protocols such
as remote procedure calls (RPC) use these routines to describe
the format of the data. These routines deal with the creation of
XDR streams. XDR streams have to be created before any data can
be translated into XDR format. See rpc(3NSL) for the definition
of the XDR , CLIENT , and SVCXPRT data structures. Note that any
buffers passed to the XDR routines must be properly aligned. It
is suggested that malloc(3C) be used to allocate these buffers
or that the programmer insure that the buffer address is
divisible evenly by four. A macro that invokes the destroy
routine associated with the XDR stream, xdrs . Destruction
usually involves freeing private data structures associated with
the stream. Using xdrs after invoking xdr_destroy() is
undefined. This routine initializes the XDR stream object
pointed to by xdrs . The stream's data is written to, or read
from, a chunk of memory at locati