encodeToString

expect open override fun encodeToString(data: ByteArray): String

Encode the provided data to a string representation using the encoding implemented by this encoder.

Return

String representation of the encoded data.

Parameters

data

Raw data to encode in the target encoding and return as a string.


expect open override fun encodeToString(string: String): String

Encode the provided string to a string representation using the encoding implemented by this encoder; the string is interpreted using UTF-8 encoding.

Return

String representation of the encoded data.

Parameters

string

String to encode in the target encoding and return as a string.