Base64 encoder/decoder class. More...
#include <yateclass.h>
Public Member Functions | |
| Base64 () | |
| Base64 (void *src, unsigned int len, bool copyData=true) | |
| void | encode (String &dest, unsigned int lineLen=0, bool lineAtEnd=false) |
| bool | decode (DataBlock &dest, bool liberal=true) |
| Base64 & | operator<< (const String &value) |
| Base64 & | operator<< (const DataBlock &data) |
| Base64 & | operator<< (const char *value) |
Base64 encoder/decoder class.
Base64 encoder/decoder class
| Base64 | ( | ) | [inline] |
Constructor
| Base64 | ( | void * | src, | |
| unsigned int | len, | |||
| bool | copyData = true | |||
| ) | [inline] |
Constructor. Set the buffer
| src | Initial data buffer | |
| len | Initial data buffer length | |
| copyData | True to make a copy of the received data |
| bool decode | ( | DataBlock & | dest, | |
| bool | liberal = true | |||
| ) |
Decode this buffer to a destination one
| void encode | ( | String & | dest, | |
| unsigned int | lineLen = 0, |
|||
| bool | lineAtEnd = false | |||
| ) |
Encode this buffer to a destination string
| dest | Destination string | |
| lineLen | The length of a line. If non 0, a line break (CR/LF) will be inserted in the encoded data after each lineLine characters. No line break will be added after the last line. Use the lineAtEnd parameter to do that | |
| lineAtEnd | True to add a line break at the end of encoded data |
| Base64& operator<< | ( | const char * | value | ) | [inline] |
Base64 append operator for C strings
References Base64::operator<<().
Referenced by Base64::operator<<().
1.6.3