decodeToByteArray

@JvmStatic
fun CharSequence.decodeToByteArray(decoder: Decoder<*>): ByteArray(source)

Decodes a String for the provided decoder and returns the decoded bytes.

See also

Throws

if decoding failed.


@JvmStatic
fun CharArray.decodeToByteArray(decoder: Decoder<*>): ByteArray(source)

Decodes a CharArray for the provided decoder and returns the decoded bytes.

See also

Throws

if decoding failed.