add base64 library

This commit is contained in:
MihailRis
2024-11-18 11:52:06 +03:00
parent 712c0756b8
commit 0bfc5d2ad4
6 changed files with 62 additions and 3 deletions
+2 -2
View File
@@ -363,8 +363,8 @@ util::Buffer<ubyte> util::base64_decode(const char* str, size_t size) {
return bytes;
}
util::Buffer<ubyte> util::base64_decode(const std::string& str) {
return base64_decode(str.c_str(), str.size());
util::Buffer<ubyte> util::base64_decode(std::string_view str) {
return base64_decode(str.data(), str.size());
}
int util::replaceAll(