MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / Add

Method Add

tests/runtime/resources/resources.cpp:8–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8exports::test::resources::Z::Owned exports::test::resources::Add(std::reference_wrapper<const Z> a, std::reference_wrapper<const Z> b) {
9 return exports::test::resources::Z::New(a.get().GetA() + b.get().GetA());
10}
11
12void exports::test::resources::Consume(X::Owned x) {
13

Callers 2

RunFunction · 0.45
RunMethod · 0.45

Calls 2

GetAMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected