Skip to main content

check_json

Function check_json 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn check_json(ptr: *const u8, len: usize) -> u64
Expand description

Run check over the JSON input at (ptr, len). Returns the output location packed into one u64: high 32 bits = pointer, low 32 bits = length. (wasm32 pointers are 32 bits.)

§Safety

ptr..ptr+len must be readable memory, as filled in by the caller after alloc.