#[unsafe(no_mangle)]pub unsafe extern "C" fn pio_parse_bytes(
bytes: *const u8,
len: usize,
format: *const c_char,
errbuf: *mut c_char,
errlen: usize,
) -> *mut PioNetworkExpand description
Parse len bytes of in-memory case data of the named format into a
network handle. Accepts every pio_parse_str format name plus pwb:
PowerWorld binary has no text form, so before this call the only way to
reach that reader was pio_parse_file, which means staging a temporary
file. bytes need not be NUL-terminated and may contain interior NULs;
text formats are decoded as UTF-8 and fail with a message if they are not.
Read fidelity warnings attach to the handle (pio_warnings). Returns
NULL on error and writes the message into errbuf. Free the handle with
pio_network_free.