encode

abstract fun encode(text: String): ByteArray
open fun encode(text: Value?): 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.