Rapidly load, validate, instantiate, and run wasm function.
| 75 | |
| 76 | /// Rapidly load, validate, instantiate, and run wasm function. |
| 77 | Expect<std::vector<std::pair<ValVariant, ValType>>> |
| 78 | runWasmFile(const std::filesystem::path &Path, std::string_view Func, |
| 79 | Span<const ValVariant> Params = {}, |
| 80 | Span<const ValType> ParamTypes = {}) { |
| 81 | std::unique_lock Lock(Mutex); |
| 82 | return unsafeRunWasmFile(Path, Func, Params, ParamTypes); |
| 83 | } |
| 84 | Expect<std::vector<std::pair<ValVariant, ValType>>> |
| 85 | runWasmFile(Span<const Byte> Code, std::string_view Func, |
| 86 | Span<const ValVariant> Params = {}, |
no outgoing calls
no test coverage detected