readText

fun Buffer.readText(
    decoder: CharsetDecoder,
    out: Appendable,
    lastBuffer: Boolean,
    max: Int = Int.MAX_VALUE
): Int

Deprecated: This is no longer supported. Read from a packet instead.

fun Buffer.readText(
    charset: Charset = Charsets.UTF_8,
    max: Int = Int.MAX_VALUE
): String
fun ByteReadPacket.readText(
    decoder: CharsetDecoder,
    out: Appendable,
    max: Int = Int.MAX_VALUE
): Int

Deprecated: Migrate parameters order

fun Input.readText(
    out: Appendable,
    decoder: CharsetDecoder,
    max: Int = Int.MAX_VALUE
): Int

Deprecated: Use CharsetDecoder.decode instead

Reads at most max characters decoding bytes with specified decoder. Extra character bytes will remain unconsumed

Return number of characters copied to out

fun Input.readText(
    out: Appendable,
    charset: Charset = Charsets.UTF_8,
    max: Int = Int.MAX_VALUE
): Int

Reads at most max characters decoding bytes with specified charset. Extra character bytes will remain unconsumed

Return number of characters copied to out

fun Input.readText(
    decoder: CharsetDecoder,
    max: Int = Int.MAX_VALUE
): String

Deprecated: Use CharsetDecoder.decode instead

Reads at most max characters decoding bytes with specified decoder. Extra character bytes will remain unconsumed

Return a decoded string

fun Input.readText(
    charset: Charset = Charsets.UTF_8,
    max: Int = Int.MAX_VALUE
): String

Reads at most max characters decoding bytes with specified charset. Extra character bytes will remain unconsumed

Return a decoded string