#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_depletion_update(
depletion: *mut PamojaDepletion,
level: f32,
out_samples: *mut u32,
) -> boolExpand description
Records a level and estimates how many samples remain before the threshold.
§Returns
true if an estimate is available, having written it to out_samples;
false if the level is steady or rising, if no rate is known yet, or if
depletion is null.
§Safety
depletion must be a live handle from pamoja_depletion_new, or null, and
out_samples must point to a writable uint32_t or be null.