---
name: "xdr_commit_encode"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/xdr_commit_encode"
---

# xdr\_commit\_encode(9)

Ensure all data is written to buffer

## NAME

xdr\_commit\_encode - Ensure all data is written to buffer

## SYNOPSIS

**void xdr\_commit\_encode(struct xdr\_stream \*** *xdr***);**

## ARGUMENTS

*xdr*

pointer to xdr\_stream

## DESCRIPTION

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.

## COPYRIGHT
