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]

[src]

Build a JavaStr from an object and a reference to the environment. You probably want to use JNIEnv::get_string instead.

[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]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a> Drop for JavaStr<'a>
[src]

[src]

Executes the destructor for this type. Read more