decode

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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.

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


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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.

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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.

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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.

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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.

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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.

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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.

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

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

Return

The number of characters consumed from the source.

Parameters

input

The source from which the data is read.

dst

The Appendable instance where the decoded data is appended.

max

The maximum number of bytes to decode.