libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Functions | |
std::string | encode (std::string_view data) |
Encode arbitrary data into a Base64 string. More... | |
std::string | decode (std::string_view string) |
Decode the original data from a Base64 string. More... | |
std::string donut::base64::encode | ( | std::string_view | data | ) |
Encode arbitrary data into a Base64 string.
data | input data to encode. |
std::length_error | if the length of the encoded string exceeds the maximum supported string size. |
std::bad_alloc | on allocation failure. |
std::string donut::base64::decode | ( | std::string_view | string | ) |
Decode the original data from a Base64 string.
string | Base64 string to decode. |
std::invalid_argument | if the length of the Base64 string is not divisible by 4. |
std::length_error | if the length of the decoded byte sequence exceeds the maximum supported string size. |
std::bad_alloc | on allocation failure. |