lib/libc/xdr/xdr_mem.c
/*
 * The procedure xdrmem_create initializes a stream descriptor for a
 * memory buffer.
 */
The procedure xdrmem_create initializes a stream descriptor for a
memory buffer.
The procedure xdrmem_create initializes a stream descriptor for a memory buffer .
void
xdrmem_create(XDR *xdrs, char *addr, u_int size, enum xdr_op op)
{
	xdrs->x_op = op;
	xdrs->x_ops = ((unsigned long)addr & (sizeof(int32_t) - 1))
	    ? &xdrmem_ops_unaligned : &xdrmem_ops_aligned;
	xdrs->x_private = xdrs->x_base = addr;
	xdrs->x_handy = size;
}
void xdrmem_create ( XDR * xdrs , char * addr , u_int size , enum xdr_op op ) { xdrs -> x_op = op ; xdrs -> x_ops = ( ( unsigned long ) addr & ( sizeof ( int32_t ) - 1 ) ) ? & xdrmem_ops_unaligned : & xdrmem_ops_aligned ; xdrs -> x_private = xdrs -> x_base = addr ; xdrs -> x_handy = size ; }
The procedure xdrmem_create initializes a stream descriptor for a
 memory buffer.
The procedure xdrmem_create initializes a stream descriptor for a memory buffer .