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

Method getModuleIndex

include/ast/component/instance.h:80–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 Expr.emplace<std::pair<uint32_t, InstantiateArgs>>(ModIdx, std::move(Args));
79 }
80 uint32_t getModuleIndex() const noexcept {
81 return std::get_if<std::pair<uint32_t, InstantiateArgs>>(&Expr)->first;
82 }
83 Span<const InstantiateArg<uint32_t>> getInstantiateArgs() const noexcept {
84 return std::get_if<std::pair<uint32_t, InstantiateArgs>>(&Expr)->second;
85 }

Callers 2

validateMethod · 0.80
instantiateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected