Language

JniEnvironment.Strings Class

Definition

Creates Java strings, copies their UTF-16 content, and manages native character access.

public static class JniEnvironment.Strings
type JniEnvironment.Strings = class
Inheritance
JniEnvironment.Strings

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Methods

Name Description
GetStringChars(JniObjectReference, Boolean*)

Acquires read access to a Java string's UTF-16 code units.

GetStringLength(JniObjectReference)

Gets the Java string length in UTF-16 code units.

NewString(Char*, Int32)

Creates a Java string from a native UTF-16 buffer.

NewString(String)

Creates a Java string from a managed string.

ReleaseStringChars(JniObjectReference, Char*)

Ends native access to an acquired Java string character buffer.

ToString(IntPtr)

Copies a Java string handle's content into a managed string.

ToString(JniObjectReference, JniObjectReferenceOptions)

Copies a Java string into managed memory and applies the requested source disposal.

ToString(JniObjectReference)

Copies a Java string into a managed string without consuming the reference.

Applies to