Package-level declarations

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) : Throwable
Link copied to clipboard

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
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 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, toIndex: Int): ByteArray
actual fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int, toIndex: Int): ByteArray
Link copied to clipboard
fun CharsetEncoder.encodeToByteArrayImpl(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
Link copied to clipboard

Properties

Link copied to clipboard

Decoder's charset it is created for.

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