stringToUTF8

abstract fun stringToUTF8(str: String, outPtr: Int, maxBytesToWrite: Int): Int