fromValue static method

lsl_processing_options_t fromValue(
  1. int value
)

Implementation

static lsl_processing_options_t fromValue(int value) => switch (value) {
  0 => proc_none,
  1 => proc_clocksync,
  2 => proc_dejitter,
  4 => proc_monotonize,
  8 => proc_threadsafe,
  15 => proc_ALL,
  2130706432 => _proc_maxval,
  _ => throw ArgumentError(
    'Unknown value for lsl_processing_options_t: $value',
  ),
};