Companion

Functions

Link copied to clipboard
@JvmStatic
fun CharArray.decodeToByteArray(decoder: Decoder<*>): ByteArray

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

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

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

Link copied to clipboard
@JvmStatic
fun CharArray.decodeToByteArrayOrNull(decoder: Decoder<*>): ByteArray?
@JvmStatic
fun CharSequence.decodeToByteArrayOrNull(decoder: Decoder<*>): ByteArray?