Skip to main content

pio_collection_parse

Function pio_collection_parse 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_collection_parse( raw: *const PioCollection, selection: *const c_char, selection_len: usize, options: *const PioParseOptions, report: *mut *mut PioString, error: *mut *mut PioError, ) -> *mut PioModule
Expand description

Parse one JSON selection (at most 1 MiB) into an owned typed module. Optional options have the same semantics as pio_parse_with_options, but cannot acquire host files. If report is non-NULL, success also returns an owned JSON string containing observed dependencies and the incomplete flag. Release it with pio_string_release. False incomplete is not a completeness certificate.

ยงSafety

Pointers and handles must satisfy the crate-level safety requirements. Non-NULL options and report must be valid for their declared types. Report is cleared before work; its prior value must already have been released.