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

Method ReturnEmpty

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

Source from the content-addressed store, hash-verified

23}
24
25wit::string exports::test::strings::to_test::ReturnEmpty() {
26 // return a non-zero address (follows cabi_realloc logic)
27 return wit::string((char const*)1, 0);
28}
29
30// new API: Identical for guest import and export
31wit::string exports::test::strings::to_test::Roundtrip(std::string_view str) {

Callers

nothing calls this directly

Calls 1

stringClass · 0.50

Tested by

no test coverage detected