MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_Result WasmEdge_VMRegisterModuleFromFile

Function WasmEdge_Result WasmEdge_VMRegisterModuleFromFile

lib/api/wasmedge.cpp:3204–3212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3202}
3203
3204WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_VMRegisterModuleFromFile(
3205 WasmEdge_VMContext *Cxt, const WasmEdge_String ModuleName,
3206 const char *Path) noexcept {
3207 return wrap(
3208 [&]() {
3209 return Cxt->VM.registerModule(genStrView(ModuleName), genPath(Path));
3210 },
3211 EmptyThen, Cxt);
3212}
3213
3214WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_VMRegisterModuleFromBuffer(
3215 WasmEdge_VMContext *Cxt, const WasmEdge_String ModuleName,

Callers

nothing calls this directly

Calls 4

wrapFunction · 0.85
genStrViewFunction · 0.85
genPathFunction · 0.85
registerModuleMethod · 0.45

Tested by

no test coverage detected