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

Function nativeGetNativeWrapper

valdi/src/valdi/android/MarshallerJNI.cpp:624–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622 }
623
624 auto typedArray = marshaller->getTypedArray(static_cast<int>(index));
625
626 if (!checkMarshaller(env, marshaller)) {
627 return nullptr;
628 }
629
630 return reinterpret_cast<jbyteArray>(
631 ValdiAndroid::toJavaObject(ValdiAndroid::JavaEnv(), typedArray).releaseObject());
632}
633
634jobject JNICALL nativeGetNativeWrapper(JNIEnv* env, jclass /*cls*/, jlong ptr, jint index) {
635 auto* marshaller = unwrap(env, ptr);
636 if (marshaller == nullptr) {
637 return nullptr;
638 }
639

Callers 1

getNativeWrapperMethod · 0.85

Calls 6

unwrapFunction · 0.85
checkMarshallerFunction · 0.85
getMethod · 0.65
releaseObjectMethod · 0.65
JavaEnvClass · 0.50

Tested by

no test coverage detected