Mercurial > hg > orthanc
annotate Resources/ThirdParty/base64/base64.h @ 3407:b7728227a852
C++ wrappers: compatibility mode if missing OrthancPluginRegisterMultipartRestCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 08 Jun 2019 11:57:46 +0200 |
parents | 2e7c5c15ba25 |
children |
rev | line source |
---|---|
2102
f0544ab9396b
fix line endings for msvc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
950
diff
changeset
|
1 #include <string> |
f0544ab9396b
fix line endings for msvc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
950
diff
changeset
|
2 |
3325
2e7c5c15ba25
reserve size for base64 decoding + avoid copy. In a test in WASM, encoding 3MB took 110ms instead of 1400ms previously
Alain Mazy <alain@mazy.be>
parents:
2102
diff
changeset
|
3 void base64_encode(std::string& result, const std::string& stringToEncode); |
2e7c5c15ba25
reserve size for base64 decoding + avoid copy. In a test in WASM, encoding 3MB took 110ms instead of 1400ms previously
Alain Mazy <alain@mazy.be>
parents:
2102
diff
changeset
|
4 void base64_decode(std::string& result, const std::string& s); |