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

Method Roundtrip

tests/runtime/strings/test-symmetric.cpp:31–34  ·  view source on GitHub ↗

new API: Identical for guest import and export

Source from the content-addressed store, hash-verified

29
30// new API: Identical for guest import and export
31wit::string exports::test::strings::to_test::Roundtrip(std::string_view str) {
32 assert(str.size() > 0);
33 return wit::string::from_view(str);
34}

Callers

nothing calls this directly

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected