Package io.ktor.utils.io.charsets

Types

Link copied to clipboard
expect abstract class Charset
actual abstract class Charset
actual typealias Charset = Charset
actual abstract class Charset
Link copied to clipboard
expect abstract class CharsetDecoder
actual abstract class CharsetDecoder
actual typealias CharsetDecoder = CharsetDecoder
actual abstract class CharsetDecoder
Link copied to clipboard
expect abstract class CharsetEncoder
actual abstract class CharsetEncoder
actual typealias CharsetEncoder = CharsetEncoder
actual abstract class CharsetEncoder
Link copied to clipboard
expect object Charsets
actual object Charsets
actual typealias Charsets = Charsets
actual object Charsets
Link copied to clipboard
expect open class MalformedInputException(message: String) : Throwable
actual open class MalformedInputException(message: String) : Throwable
actual open class MalformedInputException(message: String) : MalformedInputException
actual open class MalformedInputException(message: String) : Throwable
Link copied to clipboard
class TooLongLineException(message: String) : MalformedInputException

Functions

Link copied to clipboard
fun CharsetDecoder.decode(input: Input, max: Int = Int.MAX_VALUE): String
expect fun CharsetDecoder.decode(input: Input, dst: Appendable, max: Int): Int
actual fun CharsetDecoder.decode(input: Input, dst: Appendable, max: Int): Int
Link copied to clipboard
expect fun CharsetDecoder.decodeExactBytes(input: Input, inputLength: Int): String
actual fun CharsetDecoder.decodeExactBytes(input: Input, inputLength: Int): String
actual fun CharsetDecoder.decodeExactBytes(input: Input, inputLength: Int): String
Link copied to clipboard
fun ByteBuffer.decodeUTF(out: CharArray, offset: Int, length: Int): Long
Link copied to clipboard
fun ByteBuffer.decodeUTF8Line(out: CharArray, offset: Int = 0, length: Int = out.size): Long
Link copied to clipboard
fun decodeUtf8Result(numberOfChars: Int, requireBytes: Int): Long
Link copied to clipboard
fun decodeUtf8ResultCombine(prev: Long, next: Long): Long
Link copied to clipboard
fun CharsetEncoder.encode(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteReadPacket
fun CharsetEncoder.encode(input: CharArray, fromIndex: Int, toIndex: Int, dst: Output)
fun CharsetEncoder.encode(input: CharSequence, fromIndex: Int, toIndex: Int, dst: Output)
Link copied to clipboard
expect fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
actual fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
actual fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
Link copied to clipboard
fun CharsetEncoder.encodeToByteArrayImpl(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
Link copied to clipboard
fun CharsetEncoder.encodeUTF8(input: ByteReadPacket): ByteReadPacket
expect fun CharsetEncoder.encodeUTF8(input: ByteReadPacket, dst: Output)
actual fun CharsetEncoder.encodeUTF8(input: ByteReadPacket, dst: Output)
actual fun CharsetEncoder.encodeUTF8(input: ByteReadPacket, dst: Output)

Properties

Link copied to clipboard
expect val CharsetEncoder.charset: Charset
actual val CharsetEncoder.charset: Charset
actual val CharsetEncoder.charset: Charset
Link copied to clipboard
expect val CharsetDecoder.charset: Charset

Decoder's charset it is created for.

actual val CharsetDecoder.charset: Charset
actual val CharsetDecoder.charset: Charset
Link copied to clipboard
expect val Charset.name: String
actual val Charset.name: String
actual val Charset.name: String