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

Method dataFromStr

test-suite/generated-src/wasm/NativeDataRefTest.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66}
67em::val NativeDataRefTest::dataFromStr(const CppType& self) {
68 try {
69 auto r = self->dataFromStr();
70 return ::djinni::NativeDataRef::fromCpp(r);
71 }
72 catch(const std::exception& e) {
73 return ::djinni::ExceptionHandlingTraits<::djinni::NativeDataRef>::handleNativeException(e);
74 }
75}
76em::val NativeDataRefTest::sendDataView(const CppType& self, const em::val& w_data) {
77 try {
78 auto r = self->sendDataView(::djinni::NativeDataView::toCpp(w_data));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected