ktor-io / io.ktor.utils.io.core / readUTF8LineTo

readUTF8LineTo

fun Input.readUTF8LineTo(out: Appendable, limit: Int): Boolean

Read UTF-8 line and append all line characters to out except line endings. Does support CR, LF and CR+LF

Return
true if some characters were appended or line ending reached (empty line) or false if packet if empty