kotlin-stdlib / kotlin.native / setCharAt setCharAt Native 1.3 @ExperimentalNativeApi fun ByteArray.setCharAt( index: Int, value: Char)(source) Sets Char out of the ByteArray byte buffer at specified index index Exceptions IndexOutOfBoundsException - if index is outside of array boundaries.