Skip to main content

pamoja_store_memory

Function pamoja_store_memory 

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

Creates a buffer held in memory.

§Arguments

  • capacity - the most records to hold, or 0 for no bound. A full store refuses the next append rather than dropping anything, so a record is never lost without the caller being told.

§Returns

A handle the caller must release with pamoja_store_free or hand to a call that consumes it.