[][src]Function wamr_sys::wasm_runtime_validate_app_addr

pub unsafe extern "C" fn wasm_runtime_validate_app_addr(
    module_inst: wasm_module_inst_t,
    app_offset: u32,
    size: u32
) -> bool

Validate the app 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 app_offset the app address to validate, which is a relative address @param size the size bytes of the app address

@return true if success, false otherwise. If failed, an exception will be thrown.