xdr_inline Macro

Purpose

Returns a pointer to the buffer of a stream pointed to by the xdrs parameter.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>

long *x_inline ( xdrs,  len)
XDR *xdrs;
int len;

Description

The xdr_inline macro invokes the inline subroutine associated with the eXternal Data Representation (XDR) stream pointed to by the xdrs parameter. The subroutine returns a pointer to a contiguous piece of the stream's buffer, whose size is specified by the len parameter. The buffer can be used for any purpose, but it is not data-portable. The xdr_inline macro may return a value of null if it cannot return a buffer segment of the requested size.

Parameters

Item Description
xdrs Points to the XDR stream handle.
len Specifies the size, in bytes, of the internal buffer.

Return Values

This macro returns a pointer to a piece of the stream's buffer.