|
static std::string | encode (const void *data, const size_t dataSize) |
static void | decode (ByteArray &decoded, const std::string &encoded) |
static std::string | encodeUrl (const void *data, const size_t dataSize) |
static void | decodeUrl (ByteArray &decoded, const std::string &encoded) |
Definition at line 30 of file Base64Encoding.h.
◆ decode()
void decode |
( |
ByteArray & | decoded, |
|
|
const std::string & | encoded ) |
|
static |
Reconstructs the binary data from the BASE64-encoded text.
- Exceptions
-
An | exception if the text is corrupted or not BASE64-encoded. |
◆ decodeUrl()
void decodeUrl |
( |
ByteArray & | decoded, |
|
|
const std::string & | encoded ) |
|
static |
Reconstructs the binary data from the BASE64URL-encoded text.
- Exceptions
-
An | exception if the text is corrupted or not BASE64URL-encoded. |
◆ encode()
std::string encode |
( |
const void * | data, |
|
|
const size_t | dataSize ) |
|
static |
Returns the BASE64 presentation of the binary data.
- Note
- Encoding throws nothing.
◆ encodeUrl()
std::string encodeUrl |
( |
const void * | data, |
|
|
const size_t | dataSize ) |
|
static |
Returns the BASE64URL presentation of the binary data.
- Note
- Encoding throws nothing.