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

Function unwrapInternedString

valdi_core/src/valdi_core/jni/JavaUtils.cpp:481–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481Valdi::StringBox unwrapInternedString(jlong ptr) {
482 if (ptr == 0) {
483 return Valdi::StringBox();
484 }
485
486 return Valdi::StringBox(Valdi::unsafeBridge<Valdi::InternedStringImpl>(reinterpret_cast<void*>(ptr)));
487}
488
489Valdi::BytesView toByteArray(JavaEnv /*env*/, jbyteArray array) {
490 auto jLength = JavaEnv::accessEnvRet([&](JNIEnv& env) -> jint { return env.GetArrayLength(array); });

Callers 7

jniPutMapPropertyFunction · 0.85
jniGetMapPropertyFunction · 0.85
nativeGetMapPropertyFunction · 0.85
nativePushInternedStringFunction · 0.85
nativeRetainMethod · 0.85
nativeToStringMethod · 0.85

Calls 1

StringBoxClass · 0.50

Tested by

no test coverage detected