#ifndef BASE64_HH #define BASE64_HH #include #include #include #include #include namespace base64 { [[nodiscard]] std::string encode(std::span data); void encode(std::span in, std::string& out); [[nodiscard]] std::optional> decode(std::string_view value); [[nodiscard]] bool decode(std::string_view in, std::vector& out); } // namespace base64 #endif // BASE64_HH