[ Previous | Next | Table of Contents | Index | Library Home |
Legal |
Search ]
Technical Reference: Communications, Volume 1
Translates between
variable-length arrays and their corresponding external
representations.
C Library
(libc.a)
#include <rpc/xdr.h>
xdr_array (xdrs, arrp, sizep, maxsize, elsize, elproc)
XDR * xdrs;
char ** arrp;
u_int * sizep;
u_int maxsize;
u_int elsize;
xdrproc_t elproc;
The xdr_array
subroutine is a filter primitive that translates between variable-length
arrays and their corresponding external representations. This
subroutine is called to encode or decode each element of the array.
xdrs
| Points to the eXternal Data Representation (XDR) stream handle.
|
arrp
| Specifies the address of the pointer to the array. If the
arrp parameter is null when the array is being deserialized, the
XDR program allocates an array of the appropriate size and sets the parameter
to that array.
|
sizep
| Specifies the address of the element count of the array. The
element count cannot exceed the value for the maxsize
parameter.
|
maxsize
| Specifies the maximum number of array elements.
|
elsize
| Specifies the byte size of each of the array elements.
|
elproc
| Translates between the C form of the array elements and their external
representations. This parameter is an XDR filter.
|
Upon successful completion, this
subroutine returns a value of 1. If unsuccessful, it returns a value of
0.
This subroutine is part of Base
Operating System (BOS) Runtime.
List of XDR Programming References.
eXternal Data
Representation (XDR) Overview for Programming and Understanding XDR Library Filter Primitives in AIX 5L
Version 5.1 Communications Programming Concepts.
[ Previous | Next | Table of Contents | Index |
Library Home |
Legal |
Search ]