libdonut  2.3.2
Application framework for cross-platform game development in C++20
base64.hpp
Go to the documentation of this file.
1 #ifndef DONUT_BASE64_HPP
2 #define DONUT_BASE64_HPP
3 
4 #include <string> // std::string
5 #include <string_view> // std::string_view
6 
7 namespace donut::base64 {
8 
20 std::string encode(std::string_view data);
21 
35 std::string decode(std::string_view string);
36 
37 } // namespace donut::base64
38 
39 #endif
Definition: base64.hpp:7
std::string decode(std::string_view string)
Decode the original data from a Base64 string.
std::string encode(std::string_view data)
Encode arbitrary data into a Base64 string.