---
name: "xdr_encode_opaque_fixed"
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_encode_opaque_fixed"
---

# xdr\_encode\_opaque\_fixed(9)

Encode fixed length opaque data

## NAME

xdr\_encode\_opaque\_fixed - Encode fixed length opaque data

## SYNOPSIS

**\_\_be32 \* xdr\_encode\_opaque\_fixed(\_\_be32 \*** *p***, const void \*** *ptr***, unsigned int** *nbytes***);**

## ARGUMENTS

*p*

pointer to current position in XDR buffer.

*ptr*

pointer to data to encode (or NULL)

*nbytes*

size of data.

## DESCRIPTION

Copy the array of data of length nbytes at ptr to the XDR buffer at position p, then align to the next 32-bit boundary by padding with zero bytes (see RFC1832).

## NOTE

if ptr is NULL, only the padding is performed.

Returns the updated current XDR buffer position

## COPYRIGHT
