encodeAsync

external fun encodeAsync(content: String): PromiseLike<Uint8Array<*>>(source)

Encodes the content of a string to a Uint8Array.

Will pick an encoding based on settings.

Parameters

content

The content to decode as a string.