jstrToUintArray

abstract fun jstrToUintArray(jsString: JsString, addNul: Boolean = definedExternally): Uint8Array<*>(source)

For the given JS string, returns a Uint8Array of its contents encoded as UTF-8. If addNul is true, the returned array will have a trailing 0 entry, else it will not.