ktor-io / io.ktor.utils.io.charsets / java.nio.charset.CharsetDecoder

Extensions for java.nio.charset.CharsetDecoder

charset

expect val CharsetDecoder.charset: Charset

Decoder's charset it is created for.

decode

fun CharsetDecoder.decode(input: Input, max: Int = Int.MAX_VALUE): String
expect fun CharsetDecoder.decode(input: Input, dst: Appendable, max: Int): Int

decodeExactBytes

expect fun CharsetDecoder.decodeExactBytes(input: Input, inputLength: Int): String