10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::utl::DefaultBase64Encoder Class Reference

#include <DefaultBase64Encoder.h>

Detailed Description

Default tenduke::utl::Base64Encoder implementation.

Inheritance diagram for tenduke::utl::DefaultBase64Encoder:
tenduke::utl::Base64Encoder

Public Member Functions

std::string encode (const unsigned char *data, std::size_t numBytes) const override
 Base64-encodes given data.
 
std::string encode (const std::string &string) const override
 Base64-encodes given string.
 
std::string encodeUrlSafe (const unsigned char *, std::size_t numBytes) const override
 Encodes given data using URL-safe Base64 encoding.
 
std::string encodeUrlSafe (const std::string &string) const override
 Encodes given string using URL-safe Base64 encoding.
 

Member Function Documentation

◆ encode() [1/2]

std::string tenduke::utl::DefaultBase64Encoder::encode ( const std::string &  string) const
overridevirtual

Base64-encodes given string.

Parameters
stringthe string to encode
Returns
Base64-encoded representation of the string

Implements tenduke::utl::Base64Encoder.

◆ encode() [2/2]

std::string tenduke::utl::DefaultBase64Encoder::encode ( const unsigned char *  data,
std::size_t  numBytes 
) const
overridevirtual

Base64-encodes given data.

Parameters
datathe data
numByteslength of data
Returns
Base64-encoded representation of the data

Implements tenduke::utl::Base64Encoder.

◆ encodeUrlSafe() [1/2]

std::string tenduke::utl::DefaultBase64Encoder::encodeUrlSafe ( const std::string &  string) const
overridevirtual

Encodes given string using URL-safe Base64 encoding.

Parameters
stringthe string to encode
Returns
Base64-encoded representation of the string

Implements tenduke::utl::Base64Encoder.

◆ encodeUrlSafe() [2/2]

std::string tenduke::utl::DefaultBase64Encoder::encodeUrlSafe ( const unsigned char *  data,
std::size_t  numBytes 
) const
overridevirtual

Encodes given data using URL-safe Base64 encoding.

Parameters
datathe data
numByteslength of data
Returns
Base64-encoded representation of the data

Implements tenduke::utl::Base64Encoder.


The documentation for this class was generated from the following files: