MCPcopy Create free account
hub / github.com/Snapchat/Valdi / marshallObject

Method marshallObject

valdi/src/valdi/android/AndroidValueMarshallerRegistry.cpp:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110Valdi::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
124Valdi::Result<JavaValue> AndroidValueMarshallerRegistry::unmarshallObject(const Valdi::StringBox& className,
125 const Valdi::Value& value) {

Callers 2

nativeMarshallObjectMethod · 0.45

Calls 5

toResultMethod · 0.80
valueMethod · 0.65
marshallMethod · 0.45
getValueMarshallerMethod · 0.45

Tested by

no test coverage detected