ktor-io / io.ktor.utils.io.charsets / java.nio.ByteBuffer

Extensions for java.nio.ByteBuffer

decodeUTF

fun ByteBuffer.decodeUTF(out: CharArray, offset: Int, length: Int): Long

decodeUTF8Line

fun ByteBuffer.decodeUTF8Line(out: CharArray, offset: Int = 0, length: Int = out.size): Long