Orcus
base64.hpp
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 */
7
8#ifndef __ORCUS_BASE64_HPP__
9#define __ORCUS_BASE64_HPP__
10
11#include "env.hpp"
12#include <vector>
13#include <string>
14
15namespace orcus {
16
23ORCUS_PSR_DLLPUBLIC std::vector<uint8_t> decode_from_base64(std::string_view base64);
24
31ORCUS_PSR_DLLPUBLIC std::string encode_to_base64(const std::vector<uint8_t>& input);
32
33}
34
35#endif
36/* vim:set shiftwidth=4 softtabstop=4 expandtab: */