newStringUTF

context(env: JniEnv)
fun newStringUTF(bytes: CArrayPointer<ByteVar>): JString?(source)

Constructs a new java.lang.String object from an array of characters in modified UTF-8 encoding.

Return

a Java string object, or null if the string cannot be constructed.

Throws

if the system runs out of memory.