Jameo Core Library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
jm::Base64 Class Reference

Implementation of the BASE64 algorithm. More...

Static Public Member Functions

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.
 

Detailed Description

Implementation of the BASE64 algorithm.

Member Function Documentation

◆ decode()

static uint8 * jm::Base64::decode ( const uint8 *  data,
size_t &  length 
)
static

Decodes the data stream with the BASE64 algorithm.

Parameters
dataThe data to be decoded.
lengthThe 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
dataThe data to be encoded.
lengthThe 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.