Skip to main content

parser_parse

Function parser_parse 

Source
pub unsafe fn parser_parse(
    parser: Pin<&mut parser>,
    json: &[u8],
    realloc_if_needed: bool,
) -> i32
Expand description

Parse a document, optionally copying it into padded storage.

ยงSafety

With realloc_if_needed = false, the allocation must provide 64 initialized readable bytes beyond json for the duration of the call.