Function auditable_info::json_from_slice

source ยท
pub fn json_from_slice(
    input_binary: &[u8],
    decompressed_json_size_limit: usize
) -> Result<String, Error>
Expand description

The input slice should contain the entire binary. This function is useful if you have already loaded the binary to memory, e.g. via memory-mapping.

Returns the decompressed audit data. This is useful if you want to forward the data somewhere instead of parsing it to Rust data structures.

If you want to obtain the Zlib-compressed data instead, use the auditable-extract crate directly.