pub unsafe extern "C" fn WasmEdge_LoaderParseFromBuffer(
    Cxt: *mut WasmEdge_LoaderContext,
    Module: *mut *mut WasmEdge_ASTModuleContext,
    Buf: *const u8,
    BufLen: u32
) -> WasmEdge_Result
Expand description

Load and parse the WASM module from a buffer 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 Buf the buffer of WASM binary. \param BufLen the length of the buffer.

\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error message.