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

Function nativeGetBoolean

valdi/src/valdi/android/MarshallerJNI.cpp:516–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516jboolean nativeGetBoolean(jlong ptr, jint index) {
517 auto* marshaller = unwrap(nullptr, ptr);
518 if (marshaller == nullptr) {
519 return static_cast<jboolean>(false);
520 }
521
522 return static_cast<jboolean>(marshaller->getOrUndefined(static_cast<int>(index)).toBool());
523}
524
525jdouble nativeGetDouble(jlong ptr, jint index) {
526 auto* marshaller = unwrap(nullptr, ptr);

Callers 1

getBooleanMethod · 0.85

Calls 3

unwrapFunction · 0.85
getOrUndefinedMethod · 0.80
toBoolMethod · 0.45

Tested by

no test coverage detected