pub unsafe extern "C" fn WasmEdge_VMLoadWasmFromFile(
    Cxt: *mut WasmEdge_VMContext,
    Path: *const c_char
) -> WasmEdge_Result
Expand description

Load the WASM module from a WASM file.

This is the first step to invoke a WASM function step by step. Load and parse the WASM module from the file path. You can then call WasmEdge_VMValidate for the next step.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext. \param Path the NULL-terminated C string of the WASM file path.

\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error message.