Base64 encoder class.
More...
#include <base64_encoder.h>
|
virtual void | feed (const void *data, int size, bool append_result=true)=0 |
| Feeds the encoder with more data. More...
|
|
virtual void | finalize (bool append_result=true)=0 |
| Ends the base64 encoding. More...
|
|
virtual void | reset ()=0 |
| Resets the encoder. More...
|
|
virtual const DataBufferPtr & | result () const =0 |
| Returns the data in encoded form. More...
|
|
static std::shared_ptr<Base64Encoder> uicore::Base64Encoder::create |
( |
| ) |
|
|
static |
Constructs a base64 encoder.
static std::string uicore::Base64Encoder::encode |
( |
const void * |
data, |
|
|
int |
size |
|
) |
| |
|
static |
Base64 encodes data and returns it as a string.
virtual void uicore::Base64Encoder::feed |
( |
const void * |
data, |
|
|
int |
size, |
|
|
bool |
append_result = true |
|
) |
| |
|
pure virtual |
Feeds the encoder with more data.
virtual void uicore::Base64Encoder::finalize |
( |
bool |
append_result = true | ) |
|
|
pure virtual |
Ends the base64 encoding.
virtual void uicore::Base64Encoder::reset |
( |
| ) |
|
|
pure virtual |
virtual const DataBufferPtr& uicore::Base64Encoder::result |
( |
| ) |
const |
|
pure virtual |
Returns the data in encoded form.
The documentation for this class was generated from the following file: