Skip to main content

pamoja_router_len

Function pamoja_router_len 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_router_len( router: *const PamojaRouter, ) -> usize
Expand description

Returns how many routes a table currently holds.

§Returns

The number of routes, or 0 if router is null.

§Safety

router must be a live handle from pamoja_router_new, or null.