| 108 | } |
| 109 | |
| 110 | Valdi::Result<Valdi::Value> AndroidValueMarshallerRegistry::marshallObject(const Valdi::StringBox& className, |
| 111 | const JavaValue& object) { |
| 112 | auto classDelegate = getLoadedClassDelegateForClassName(className); |
| 113 | if (!classDelegate) { |
| 114 | return classDelegate.moveError(); |
| 115 | } |
| 116 | |
| 117 | Valdi::SimpleExceptionTracker exceptionTracker; |
| 118 | auto result = classDelegate.value()->getValueMarshaller()->marshall( |
| 119 | nullptr, object, Valdi::ReferenceInfoBuilder(), exceptionTracker); |
| 120 | |
| 121 | return exceptionTracker.toResult(std::move(result)); |
| 122 | } |
| 123 | |
| 124 | Valdi::Result<JavaValue> AndroidValueMarshallerRegistry::unmarshallObject(const Valdi::StringBox& className, |
| 125 | const Valdi::Value& value) { |
no test coverage detected