Encodes the given data into base64, with the given variant.
Function encode
str
Binary data to encode
var
Which variant of base64 to use
The encoded base64 string
ℹ Same as `encode(span<uint8_t>)`, just treats str as raw bytes.
Encodes the given data into base64, with the given variant.
str
var
ℹ Same as `encode(span<uint8_t>)`, just treats str as raw bytes.