#include <Base64Encoder.h>
|
virtual std::string | encode (const unsigned char *data, std::size_t numBytes) const =0 |
| Base64-encodes given data.
|
|
virtual std::string | encode (const std::string &string) const =0 |
| Base64-encodes given string.
|
|
virtual std::string | encodeUrlSafe (const unsigned char *data, std::size_t numBytes) const =0 |
| Encodes given data using URL-safe Base64 encoding.
|
|
virtual std::string | encodeUrlSafe (const std::string &string) const =0 |
| Encodes given string using URL-safe Base64 encoding.
|
|
◆ encode() [1/2]
virtual std::string tenduke::utl::Base64Encoder::encode |
( |
const std::string & |
string | ) |
const |
|
pure virtual |
◆ encode() [2/2]
virtual std::string tenduke::utl::Base64Encoder::encode |
( |
const unsigned char * |
data, |
|
|
std::size_t |
numBytes |
|
) |
| const |
|
pure virtual |
Base64-encodes given data.
- Parameters
-
data | the data |
numBytes | length of data |
- Returns
- Base64-encoded representation of the data
Implemented in tenduke::utl::DefaultBase64Encoder.
◆ encodeUrlSafe() [1/2]
virtual std::string tenduke::utl::Base64Encoder::encodeUrlSafe |
( |
const std::string & |
string | ) |
const |
|
pure virtual |
Encodes given string using URL-safe Base64 encoding.
- Parameters
-
string | the string to encode |
- Returns
- Base64-encoded representation of the string
Implemented in tenduke::utl::DefaultBase64Encoder.
◆ encodeUrlSafe() [2/2]
virtual std::string tenduke::utl::Base64Encoder::encodeUrlSafe |
( |
const unsigned char * |
data, |
|
|
std::size_t |
numBytes |
|
) |
| const |
|
pure virtual |
Encodes given data using URL-safe Base64 encoding.
- Parameters
-
data | the data |
numBytes | length of data |
- Returns
- Base64-encoded representation of the data
Implemented in tenduke::utl::DefaultBase64Encoder.
The documentation for this class was generated from the following file: