Function yrs::yinput_json_map

source ·
#[no_mangle]
pub unsafe extern "C" fn yinput_json_map(
    keys: *mut *mut c_char,
    values: *mut YInput,
    len: u32
) -> YInput
Expand description

Function constructor used to create a JSON-like map YInput cell of other JSON-like key-value pairs. These pairs are build from corresponding indexes of keys and values, which must have the same specified length.

This function doesn’t allocate any heap resources and doesn’t release any on its own, therefore its up to a caller to free resources once a structure is no longer needed.