![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
A record of the subset of channels of a multiport that have present inputs. More...
#include <lf_token.h>
Data Fields | |
| size_t | capacity |
| Maximum number of channels that can be tracked before overflow. | |
| size_t * | present_channels |
| Array of channel indices that have present inputs. | |
| int | size |
| Number of present channels or status indicator. | |
A record of the subset of channels of a multiport that have present inputs.
This struct is used to efficiently track which channels of a multiport have present inputs, particularly useful for sparse I/O operations where only a small subset of channels are active.
| size_t lf_sparse_io_record_t::capacity |
Maximum number of channels that can be tracked before overflow.
When the number of present channels exceeds this capacity, the record is considered overflowed and size is set to -1.
| size_t* lf_sparse_io_record_t::present_channels |
Array of channel indices that have present inputs.
Stores the indices of channels that have present inputs. Only valid when size > 0. The array size is determined by capacity.
| int lf_sparse_io_record_t::size |
Number of present channels or status indicator.
-1 indicates the record has overflowed (too many present channels), 0 indicates no channels are present, positive values indicate the number of present channels.