Function wasmedge_sys::ffi::WasmEdge_LoaderParseFromFile
source · pub unsafe extern "C" fn WasmEdge_LoaderParseFromFile(
Cxt: *mut WasmEdge_LoaderContext,
Module: *mut *mut WasmEdge_ASTModuleContext,
Path: *const c_char
) -> WasmEdge_Result
Expand description
Load and parse the WASM module from a WASM file into a WasmEdge_ASTModuleContext.
Load and parse the WASM module from the file path, and return a
WasmEdge_ASTModuleContext
as the result. The caller owns the
WasmEdge_ASTModuleContext
object and should call
WasmEdge_ASTModuleDelete
to destroy it.
\param Cxt the WasmEdge_LoaderContext. \param [out] Module the output WasmEdge_ASTModuleContext if succeeded. \param Path the NULL-terminated C string of the WASM file path.
\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage
for the error
message.