Mercurial > hg > orthanc
diff Resources/ThirdParty/base64/base64.h @ 3325:2e7c5c15ba25
reserve size for base64 decoding + avoid copy. In a test in WASM, encoding 3MB took 110ms instead of 1400ms previously
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 21 Mar 2019 09:57:31 +0100 |
parents | f0544ab9396b |
children |
line wrap: on
line diff
--- a/Resources/ThirdParty/base64/base64.h Tue Mar 19 09:00:34 2019 +0100 +++ b/Resources/ThirdParty/base64/base64.h Thu Mar 21 09:57:31 2019 +0100 @@ -1,4 +1,4 @@ #include <string> -std::string base64_encode(const std::string& stringToEncode); -std::string base64_decode(const std::string& s); +void base64_encode(std::string& result, const std::string& stringToEncode); +void base64_decode(std::string& result, const std::string& s);