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

Method run

include/runtime/hostfunc.h:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 Expect<void> run(const CallingFrame &CallFrame, Span<const ValVariant> Args,
65 Span<ValVariant> Rets) override {
66 using F = FuncTraits<decltype(&T::body)>;
67 if (unlikely(F::ArgsN != Args.size())) {
68 return Unexpect(ErrCode::Value::FuncSigMismatch);
69 }
70 if (unlikely(F::RetsN != Rets.size())) {
71 return Unexpect(ErrCode::Value::FuncSigMismatch);
72 }
73 return invoke(CallFrame, Args.first<F::ArgsN>(), Rets.first<F::RetsN>());
74 }
75
76protected:
77 template <typename SpanA, typename SpanR>

Callers 1

callMethod · 0.45

Calls 3

unlikelyFunction · 0.85
UnexpectFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected