getChars
context(env: JniEnv, placement: NativePlacement)
fun JString.getChars(): Pair<CArrayPointer<UShortVar>, Boolean>?(source)
fun JString.getChars(): Pair<CArrayPointer<UShortVar>, Boolean>?(source)
Returns a pointer to the array of Unicode characters and a boolean value isCopy which specifies whether the array is a copy (true - a copy, `false - the underlying array of the string, which means that any changes to it will be reflected on the original string).
This pointer is valid until releaseChars is called.
Return
a pointer to a Unicode string and a copy marker, or null if the operation fails.