Skip to main content

pamoja_ladder_new

Function pamoja_ladder_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ladder_new( store: *mut PamojaStore, ) -> *mut PamojaLadder
Expand description

Creates a ladder with no rungs, buffering into a store.

§Arguments

  • store - the buffer to hold messages no rung would take, consumed by this call.

§Returns

A handle the caller must release with pamoja_ladder_free, or null if store is null.

§Safety

store must be a live handle from crate::sync that has not been freed or consumed. After this call it must not be used again, whatever the result.