xdr_sizeof(3rpc)
xdr_sizeof --
library routine for external data representation
Synopsis
cc [options] file -lnsl
#include <rpc/xdr.h>
unsigned long xdr_sizeof(xdrproc_t func, void *data);
Description
XDR library routines allow C programmers to describe arbitrary
data structures in a machine-independent way.
Protocols such as remote procedure calls (RPC) use these routines
to describe the format of the data.
xdr_sizeof returns the number of bytes required to encode data.
Routine
This routine returns the number of bytes required to encode data
using the XDR filter function func, excluding potential overhead
such as RPC headers or record markers.
Zero is returned on error.
The information returned by xdr_sizeof
might be used to select between transport protocols,
to determine the buffer size for various lower levels of RPC client and
server creation routines, or to allocate storage when XDR is used outside
the RPC subsystem.
References
rpc(3rpc),
xdr_admin(3rpc),
xdr_complex(3rpc),
xdr_create(3rpc),
xdr_simple(3rpc)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004