Struct jni::strings::JavaStr
[−]
[src]
pub struct JavaStr<'a> { /* fields omitted */ }
Reference to a string in the JVM. Holds a pointer to the array
returned by GetStringUTFChars. Calls ReleaseStringUTFChars on Drop.
Can be converted to a &JNIStr
with the same cost as the &CStr.from_ptr
conversion.
Methods
impl<'a> JavaStr<'a>
[src]
fn from_env(env: &'a JNIEnv<'a>, obj: JString<'a>) -> Result<Self>
[src]
Build a JavaStr
from an object and a reference to the environment. You
probably want to use JNIEnv::get_string
instead.
fn get_raw(&self) -> *const c_char
[src]
Extract the raw C string pointer from the JavaStr. This will be
encoded using the JVM internal CESU-8
-style.
Methods from Deref<Target = JNIStr>
Trait Implementations
impl<'a> Deref for JavaStr<'a>
[src]
type Target = JNIStr
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.