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

Method unmarshallObject

valdi/src/valdi/android/AndroidValueMarshallerRegistry.cpp:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124Valdi::Result<JavaValue> AndroidValueMarshallerRegistry::unmarshallObject(const Valdi::StringBox& className,
125 const Valdi::Value& value) {
126 auto classDelegate = getLoadedClassDelegateForClassName(className);
127 if (!classDelegate) {
128 return classDelegate.moveError();
129 }
130
131 Valdi::SimpleExceptionTracker exceptionTracker;
132 auto result =
133 classDelegate.value()->getValueMarshaller()->unmarshall(value, Valdi::ReferenceInfoBuilder(), exceptionTracker);
134
135 return exceptionTracker.toResult(std::move(result));
136}
137
138Valdi::Result<Valdi::Void> AndroidValueMarshallerRegistry::setActiveSchemaInMarshaller(
139 const Valdi::StringBox& className, Valdi::Marshaller& marshaller) {

Callers 1

Calls 5

toResultMethod · 0.80
valueMethod · 0.65
unmarshallMethod · 0.45
getValueMarshallerMethod · 0.45

Tested by

no test coverage detected