VAPoR
0.1
|
#include <Base64.h>
Public Member Functions | |
Base64 () | |
~Base64 () | |
void | Encode (const unsigned char *input, size_t n, string &output) |
void | EncodeStreamBegin (string &output) |
void | EncodeStreamNext (const unsigned char *input, size_t n, string &output) |
void | EncodeStreamEnd (string &output) |
size_t | GetEncodeSize (size_t n) |
int | Decode (const string &input, unsigned char *output, size_t *n) |
Public Member Functions inherited from VetsUtil::MyBase | |
MyBase () | |
const string & | getClassName () const |
Additional Inherited Members | |
Public Types inherited from VetsUtil::MyBase | |
typedef void(* | ErrMsgCB_T )(const char *msg, int err_code) |
typedef void(* | DiagMsgCB_T )(const char *msg) |
Static Public Member Functions inherited from VetsUtil::MyBase | |
static void | SetErrMsg (const char *format,...) |
Record a formatted error message. More... | |
static void | SetErrMsg (int errcode, const char *format,...) |
Record a formatted error message and an error code. More... | |
static const char * | GetErrMsg () |
static void | SetErrCode (int err_code) |
Record an error code. More... | |
static int | GetErrCode () |
Retrieve the current error code. More... | |
static void | SetErrMsgCB (ErrMsgCB_T cb) |
static ErrMsgCB_T | GetErrMsgCB () |
static void | SetErrMsgFilePtr (FILE *fp) |
static const FILE * | SetErrMsgFilePtr () |
static void | SetDiagMsg (const char *format,...) |
Record a formatted diagnostic message. More... | |
static const char * | GetDiagMsg () |
static void | SetDiagMsgCB (DiagMsgCB_T cb) |
static DiagMsgCB_T | GetDiagMsgCB () |
static void | SetDiagMsgFilePtr (FILE *fp) |
static bool | EnableErrMsg (bool enable) |
Static Public Attributes inherited from VetsUtil::MyBase | |
static char * | ErrMsg |
static int | ErrCode |
static int | ErrMsgSize |
static FILE * | ErrMsgFilePtr |
static ErrMsgCB_T | ErrMsgCB |
static char * | DiagMsg |
static int | DiagMsgSize |
static FILE * | DiagMsgFilePtr |
static DiagMsgCB_T | DiagMsgCB |
static bool | Enabled |
Protected Member Functions inherited from VetsUtil::MyBase | |
void | SetClassName (const string &name) |
VetsUtil::Base64::Base64 | ( | ) |
VetsUtil::Base64::~Base64 | ( | ) |
int VetsUtil::Base64::Decode | ( | const string & | input, |
unsigned char * | output, | ||
size_t * | n | ||
) |
void VetsUtil::Base64::Encode | ( | const unsigned char * | input, |
size_t | n, | ||
string & | output | ||
) |
void VetsUtil::Base64::EncodeStreamBegin | ( | string & | output | ) |
void VetsUtil::Base64::EncodeStreamEnd | ( | string & | output | ) |
void VetsUtil::Base64::EncodeStreamNext | ( | const unsigned char * | input, |
size_t | n, | ||
string & | output | ||
) |
size_t VetsUtil::Base64::GetEncodeSize | ( | size_t | n | ) |
Size returned is guaranteed to be large enough (maybe larger)