/* The procedure xdrmem_create initializes a stream descriptor for a memory buffer.  */
void xdrmem_create(XDR *xdrs, const char *addr, unsigned int size, enum xdr_op op)
/* The procedure xdrmem_create initializes a stream descriptor for a memory buffer.  */
void xdrmem_create(XDR *xdrs, const char *addr, unsigned int size, enum xdr_op op)
{
    xdrs->x_op = op;
    xdrs->x_ops = &xdrmem_ops;
    xdrs->x_private = xdrs->x_base = (char*)addr;
    xdrs->x_handy = size;
}