Dynamic Array Structure - 1.1 English

Soft-Decision FEC Integrated Block LogiCORE IP Product Guide (PG256)

Document ID
PG256
Release Date
2022-10-19
Version
1.1 English

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.

Table 1. C Model Dynamic Array Structure
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.