27#ifndef __RADAR_BASE64_HPP__
28#define __RADAR_BASE64_HPP__
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);
Base64 encoding class.
Definition base64.hpp:46
static unsigned char * decode(const std::string &b64str)
Decode a base64 string allocating a new buffer.
Definition base64.cpp:408
static void encode(std::string &b64str, const void *buff, size_t buffsize)
Encode a buffer into a std::string.
Definition base64.cpp:388
static size_t encodeSize(size_t buffsize)
Calculate the length of the base64 string that would result converting a buffer large 'buffsize' byte...
Definition base64.cpp:381
static size_t decodeSize(const std::string &b64str)
Calculate the length of the binary buffer that would result deconverting the indicated base64 string.
Definition base64.cpp:395