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

Function getWeakReferenceValue

valdi_core/src/valdi_core/jni/JavaUtils.cpp:760–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760djinni::LocalRef<jobject> getWeakReferenceValue(JavaEnv /*env*/, jobject weakReference) {
761 auto result = JavaCache::get().getWeakRefeferenceGetMethod().call(JavaObject(JavaEnv(), weakReference));
762
763 return result.stealLocalRef();
764}
765
766jlong bridgeRetain(Valdi::RefCountable* nativeReference) {
767 return static_cast<jlong>(reinterpret_cast<std::uintptr_t>(Valdi::unsafeBridgeRetain(nativeReference)));

Callers 2

doCallMethod · 0.85
getObjectForIdMethod · 0.85

Calls 5

stealLocalRefMethod · 0.80
JavaObjectClass · 0.70
JavaEnvClass · 0.70
callMethod · 0.65
getFunction · 0.50

Tested by

no test coverage detected