pub unsafe extern "C" fn WasmEdge_LoaderParseFromBytes(
Cxt: *mut WasmEdge_LoaderContext,
Module: *mut *mut WasmEdge_ASTModuleContext,
Bytes: WasmEdge_Bytes,
) -> WasmEdge_Result
Expand description
Load and parse the WASM module from a WasmEdge_Bytes into WasmEdge_ASTModuleContext.
Load and parse the WASM module from a buffer, 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 Bytes the WasmEdge_Bytes of WASM binary.
\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage
for the error
message.