| 686 | } |
| 687 | |
| 688 | jint 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 | |
| 702 | jint nativeGetArrayItemAndPopPrevious( |
| 703 | JNIEnv* env, jclass /*cls*/, jlong ptr, jint index, jint arrayIndex, jboolean popPrevious) { |
no test coverage detected