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

Function nativeGetLong

valdi/src/valdi/android/MarshallerJNI.cpp:534–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534jlong nativeGetLong(jlong ptr, jint index) {
535 auto* marshaller = unwrap(nullptr, ptr);
536 if (marshaller == nullptr) {
537 return 0;
538 }
539
540 return static_cast<jlong>(marshaller->getOrUndefined(static_cast<int>(index)).toLong());
541}
542
543jobject nativeGetUntyped(JNIEnv* env,
544

Callers 1

getLongMethod · 0.85

Calls 3

unwrapFunction · 0.85
toLongMethod · 0.80
getOrUndefinedMethod · 0.80

Tested by

no test coverage detected