Base64 encoding/decoding. More...
#include <Base64.h>
Static Public Member Functions | |
static void | encode (Buffer &bufDest, const uint8_t *bufSource, size_t len) |
Data encoding. Encodes data (base64) in given buffer bufSource to destination buffer bufDest. More... | |
static void | encode (Buffer &bufDest, const Buffer &bufSource) |
Data encoding. Encodes data (base64) in given buffer bufSource to destination buffer bufDest. More... | |
static void | encode (String &strDest, const Buffer &bufSource) |
Data encoding. Encodes data (base64) in given buffer bufSource and returns result in std::string. More... | |
static size_t | decode (Buffer &bufDest, const Buffer &bufSource) |
Data decoding. Decodes base64 encoded buffer bufSource into buffer bufDest. Throws CException in case of error. More... | |
static size_t | decode (Buffer &bufDest, const String &strSource) |
Data decoding. Decodes base64 encoded string strSource into buffer bufDest. Throws CException in case of error. More... | |
Base64 encoding/decoding.
This class is used for encoding and decoding the parts of mail messages. All the methods of this class are static.
Data decoding. Decodes base64 encoded buffer bufSource into buffer bufDest. Throws CException in case of error.
bufDest | Destination buffer |
bufSource | Source buffer that holds base64 decoded data |
Data decoding. Decodes base64 encoded string strSource into buffer bufDest. Throws CException in case of error.
bufDest | Destination buffer |
strSource | Source string that holds base64 decoded data |
Data encoding. Encodes data (base64) in given buffer bufSource to destination buffer bufDest.
bufDest | Destination buffer |
bufSource | Source buffer |
|
static |
Data encoding. Encodes data (base64) in given buffer bufSource to destination buffer bufDest.
bufDest | Destination buffer |
bufSource | Source buffer |
len | Size of source buffer |
Data encoding. Encodes data (base64) in given buffer bufSource and returns result in std::string.
strDest | Destination string |
bufSource | Source buffer |