Skip to main content

pamoja_ramp_new

Function pamoja_ramp_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ramp_new( start: f32, max_step: f32, ) -> *mut PamojaRamp
Expand description

Creates a rate limiter starting at start and moving at most max_step.

§Returns

A handle the caller must release with pamoja_ramp_free.

§Safety

The returned handle must be freed exactly once.