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

Function nativeGetArrayItem

valdi/src/valdi/android/MarshallerJNI.cpp:688–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688jint nativeGetArrayItem(JNIEnv* env, jclass /*cls*/, jlong ptr, jint index, jint arrayIndex) {
689 auto* marshaller = unwrap(env, ptr);
690 if (marshaller == nullptr) {
691 return 0;
692 }
693
694 auto getResult = marshaller->getArrayItem(static_cast<int>(index), static_cast<int>(arrayIndex));
695
696 if (!checkMarshaller(env, marshaller)) {
697 return 0;
698 }
699 return static_cast<jint>(getResult);
700}
701
702jint nativeGetArrayItemAndPopPrevious(
703 JNIEnv* env, jclass /*cls*/, jlong ptr, jint index, jint arrayIndex, jboolean popPrevious) {

Callers 1

getListItemMethod · 0.85

Calls 3

unwrapFunction · 0.85
checkMarshallerFunction · 0.85
getArrayItemMethod · 0.45

Tested by

no test coverage detected