Function decode

#include <Geode/utils/base64.hpp>geode::Result<std::vector<std::uint8_t>>decode(,)

Decodes the given base64 string. Whitespace characters are skipped, and the string stops at the first null terminator or ‘=’, as to match ZipUtils behavior. Padding is ignored, i.e. Base64Variant::Normal behaves the same as Base64Variant::NormalNoPad

Parameters

str

Base64 encoded string
Return value
Decoded data, or an error if decoding failed
Examples0