The xip_array_<type>
structure is used to specify a multi-dimensional
array of data with type <type>. The content is summarized in the following
table.
Field Name | Type | Description |
---|---|---|
data | xip_<type>* | Pointer to array of data |
data_size | size_t | Current number of elements in the data array |
data_capacity | size_t | Max number of elements in the data array |
dim | size_t* | Pointer to dimension array |
dim_size | size_t | Current number of elements in the dimension array, dim |
dim_capacity | size_t | Max number of elements in dim array |
owner | unsigned int | Ownership control. A value of 0 indicates that the structure and associated memory (for the data and dim fields) is allocated and owned by the xip_array_<type>_* functions, in which case the model can automatically resize arrays as required. Any other value indicates that the memory is owned by the user, and the model must report an error if an array is of insufficient capacity. |