getUTFChars
context(env: JniEnv, placement: NativePlacement)
fun JString.getUTFChars(): Pair<CArrayPointer<ByteVar>, Boolean>?(source)
fun JString.getUTFChars(): Pair<CArrayPointer<ByteVar>, Boolean>?(source)
Returns a pointer to an array of bytes representing the string in modified UTF-8 encoding 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 array is valid until it is released by releaseUTFChars.
Return
a pointer to a modified UTF-8 string and a copy marker, or null if the operation fails.