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

Function set_jni_get_string_utf_chars

rust/src/cache.rs:448–456  ·  view source on GitHub ↗
(
    j: Option<JniGetStringUTFChars>,
)

Source from the content-addressed store, hash-verified

446}
447
448pub(crate) fn set_jni_get_string_utf_chars(
449 j: Option<JniGetStringUTFChars>,
450) -> Option<JniGetStringUTFChars> {
451 debug("Called set_jni_get_string_utf_chars");
452 JNI_GET_STRING_UTF_CHARS.with(|opt| {
453 *opt.borrow_mut() = j;
454 });
455 get_jni_get_string_utf_chars()
456}
457
458pub(crate) fn get_jni_get_string_utf_chars() -> Option<JniGetStringUTFChars> {
459 JNI_GET_STRING_UTF_CHARS.with(|opt| *opt.borrow())

Callers 1

try_fromMethod · 0.85

Calls 2

debugFunction · 0.85

Tested by

no test coverage detected