Base64 encoder class. More...
#include <base64_encoder.h>
Public Member Functions | |
Construction | |
| CL_Base64Encoder () | |
| Constructs a base64 encoder. | |
Attributes | |
| CL_DataBuffer & | get_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. | |
Base64 encoder class.
| CL_Base64Encoder::CL_Base64Encoder | ( | ) |
Constructs a base64 encoder.
| 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.
| data | = Data Buffer |
| static CL_String8 CL_Base64Encoder::encode | ( | const CL_StringRef8 & | data | ) | [static] |
Encode.
| data | = String Ref8 |
| 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.
1.7.1