[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 1

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

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.

Related Information

List of XDR Programming References.

eXternal Data Representation (XDR) Overview for Programming andUnderstanding XDR Non-Filter Primitives in AIX 5L Version 5.2 Communications Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]