| 65 | } |
| 66 | } |
| 67 | em::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 | } |
| 76 | em::val NativeDataRefTest::sendDataView(const CppType& self, const em::val& w_data) { |
| 77 | try { |
| 78 | auto r = self->sendDataView(::djinni::NativeDataView::toCpp(w_data)); |