Class: OpenC3::TabbedPlotsConfig
- Defined in:
- ext/openc3/ext/tabbed_plots_config/tabbed_plots_config.c
Instance Method Summary collapse
-
#process_packet_in_each_data_object(data_objects, packet, packet_count) ⇒ Object
Optimization method to move each call to C code.
Instance Method Details
#process_packet_in_each_data_object(data_objects, packet, packet_count) ⇒ Object
Optimization method to move each call to C code
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'ext/openc3/ext/tabbed_plots_config/tabbed_plots_config.c', line 36
static VALUE process_packet_in_each_data_object(VALUE self, VALUE data_objects, VALUE packet, VALUE packet_count)
{
int index = 0;
long length = 0;
volatile VALUE data_object = Qnil;
length = RARRAY_LEN(data_objects);
if (length > 0)
{
for (index = 0; index < length; index++)
{
data_object = rb_ary_entry(data_objects, index);
rb_funcall(data_object, id_method_process_packet, 2, packet, packet_count);
}
}
return Qnil;
}
|