Skip to main content

pio_dist_from_json

Function pio_dist_from_json 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_dist_from_json( text: *const c_char, errbuf: *mut c_char, errlen: usize, ) -> *mut PioDistNetwork
Expand description

Parse model JSON produced by pio_dist_to_json (or lifted from a .pio.json document’s model.multiconductor_network) back into an owned handle: the inverse of pio_dist_to_json. The rebuilt handle retains no source text, so a same format write is a fresh serialization. The handle retains the model JSON warnings. Returns NULL on error. Free with pio_dist_network_free.