wamr_sys

Function wasm_runtime_addr_app_to_native

Source
pub unsafe extern "C" fn wasm_runtime_addr_app_to_native(
    module_inst: wasm_module_inst_t,
    app_offset: u64,
) -> *mut c_void
Expand description

Convert app address (relative address) to native address (absolute address)

Note that native addresses to module instance memory can be invalidated on a memory growth. (Except shared memory, whose native addresses are stable.)

@param module_inst the WASM module instance @param app_offset the app address

@return the native address converted