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 
15 namespace orcus {
16 
25 ORCUS_PSR_DLLPUBLIC void decode_from_base64(const char* p_base64, size_t len_base64, std::vector<char>& decoded);
26 
34 ORCUS_PSR_DLLPUBLIC void encode_to_base64(const std::vector<char>& input, std::string& encoded);
35 
36 }
37 
38 #endif
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: base64.hpp:15