These routines deal with the creation of XDR streams. XDR streams have to be created before any data can be translated into XDR format. Note that any buffers passed to the XDR routines must be properly aligned. A macro that invokes the destroy routine associated with the XDR stream, xdrs .
Destruction usually involves freeing private data structures associated with the stream.
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 location addr whose length is no less than size bytes long. When a stream's output buffer is full, writeit is called. Similarly, when a stream's input buffer is empty, readit is called. Therefore there are additional bytes in the stream to provide record boundary information.