xdrmem_create Subroutine

Purpose

Initializes in local memory the XDR stream pointed to by the xdrs parameter.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>
void
xdrmem_create ( xdrs,  addr,  size,  op)
XDR *xdrs;
char *addr;
u_int size;
enum xdr_op op;

Description

The xdrmem_create subroutine initializes in local memory the eXternal Data Representation (XDR) stream pointed to by the xdrs parameter. The XDR stream data is written to or read from a chunk of memory at the location specified by the addr parameter.

Parameters

Item Description
xdrs Points to the XDR stream handle.
addr Points to the memory where the XDR stream data is written to or read from.
size Specifies the length of the memory in bytes.
op Specifies the XDR direction. The possible choices are XDR_ENCODE, XDR_DECODE, or XDR_FREE.