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

Method stringToEmbeddedProto

test-suite/generated-src/wasm/NativeProtoTests.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43}
44em::val NativeProtoTests::stringToEmbeddedProto(const std::string& w_x) {
45 try {
46 auto r = ::testsuite::ProtoTests::stringToEmbeddedProto(::djinni::String::toCpp(w_x));
47 return ::djinni_generated::NativeRecordWithEmbeddedProto::fromCpp(r);
48 }
49 catch(const std::exception& e) {
50 return ::djinni::ExceptionHandlingTraits<::djinni_generated::NativeRecordWithEmbeddedProto>::handleNativeException(e);
51 }
52}
53std::string NativeProtoTests::cppProtoToString(const em::val& w_x) {
54 try {
55 auto r = ::testsuite::ProtoTests::cppProtoToString(::djinni::Protobuf<::djinni::test2::PersistingState, ::djinni::JsClassName<'p','r','o','t','o','t','e','s','t','2','.','P','e','r','s','i','s','t','i','n','g','S','t','a','t','e'>>::toCpp(w_x));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected