Skip to main content

pio_package_to_balanced_network

Function pio_package_to_balanced_network 

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

Materialize the balanced payload of a package handle as an owned network handle: the inverse of pio_package_from_balanced_network. Errors when the package holds a different model kind. The handle is built from the payload alone: it retains no source text, so a same format write is a fresh serialization rather than a byte-exact echo, and it carries no parse warnings. Free with pio_network_free.