Base64 encoder class. More...

#include <base64_encoder.h>

Public Member Functions

 Base64Encoder ()
 Constructs a base64 encoder. More...
 
void feed (const void *data, int size, bool append_result=true)
 Feeds the encoder with more data. More...
 
void finalize (bool append_result=true)
 Ends the base64 encoding. More...
 
DataBufferget_result ()
 Returns the data in encoded form. More...
 
void reset ()
 Resets the encoder. More...
 

Static Public Member Functions

static std::string encode (const void *data, int size)
 Base64 encodes data and returns it as an 8 bit string. More...
 
static std::string encode (const std::string &data)
 Encode. More...
 
static std::string encode (const DataBuffer &data)
 Encode. More...
 

Detailed Description

Base64 encoder class.

Constructor & Destructor Documentation

clan::Base64Encoder::Base64Encoder ( )

Constructs a base64 encoder.

Member Function Documentation

static std::string clan::Base64Encoder::encode ( const void *  data,
int  size 
)
static

Base64 encodes data and returns it as an 8 bit string.

static std::string clan::Base64Encoder::encode ( const std::string data)
static

Encode.

Parameters
data= String Ref8
Returns
String8
static std::string clan::Base64Encoder::encode ( const DataBuffer data)
static

Encode.

Parameters
data= Data Buffer
Returns
String8
void clan::Base64Encoder::feed ( const void *  data,
int  size,
bool  append_result = true 
)

Feeds the encoder with more data.

void clan::Base64Encoder::finalize ( bool  append_result = true)

Ends the base64 encoding.

DataBuffer& clan::Base64Encoder::get_result ( )

Returns the data in encoded form.

void clan::Base64Encoder::reset ( )

Resets the encoder.


The documentation for this class was generated from the following file: