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

Function newJavaByteArray

valdi_core/src/valdi_core/jni/JavaUtils.cpp:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 return javaFunction->toObject();
404 }
405
406 auto* functionCopy = new Valdi::Value(value);
407
408 auto actionObject = JavaEnv::getCache().getValdiFunctionNativeClass().newObject(
409 JavaEnv::getCache().getValdiFunctionNativeConstructorMethod(), reinterpret_cast<int64_t>(functionCopy));
410 return JavaObject(env, std::move(actionObject));
411}
412
413djinni::LocalRef<jobject> newJavaBooleanObject(bool value) {
414 auto& cache = JavaCache::get();
415 return cache.getBooleanClass().newObject(cache.getBooleanConstructorMethod(), value);
416}
417
418djinni::LocalRef<jobject> newJavaFloatObject(float value) {
419 auto& cache = JavaCache::get();
420 return cache.getFloatClass().newObject(cache.getFloatConstructorMethod(), value);

Callers 3

toJavaObjectFunction · 0.85
getModuleEntryMethod · 0.85
newByteArrayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected