Started transition to binary data on client side

This commit is contained in:
Pax1601
2023-06-22 22:17:00 +02:00
parent 1d62b4c115
commit 916752301a
12 changed files with 196 additions and 132 deletions

View File

@@ -12,10 +12,7 @@ namespace base64 {
"0123456789+/";
return base64_chars;
}
inline std::string to_base64(std::string const& data) {
return to_base64(data.c_str(), data.length());
}
inline std::string to_base64(const char* data, size_t size) {
int counter = 0;
uint32_t bit_stream = 0;
@@ -52,6 +49,10 @@ namespace base64 {
return encoded;
}
inline std::string to_base64(std::string const& data) {
return to_base64(data.c_str(), data.length());
}
inline std::string from_base64(std::string const& data) {
int counter = 0;
uint32_t bit_stream = 0;