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