pub unsafe extern "C" fn wasm_externref_obj2ref(
module_inst: wasm_module_inst_t,
extern_obj: *mut c_void,
p_externref_idx: *mut u32,
) -> bool
Expand description
Map external object to an internal externref index: if the index has been created, return it, otherwise create the index.
@param module_inst the WASM module instance that the extern object belongs to @param extern_obj the external object to be mapped @param p_externref_idx return externref index of the external object
@return true if success, false otherwise