ONC+ Developer's Guide

Fixed-Length Array

Fixed-length arrays of elements numbered 0 through n-1 are encoded by individually encoding the elements of the array in their natural order, 0 through n-1. Each element's size is a multiple of 4 bytes. Though all elements are of the same type, the elements might have different sizes. For example, in a fixed-length array of strings, all elements are of type string, yet each element varies in its length.


Declarations for fixed-length arrays of homogenous elements are in the following form.

type-name identifier[n];

Fixed-Length Array Encoding

Text describes graphic.