| 3352 | } |
| 3353 | |
| 3354 | WASMEDGE_CAPI_EXPORT WasmEdge_Async *WasmEdge_VMAsyncRunWasmFromBytes( |
| 3355 | WasmEdge_VMContext *Cxt, const WasmEdge_Bytes Bytes, |
| 3356 | const WasmEdge_String FuncName, const WasmEdge_Value *Params, |
| 3357 | const uint32_t ParamLen) noexcept { |
| 3358 | try { |
| 3359 | auto ParamPair = genParamPair(Params, ParamLen); |
| 3360 | if (Cxt) { |
| 3361 | return new WasmEdge_Async(Cxt->VM.asyncRunWasmFile( |
| 3362 | genSpan(Bytes.Buf, Bytes.Length), genStrView(FuncName), |
| 3363 | ParamPair.first, ParamPair.second)); |
| 3364 | } |
| 3365 | } catch (...) { |
| 3366 | handleCAPIError(); |
| 3367 | } |
| 3368 | return nullptr; |
| 3369 | } |
| 3370 | |
| 3371 | WASMEDGE_CAPI_EXPORT WasmEdge_Async *WasmEdge_VMAsyncRunWasmFromASTModule( |
| 3372 | WasmEdge_VMContext *Cxt, const WasmEdge_ASTModuleContext *ASTCxt, |
no test coverage detected