reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
lf_sparse_io_record_t Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ capacity

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.

◆ present_channels

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.

◆ size

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.


The documentation for this struct was generated from the following file:
  • /Users/runner/work/reactor-c/reactor-c/include/core/lf_token.h