newString
context(env: JniEnv)
fun newString(unicodeChars: CArrayPointer<UShortVar>, len: Int): JString?(source)
fun newString(unicodeChars: CArrayPointer<UShortVar>, len: Int): JString?(source)
Constructs a new java.lang.String object from an array of Unicode characters.
Return
a Java string object, or null if the string cannot be constructed.
Parameters
unicodeChars
pointer to a Unicode string. May be null, in which case len must be 0.
len
length of the Unicode string. May be zero.
Throws
if the system runs out of memory.