ONC+ Developer's Guide

Fixed-Length Opaque Data

Description

At times, fixed-length uninterpreted data needs to be passed among machines. This data is called opaque.

Declaration

Opaque data is declared as follows:

opaque identifier[n]; 

where the constant n is the (static) number of bytes necessary to contain the opaque data. The n bytes are followed by enough (0 to 3) residual zero bytes, r, to make the total byte count of the opaque object a multiple of four.

Encoding

The n bytes are followed by enough (0 to 3) residual zero bytes, r, to make the total byte count of the opaque object a multiple of four.

Fixed-Length Opaque

Graphic