Function encode

#include <Geode/utils/base64.hpp>std::stringencode(,)

Encodes the given data into base64, with the given variant.

Parameters

str

Binary data to encode

var

Which variant of base64 to use
Return value
The encoded base64 string

ℹ Same as `encode(span<uint8_t>)`, just treats str as raw bytes.

Examples0