MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / set_jni_release_string_utf_chars

Function set_jni_release_string_utf_chars

rust/src/cache.rs:462–470  ·  view source on GitHub ↗
(
    j: Option<JniReleaseStringUTFChars>,
)

Source from the content-addressed store, hash-verified

460}
461
462pub(crate) fn set_jni_release_string_utf_chars(
463 j: Option<JniReleaseStringUTFChars>,
464) -> Option<JniReleaseStringUTFChars> {
465 debug("Called set_jni_release_string_utf_chars");
466 JNI_RELEASE_STRING_UTF_CHARS.with(|opt| {
467 *opt.borrow_mut() = j;
468 });
469 get_jni_release_string_utf_chars()
470}
471
472pub(crate) fn get_jni_release_string_utf_chars() -> Option<JniReleaseStringUTFChars> {
473 JNI_RELEASE_STRING_UTF_CHARS.with(|opt| *opt.borrow())

Callers 1

try_fromMethod · 0.85

Calls 2

debugFunction · 0.85

Tested by

no test coverage detected