Package-level declarations

Types

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

Properties

Link copied to clipboard

Decoder's charset it is created for.

Decoder's charset it is created for.

Decoder's charset it is created for.

Decoder's charset it is created for.

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
actual val Charset.name: String
actual val Charset.name: String

Functions

Link copied to clipboard
actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

fun CharsetDecoder.decode(input: Source, max: Int = Int.MAX_VALUE): String

expect fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int

Decodes the data from the given source and appends the result to the specified destination.

Link copied to clipboard
fun CharsetEncoder.encode(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): Source
fun CharsetEncoder.encode(input: CharArray, fromIndex: Int, toIndex: Int, dst: Sink)
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
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
expect fun Charsets.forName(name: String): Charset

Find a charset by name.

actual fun Charsets.forName(name: String): Charset

Find a charset by name.

actual fun Charsets.forName(name: String): Charset

Find a charset by name.

actual fun Charsets.forName(name: String): Charset

Find a charset by name.

actual fun Charsets.forName(name: String): Charset

Find a charset by name.

Link copied to clipboard
expect fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.

actual fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.

actual fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.

actual fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.

actual fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.

Link copied to clipboard
fun Int8Array.toByteArray(): ByteArray
Link copied to clipboard
fun ByteArray.toJsArray(): Int8Array