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

Function nativeGetTypedObjectProperty

valdi/src/valdi/android/MarshallerJNI.cpp:486–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 auto* marshaller = unwrap(env, ptr);
485 if (marshaller == nullptr) {
486 return static_cast<jint>(0);
487 }
488 auto proxyObject = marshaller->getProxyObject(static_cast<int>(index));
489 if (!checkMarshaller(env, marshaller)) {
490 return static_cast<jint>(0);
491 }
492
493 return static_cast<jint>(marshaller->push(Valdi::Value(proxyObject->getTypedObject())));
494}
495
496jint nativeGetTypedObjectProperty(JNIEnv* env, jclass /*cls*/, jlong ptr, jint propertyIndex, jint index) {
497 auto* marshaller = unwrap(env, ptr);
498 if (marshaller == nullptr) {
499 return static_cast<jint>(0);

Callers 1

Calls 5

unwrapFunction · 0.85
checkMarshallerFunction · 0.85
getTypedObjectMethod · 0.45
pushMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected