12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef BOINC_BASE64_H
- #define BOINC_BASE64_H
- #ifndef _WIN32
- #include <cstdio>
- #include <cstdlib>
- #include <string>
- #endif
- class InvalidBase64Exception
- {
- };
- std::string r_base64_encode(const char* from, size_t length);
- std::string r_base64_decode(const char* from, size_t length);
- inline std::string r_base64_encode(std::string const& from)
- {
- return r_base64_encode(from.c_str(), from.length());
- }
- inline std::string r_base64_decode(std::string const& from)
- {
- return r_base64_decode(from.c_str(), from.length());
- }
- #endif
|