speedup base64 code by reserving memory

This commit is contained in:
Benjamin Sergeant
2019-09-24 14:17:03 -07:00
parent d3cee46e93
commit 5c18ffdae2
2 changed files with 10 additions and 2 deletions

View File

@@ -11,5 +11,6 @@
namespace ix
{
std::string base64_encode(const std::string& data, size_t len);
std::string base64_encode(const char* data, size_t len);
std::string base64_decode(const std::string& encoded_string);
} // namespace ix