Skip to main content

soil_decode

Function soil_decode 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn soil_decode( runtime: *mut SoilRuntime, shape_json: *const c_char, value_json: *const c_char, err: *mut *mut SoilError, ) -> *mut Value
Expand description

Type-directed decode — parse (design §3.7). shape_json is a shape in the descriptor-JSON encoding ({"tag": "Named", "value": "Doc"}, {"tag": "List", "value": {"tag": "I64"}}, …).

§Safety

runtime is live; both strings are NUL-terminated UTF-8; err null or valid.