[−][src]Function wamr_sys::wasm_runtime_validate_native_addr
pub unsafe extern "C" fn wasm_runtime_validate_native_addr(
module_inst: wasm_module_inst_t,
native_ptr: *mut c_void,
size: u32
) -> bool
Validate the native address, check whether it belongs to WASM module instance's address space, or in its heap space or memory space.
@param module_inst the WASM module instance @param native_ptr the native address to validate, which is an absolute address @param size the size bytes of the app address
@return true if success, false otherwise. If failed, an exception will be thrown.