47 template<
typename DataIn>
48 static void encode(
const DataIn &in, std::string &out);
57 template<
typename DataIn>
58 static std::string
encode(
const DataIn &in);
66 template<
typename DataOut>
67 static void decode(
const std::string &in, DataOut &out);
75 template<
typename DataOut>
76 static DataOut
decode(
const std::string &in);
78 static const std::string base64_chars;
88 static inline bool isBase64(
unsigned char c) {
89 return (isalnum(c) || (c ==
'+') || (c ==
'/'));
~Base64()
Definition: Base64.h:39
static void encode(const DataIn &in, std::string &out)
Encodes a string to Base64.
Definition: Base64.cpp:37
Definition: BaseLib.cpp:34
static void decode(const std::string &in, DataOut &out)
Decodes a Base64 encoded string.
Definition: Base64.cpp:139