encode

open override fun encode(text: String): ByteArray

Encode

Encodes a string into a ByteArray containing the UTF-8 representation of the string.

Return

The bytes containing the UTF-8 representation of the string

Parameters

text

The string to encode.