microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
base/base64.h
10lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | // Freely inspired from https://en.wikibooks.org/wiki/Algorithm_Implementation/Miscellaneous/Base64 |
| 4 | #pragma once |
| 5 | #include <string> |
| 6 | #include <vector> |
| 7 | #include <cstdint> |
| 8 | |
| 9 | bool base64_encode(const std::vector<uint8_t>& input, std::string& encoded); |
| 10 | bool base64_decode(const std::string& encoded, std::vector<uint8_t>& raw); |
| 11 | |