microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
c3145b8f52cb80bda7a3a073f73e818987196f77

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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
9bool base64_encode(const std::vector<uint8_t>& input, std::string& encoded);
10bool base64_decode(const std::string& encoded, std::vector<uint8_t>& raw);
11