| 3328 | } |
| 3329 | |
| 3330 | WASMEDGE_CAPI_EXPORT WasmEdge_Async *WasmEdge_VMAsyncRunWasmFromFile( |
| 3331 | WasmEdge_VMContext *Cxt, const char *Path, const WasmEdge_String FuncName, |
| 3332 | const WasmEdge_Value *Params, const uint32_t ParamLen) noexcept { |
| 3333 | try { |
| 3334 | auto ParamPair = genParamPair(Params, ParamLen); |
| 3335 | if (Cxt) { |
| 3336 | return new WasmEdge_Async( |
| 3337 | Cxt->VM.asyncRunWasmFile(genPath(Path), genStrView(FuncName), |
| 3338 | ParamPair.first, ParamPair.second)); |
| 3339 | } |
| 3340 | } catch (...) { |
| 3341 | handleCAPIError(); |
| 3342 | } |
| 3343 | return nullptr; |
| 3344 | } |
| 3345 | |
| 3346 | WASMEDGE_CAPI_EXPORT WasmEdge_Async *WasmEdge_VMAsyncRunWasmFromBuffer( |
| 3347 | WasmEdge_VMContext *Cxt, const uint8_t *Buf, const uint32_t BufLen, |