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

Method registerModule

include/vm/vm.h:51–55  ·  view source on GitHub ↗

======= Functions can be called before the instantiated stage. ======= Register wasm modules and host modules.

Source from the content-addressed store, hash-verified

49 /// ======= Functions can be called before the instantiated stage. =======
50 /// Register wasm modules and host modules.
51 Expect<void> registerModule(std::string_view Name,
52 const std::filesystem::path &Path) {
53 std::unique_lock Lock(Mutex);
54 return unsafeRegisterModule(Name, Path);
55 }
56 Expect<void> registerModule(std::string_view Name, Span<const Byte> Code) {
57 std::unique_lock Lock(Mutex);
58 return unsafeRegisterModule(Name, Code);

Callers 6

TestContextMethod · 0.45
TEST_PFunction · 0.45
TESTFunction · 0.45
TestContextMethod · 0.45
TEST_PFunction · 0.45
TESTFunction · 0.45

Calls 2

registerModuleFunction · 0.85
getModuleNameMethod · 0.45

Tested by 6

TestContextMethod · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36
TestContextMethod · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36