Implementation of the BASE64 algorithm.
More...
|
| static uint8 * | encode (const uint8 *data, size_t &length) |
| | Encodes the data stream with the BASE64 algorithm.
|
| |
| static uint8 * | decode (const uint8 *data, size_t &length) |
| | Decodes the data stream with the BASE64 algorithm.
|
| |
Implementation of the BASE64 algorithm.
◆ decode()
| static uint8 * jm::Base64::decode |
( |
const uint8 * |
data, |
|
|
size_t & |
length |
|
) |
| |
|
static |
Decodes the data stream with the BASE64 algorithm.
- Parameters
-
| data | The data to be decoded. |
| length | The length of the input buffer. After exiting the method, the length of the output buffer is returned here. |
- Returns
- The output buffer. The caller of the method takes over the array and has to clean it up by himself.
◆ encode()
| static uint8 * jm::Base64::encode |
( |
const uint8 * |
data, |
|
|
size_t & |
length |
|
) |
| |
|
static |
Encodes the data stream with the BASE64 algorithm.
- Parameters
-
| data | The data to be encoded. |
| length | The length of the input buffer. After exiting the method, the length of the output buffer is returned here. |
- Returns
- The output buffer. The caller of the method takes over the array and has to clean it up by himself.