toCharBuffer

fun CharArray.toCharBuffer(): CharBuffer

Returns a direct primitive buffer containing all of the elements of this char array.

fun Array<out Char>.toCharBuffer(): CharBuffer

Returns a direct Char buffer containing all of the elements of this generic array.