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

Function nativeGetType

valdi/src/valdi/android/MarshallerJNI.cpp:507–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507jint nativeGetType(jlong ptr, jint index) {
508 auto* marshaller = unwrap(nullptr, ptr);
509 if (marshaller == nullptr) {
510 return static_cast<jint>(valueTypeToInt(Valdi::ValueType::Undefined));
511 }
512
513 return static_cast<jint>(valueTypeToInt(marshaller->getOrUndefined(static_cast<int>(index)).getType()));
514}
515
516jboolean nativeGetBoolean(jlong ptr, jint index) {
517 auto* marshaller = unwrap(nullptr, ptr);

Callers 1

getTypeMethod · 0.85

Calls 4

unwrapFunction · 0.85
valueTypeToIntFunction · 0.85
getOrUndefinedMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected