Convert a string to a UTF-8 encoded Uint8Array.
string
Uint8Array
The bytes as Uint8Array.
The string to convert to bytes.
Convert a
string
to a UTF-8 encodedUint8Array
.Returns
The bytes as
Uint8Array
.