PreviousNext

Arrays

IDL supports the following types of arrays:

· Fixed: The size of the array is defined in the IDL and all of the data in the array is transferred during the call.

· Conformant: The size of the array is determined at runtime. At least one bound of the array is determined at runtime by a value referenced through a min_is, max_is, or size_is attribute. All of the data in the array is transferred during the call.

· Varying: The size of the array is defined in the IDL but the part of its contents transferred during the call is determined by the values of fields or parameters named in one or more data limit attributes. The data limit attributes are first_is, length_is, and last_is.

An array can also be both conformant and varying (or, as it is sometimes termed, open). In this case, the size of the array is determined at runtime by the value of the field or parameter referenced by the min_is, max_is or size_is attribute. The part of its contents transferred during the call is determined by the values of fields or parameters named in one or more of the data limit attributes.

An IDL array is declared via an array_declarator construct whose syntax is as follows:

array_identifier array_bounds_declarator ...

An array_bounds_declarator must be specified for each dimension of an array.

More:

Array Bounds

Conformance in Dimensions Other Than the First

Array Attributes

Rules for Using Arrays