Expand description
String types for going to/from java strings.
Structs
- Wrapper for
std::ffi::CStr
that also takes care of encoding between UTF-8 and Java’s Modified UTF-8. - Wrapper for
std::ffi::CString
that also takes care of encoding between UTF-8 and Java’s Modified UTF-8. As withCString
, this implementsDeref
to&JNIStr
. - Reference to a string in the JVM. Holds a pointer to the array returned by
GetStringUTFChars
. CallsReleaseStringUTFChars
on Drop. Can be converted to a&JNIStr
with the same cost as the&CStr.from_ptr
conversion.