CppCMS

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

base64.h
1 //
3 // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
4 //
5 // See accompanying file COPYING.TXT file for licensing details.
6 //
8 #ifndef CPPCMS_BASE64_H
9 #define CPPCMS_BASE64_H
10
11 #include <cppcms/defs.h>
12 #include <string>
13 #include <iosfwd>
14
15
16 namespace cppcms {
22 namespace b64url {
23
27 int CPPCMS_API encoded_size(size_t s);
33 int CPPCMS_API decoded_size(size_t s);
34
41 unsigned char CPPCMS_API *encode(unsigned char const *begin,unsigned char const *end,unsigned char *target);
45 void encode(unsigned char const *begin,unsigned char const *end,std::ostream &output);
46
55 unsigned char CPPCMS_API *decode(unsigned char const *begin,unsigned char const *end,unsigned char *target);
56
63 bool CPPCMS_API decode(std::string const &input,std::string &output);
68 std::string CPPCMS_API encode(std::string const &input);
69 }
70 }
71
72
73 #endif
cppcms::b64url::encode
unsigned char CPPCMS_API * encode(unsigned char const *begin, unsigned char const *end, unsigned char *target)
cppcms
This is the namespace where all CppCMS functionality is placed.
Definition: application.h:19
cppcms::b64url::encoded_size
int CPPCMS_API encoded_size(size_t s)
cppcms::b64url::decode
unsigned char CPPCMS_API * decode(unsigned char const *begin, unsigned char const *end, unsigned char *target)
cppcms::b64url::decoded_size
int CPPCMS_API decoded_size(size_t s)