Skip to main content

pio_from_json

Function pio_from_json 

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

Parse model JSON produced by pio_to_json (or lifted from a .pio.json document’s model.balanced_network) back into an owned handle, the inverse of pio_to_json and the function form of parsing under the powerio-json token. Returns NULL on error. Free with pio_network_free.