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

Function nativeGetMapProperty

valdi/src/valdi/android/MarshallerJNI.cpp:260–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260jboolean nativeGetMapProperty(JNIEnv* env, jclass /*cls*/, jlong ptr, jlong propPtr, jint index) {
261 auto* marshaller = unwrap(env, ptr);
262 if (marshaller == nullptr) {
263 return static_cast<jboolean>(false);
264 }
265
266 auto result = marshaller->getMapProperty(ValdiAndroid::unwrapInternedString(propPtr), static_cast<int>(index));
267 if (!checkMarshaller(env, marshaller)) {
268 return 0;
269 }
270 return static_cast<jboolean>(result);
271}
272
273jint nativePushArray(jlong ptr, jint capacity) {
274 auto* marshaller = unwrap(nullptr, ptr);

Callers 1

Calls 4

unwrapFunction · 0.85
unwrapInternedStringFunction · 0.85
checkMarshallerFunction · 0.85
getMapPropertyMethod · 0.45

Tested by

no test coverage detected