(
j: Option<JniReleaseStringUTFChars>,
)
| 460 | } |
| 461 | |
| 462 | pub(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 | |
| 472 | pub(crate) fn get_jni_release_string_utf_chars() -> Option<JniReleaseStringUTFChars> { |
| 473 | JNI_RELEASE_STRING_UTF_CHARS.with(|opt| *opt.borrow()) |
no test coverage detected