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

Function newJavaObjectArray

valdi_core/src/valdi_core/jni/JavaUtils.cpp:419–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417
418djinni::LocalRef<jobject> newJavaFloatObject(float value) {
419 auto& cache = JavaCache::get();
420 return cache.getFloatClass().newObject(cache.getFloatConstructorMethod(), value);
421}
422
423djinni::LocalRef<jobject> newJavaDoubleObject(double value) {
424 auto& cache = JavaCache::get();
425 return cache.getDoubleClass().newObject(cache.getDoubleConstructorMethod(), value);
426}
427

Callers 2

toJavaObjectFunction · 0.85
newArrayBuilderMethod · 0.85

Calls 1

getClassMethod · 0.45

Tested by

no test coverage detected