Fixed-array parts

A fixed-array denotes a portion of the phrase that is made up of a fixed number of repetitions of a particular form.

fixed-array (count,component)
  • count is an integer constant.
  • component is any phrase part, even a complex phrase part.

A field cannot be inside of a fixed-array. Large fixed-arrays may be inefficient unless component is any. For example, if the protocol calls for a block of 1000 digits, consider using fixed-array (1,000, any) even though fixed-array (1,000, digit) is more exact.

This table shows examples of fixed-array parts:

Fixed-array part Description
fixed-array(1024, any) A 1K block of arbitrary (that is, potentially binary) data.
fixed-array(5, digit) A 5-digit number.
fixed-array(10, begin variable-array(not(<nl>)); <nl>; end) 10 newline-terminated lines.