JniEnvironment.Strings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |