MCPcopy Create free account
hub / github.com/Snapchat/djinni / returnString

Method returnString

perftest/generated-src/wasm/NativeDjinniPerfBenchmark.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174}
175std::string NativeDjinniPerfBenchmark::returnString(const CppType& self, int32_t w_size) {
176 try {
177 auto r = self->returnString(::djinni::I32::toCpp(w_size));
178 return ::djinni::String::fromCpp(r);
179 }
180 catch(const std::exception& e) {
181 return ::djinni::ExceptionHandlingTraits<::djinni::String>::handleNativeException(e);
182 }
183}
184em::val NativeDjinniPerfBenchmark::returnBinary(const CppType& self, int32_t w_size) {
185 try {
186 auto r = self->returnBinary(::djinni::I32::toCpp(w_size));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected