pub(crate) extern "C" fn handle_value(
obs_index: c_int,
variable: *mut readstat_variable_t,
value: readstat_value_t,
ctx: *mut c_void,
) -> c_intExpand description
FFI callback that extracts a single cell value during row parsing.
Called for every cell in every row. Appends the value directly into the
appropriate typed Arrow ColumnBuilder in ReadStatData::builders,
eliminating intermediate String allocations for string columns.
Tracks row completion for progress reporting.
ยงSafety
variablemust be a valid pointer to areadstat_variable_tproduced by the C parser.valuemust be a validreadstat_value_tproduced by the C parser.ctxmust be a valid pointer to aReadStatDatainstance that outlives this call.- This function must only be called by the
ReadStatC library as a registered callback.