Base64 decoder class. More...

#include <base64_decoder.h>

Public Member Functions

 Base64Decoder ()
 Constructs a base64 decoder. More...
 
void feed (const void *data, int size, bool append_result=true)
 Feeds the decoder with base64 encoded data. More...
 
DataBufferget_result ()
 Returns the decoded data. More...
 
void reset ()
 Resets the decoder. More...
 

Static Public Member Functions

static DataBuffer decode (const void *data, int size)
 Decode base64 data and return it in a buffer. More...
 
static DataBuffer decode (const std::string &data)
 Decode. More...
 
static DataBuffer decode (const DataBuffer &data)
 Decode. More...
 

Detailed Description

Base64 decoder class.

Constructor & Destructor Documentation

clan::Base64Decoder::Base64Decoder ( )

Constructs a base64 decoder.

Member Function Documentation

static DataBuffer clan::Base64Decoder::decode ( const void *  data,
int  size 
)
static

Decode base64 data and return it in a buffer.

static DataBuffer clan::Base64Decoder::decode ( const std::string data)
static

Decode.

Parameters
data= String Ref8
Returns
Data Buffer
static DataBuffer clan::Base64Decoder::decode ( const DataBuffer data)
static

Decode.

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

Feeds the decoder with base64 encoded data.

DataBuffer& clan::Base64Decoder::get_result ( )

Returns the decoded data.

void clan::Base64Decoder::reset ( )

Resets the decoder.


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