xdr_sizeof(3N) xdr_sizeof(3N)
NAME
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(3N), xdr_admin(3N), xdr_complex(3N), xdr_create(3N),
xdr_simple(3N)
Copyright 1994 Novell, Inc. Page 1