User guide

Charnwood Dynamics Ltd. Coda cx1 User Guide – Reference IV-2
CX1 USER GUIDE - COMPLETE.doc 26/04/04
138/162
There is no more than one header entry for each data type, and some of the data types may
not be represented. The header entries are not necessarily in order of data type, but the
order does define the order of arrays in the Data section.
The number of HEADER_ENTRY structures is specified by a 2-byte integer which precedes
the first structure:
HEADER {uint16 NumHeaderEntries;
HEADER_ENTRY[NumHeaderEntries]{uint16{uint8 DataArrayType;
uint4 DataTypeSize;
uint4 DataDimensionality;}
uint16 NumDataArrays;}}
Data
This section contains a variable number of arrays of variable length. There are one or more
arrays for each data type listed in the Header section. The number of elements in each array
is specified by a 16-bit integer preceding the data. The size of each array element is
determined by its data type - see the list below. Note that an array element may itself be an
array - such as the [x,y,z] coordinate data of a marker position array.
Bitwise data (i.e. marker in-view flags and event data) is stored in a whole number of 16-bit
words; unreferenced bits in the last word are set to 0.
DATA { DATA_ENTRY[]{ uint16 NumElements;
DATA_TYPE DataArray[NumElements]; }}