Variable-Length Opaque Data
XDR also defines variable-length uninterpreted data as opaque. Variable-length (counted) opaque data is defined as a sequence of n arbitrary bytes, numbered 0 through n-1. Opaque data is encoded as an unsigned integer and followed by the n bytes of the sequence.
Byte m of the sequence always precedes byte m+1, and byte 0 of the sequence always follows the sequence length (count). Enough (0 to 3) residual 0 bytes, r, are added to make the total byte count a multiple of 4.
opaque identifier<m>;
opaque identifier<>;
The constant m denotes an upper bound for the number of bytes that the sequence can contain. If m is not specified, as in the second declaration, it is assumed to be (2**32) - 1, which is the maximum length. The constant m would normally be found in a protocol specification. See the Variable-Length Opaque figure (Figure 1).
