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

Function nativeGetDouble

valdi/src/valdi/android/MarshallerJNI.cpp:525–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525jdouble nativeGetDouble(jlong ptr, jint index) {
526 auto* marshaller = unwrap(nullptr, ptr);
527 if (marshaller == nullptr) {
528 return 0;
529 }
530
531 return static_cast<jdouble>(marshaller->getOrUndefined(static_cast<int>(index)).toDouble());
532}
533
534jlong nativeGetLong(jlong ptr, jint index) {
535 auto* marshaller = unwrap(nullptr, ptr);

Callers 1

getDoubleMethod · 0.85

Calls 3

unwrapFunction · 0.85
getOrUndefinedMethod · 0.80
toDoubleMethod · 0.45

Tested by

no test coverage detected