Skip to main content

pamoja_window_with_capacity

Function pamoja_window_with_capacity 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_window_with_capacity( capacity: usize, ) -> *mut PamojaWindow
Expand description

Creates an empty rolling window that keeps up to capacity readings.

§Returns

A handle the caller must release with pamoja_window_free, or null if capacity is not from 1 to PAMOJA_WINDOW_CAPACITY.

§Safety

A returned handle must be freed exactly once.