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

Method loadWasm

include/vm/vm.h:127–130  ·  view source on GitHub ↗

Load given wasm file, wasm bytecode, or wasm module.

Source from the content-addressed store, hash-verified

125
126 /// Load given wasm file, wasm bytecode, or wasm module.
127 Expect<void> loadWasm(const std::filesystem::path &Path) {
128 std::unique_lock Lock(Mutex);
129 return unsafeLoadWasm(Path);
130 }
131 Expect<void> loadWasm(Span<const Byte> Code) {
132 std::unique_lock Lock(Mutex);
133 return unsafeLoadWasm(Code);

Callers 13

ToolFunction · 0.80
TESTFunction · 0.80
TEST_PFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TEST_PFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
SetUpMethod · 0.80

Calls

no outgoing calls

Tested by 9

TESTFunction · 0.64
TEST_PFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TEST_PFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
SetUpMethod · 0.64
TESTFunction · 0.64