radarlib
1.4.6
base64.hpp
Go to the documentation of this file.
1
/*
2
* Radar Library
3
*
4
* Copyright (C) 2009-2010 ARPA-SIM <urpsim@smr.arpa.emr.it>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program; if not, write to the Free Software Foundation, Inc.,
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
*
20
* Author: Guido Billi <guidobilli@gmail.com>
21
*/
22
27
#ifndef __RADAR_BASE64_HPP__
28
#define __RADAR_BASE64_HPP__
29
30
#include <string>
31
#include <vector>
32
33
#include <
radarlib/defs.h
>
34
35
namespace
Radar {
36
37
/*===========================================================================*/
38
45
class
RADAR_API
Base64
46
{
47
public
:
54
static
size_t
encodeSize(
size_t
buffsize);
63
static
void
encode(std::string& b64str,
const
void
* buff,
size_t
buffsize);
70
static
size_t
decodeSize(
const
std::string& b64str);
77
static
unsigned
char
* decode(
const
std::string& b64str);
85
static
unsigned
char
* decode(
const
std::string& b64str,
size_t
* resultSize);
93
static
void
decode(std::vector<unsigned char>& result,
const
std::string& b64str);
94
};
95
96
/*===========================================================================*/
97
98
}
99
100
#endif
Radar::Base64
Base64 encoding class.
Definition
base64.hpp:46
defs.h
Internal library macros.
radarlib
base64.hpp
Generated on Fri May 28 2021 00:00:00 for radarlib by
1.10.0