CL_Base64Encoder Class Reference
[clanCore Math]

Base64 encoder class. More...

#include <base64_encoder.h>

List of all members.

Public Member Functions

Construction

 CL_Base64Encoder ()
 Constructs a base64 encoder.
Attributes

CL_DataBufferget_result ()
 Returns the data in encoded form.

Operations



void reset ()
 Resets the encoder.
void feed (const void *data, int size, bool append_result=true)
 Feeds the encoder with more data.
void finalize (bool append_result=true)
 Ends the base64 encoding.
static CL_String8 encode (const void *data, int size)
 Base64 encodes data and returns it as an 8 bit string.
static CL_String8 encode (const CL_StringRef8 &data)
 Encode.
static CL_String8 encode (const CL_DataBuffer &data)
 Encode.

Detailed Description

Base64 encoder class.


Constructor & Destructor Documentation

CL_Base64Encoder::CL_Base64Encoder (  ) 

Constructs a base64 encoder.


Member Function Documentation

static CL_String8 CL_Base64Encoder::encode ( const void *  data,
int  size 
) [static]

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

static CL_String8 CL_Base64Encoder::encode ( const CL_DataBuffer data  )  [static]

Encode.

Parameters:
data = Data Buffer
Returns:
String8
static CL_String8 CL_Base64Encoder::encode ( const CL_StringRef8 data  )  [static]

Encode.

Parameters:
data = String Ref8
Returns:
String8
void CL_Base64Encoder::feed ( const void *  data,
int  size,
bool  append_result = true 
)

Feeds the encoder with more data.

void CL_Base64Encoder::finalize ( bool  append_result = true  ) 

Ends the base64 encoding.

CL_DataBuffer& CL_Base64Encoder::get_result (  ) 

Returns the data in encoded form.

void CL_Base64Encoder::reset (  ) 

Resets the encoder.


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