xdr_commit_encode9
Ensure all data is written to buffer
Usage
void xdr_commit_encode(struct xdr_stream * xdr);
Arguments
xdr
pointer to xdr_stream
Overview
We handle encoding across page boundaries by giving the caller a temporary location to write to, then later copying the data into place; xdr_commit_encode does that copying.
Normally the caller doesn't need to call this directly, as the following xdr_reserve_space will do it. But an explicit call may be required at the end of encoding, or any other time when the xdr_buf data might be read.
Releases
2 releases since Debian 8 (Jessie); the text changed 1 time.