Encode bytes to base64 using a straightforward per-byte algorithm. Slower than encodeFast but kept as a reference implementation.
encodeFast
Uint8Array of raw bytes to encode.
a Uint8Array containing the base64 representation (one byte per ASCII character, padded with = to a length that is a multiple of 4).
=
Encode bytes to base64 using a straightforward per-byte algorithm. Slower than
encodeFastbut kept as a reference implementation.