ClanLib
2.3.7
|
Base64 encoder class. More...
#include <base64_encoder.h>
Public Member Functions | |
Construction | |
CL_Base64Encoder () | |
Constructs a base64 encoder. More... | |
Attributes | |
CL_DataBuffer & | get_result () |
Returns the data in encoded form. More... | |
Operations | |
void | reset () |
Resets the 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... | |
static CL_String8 | encode (const void *data, int size) |
Base64 encodes data and returns it as an 8 bit string. More... | |
static CL_String8 | encode (const CL_StringRef8 &data) |
Encode. More... | |
static CL_String8 | encode (const CL_DataBuffer &data) |
Encode. More... | |
Base64 encoder class.
CL_Base64Encoder::CL_Base64Encoder | ( | ) |
Constructs a base64 encoder.
|
static |
Base64 encodes data and returns it as an 8 bit string.
|
static |
Encode.
data | = String Ref8 |
|
static |
Encode.
data | = Data Buffer |
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.