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

Function createInternedString

valdi_core/src/valdi_core/jni/JavaUtils.cpp:468–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468jlong createInternedString(JavaEnv env, jstring string) {
469 auto stringBox = toInternedString(env, string);
470 if (stringBox.isEmpty()) {
471 return 0;
472 }
473
474 return reinterpret_cast<jlong>(Valdi::unsafeBridgeRetain(stringBox.getInternedString().get()));
475}
476
477void destroyInternedString(jlong ptr) {
478 Valdi::unsafeBridgeRelease(reinterpret_cast<void*>(ptr));

Callers 1

nativeCreateMethod · 0.85

Calls 5

toInternedStringFunction · 0.85
unsafeBridgeRetainFunction · 0.85
getInternedStringMethod · 0.80
getMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected