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

Function valdiObjectFromJavaObject

valdi_core/src/valdi_core/jni/JavaUtils.cpp:680–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678 return typedJavaObjectFromValdiObject<JavaObject>(object, wrapIfNeeded);
679}
680
681Valdi::Ref<Valdi::RefCountable> wrappedCppPtrFromNativeHandle(int64_t nativeHandle) {
682 auto* wrappedValue = reinterpret_cast<Valdi::Value*>(nativeHandle);
683 if (wrappedValue == nullptr) {
684 return nullptr;
685 }
686
687 return wrappedValue->getUnsafeTypedRefPointer<Valdi::RefCountable>();
688}
689

Callers 6

toValueFunction · 0.85
toValdiContextUserDataFunction · 0.85
createViewNodeWrapperMethod · 0.85
nativePushOpaqueObjectFunction · 0.85
requestPayloadFromURLMethod · 0.85

Calls 3

getUnsafeObjectMethod · 0.80
isNullMethod · 0.45
getEnvMethod · 0.45

Tested by

no test coverage detected