Class Index Cross Index Namespace Index

Class Base64

Base 64 Conversion
Contained in: global
Derived from: none
Derived by: none

#include "general/base64.hh"


public function member index:

static size_t calculateDecodedSize(const char* s); Compute number of output bytes given a null terminated string
static size_t calculateEncodedSize(size_t bytes); Compute number of output bytes given the number of input bytes
static size_t decode(bit_vector& Destination, const std::string& Source); Decode bit_vector
static size_t decode(void* destination, const char* source); Decode generic 8 bit data
static size_t encode(std::string& Destination, const bit_vector& Source); Encode bit_vector
static size_t encode(char* destination, const void* source, size_t size); Encode generic 8 bit data
static void setNumCharactersPerLine(const int num); Establish the number of characters per line
 

private function member index:

static bool getChar(const char** source, unsigned char& c); Get next Base64 value
 

Description:

This class is used to convert to and from Base 64. Base 64 is a way to encode binary data using printable ASCII characters. It uses 4 characters for every 3 bytes. This is a static class.


Function Member Descriptions:


Base64::calculateDecodedSize - Compute number of output bytes given a null terminated string


static size_t calculateDecodedSize(const char* s);