NetMauMau  0.24.0
Client API
Public Member Functions | List of all members
NetMauMau::Client::IBase64 Interface Reference

#include <ibase64.h>

Detailed Description

Interface to provide an own implementation of the Base64 algorithm.

The algorithm used to encode/decode Base64-encoded data is defined in RFC 2045.

Deprecated:
do not use this interface anymore
Since
0.11

Public Member Functions

virtual std::vector< unsigned
char > 
decode (std::string const &base64) const =0
 Decode Base64 data.
virtual std::string encode (unsigned char const *buf, unsigned int bufLen) const =0
 Encode to Base64 data.

Member Function Documentation

virtual std::vector<unsigned char> NetMauMau::Client::IBase64::decode ( std::string const &  base64) const
pure virtual

Decode Base64 data.

The algorithm used to decode Base64-encoded data is defined in RFC 2045.

Parameters
base64Base64-encoded data
Returns
decoded Base64 data
virtual std::string NetMauMau::Client::IBase64::encode ( unsigned char const *  buf,
unsigned int  bufLen 
) const
pure virtual

Encode to Base64 data.

The algorithm used to encode Base64-encoded data is defined in RFC 2045.

Parameters
bufthe data to get encoded
bufLenlength of the data to get encoded
Returns
encoded Base64 data