Skip to main content

pamoja_window_push

Function pamoja_window_push 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_window_push( window: *mut PamojaWindow, reading: f32, )
Expand description

Adds a reading, dropping the oldest once the window is full.

Passing null is a no-op.

ยงSafety

window must be a live handle from pamoja_window_new, or null.