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

Function nativeGetOpaqueObject

valdi/src/valdi/android/MarshallerJNI.cpp:638–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638jobject JNICALL nativeGetOpaqueObject(JNIEnv* env,
639
640 jclass /*cls*/,
641 jlong ptr,
642 jint index) {
643 auto* marshaller = unwrap(env, ptr);
644 if (marshaller == nullptr) {
645 return nullptr;
646 }
647
648 auto getResult = marshaller->getValdiObject(static_cast<int>(index));
649
650 if (!checkMarshaller(env, marshaller)) {
651 return nullptr;
652 }
653 return ValdiAndroid::javaObjectFromValdiObject(getResult).releaseObject();
654}
655
656jobject nativeGetFunction(JNIEnv* env,
657

Callers 1

getOpaqueObjectMethod · 0.85

Calls 5

unwrapFunction · 0.85
checkMarshallerFunction · 0.85
releaseObjectMethod · 0.65
getValdiObjectMethod · 0.45

Tested by

no test coverage detected