MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / runWasmFile

Method runWasmFile

include/vm/vm.h:77–83  ·  view source on GitHub ↗

Rapidly load, validate, instantiate, and run wasm function.

Source from the content-addressed store, hash-verified

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 = {},

Calls

no outgoing calls

Tested by

no test coverage detected