ioLibrary for Cortex M series
Functions
Collaboration diagram for Base64:

Functions

int32_t base64_decode (int8_t *text, uint8_t *dst, int32_t numBytes)
 
int32_t base64_encode (int8_t *text, int32_t numBytes, int8_t *encodedText)
 

Detailed Description

Base64 Codec. Base64 Utilities which is used at SMTP or something.

Function Documentation

int32_t base64_decode ( int8_t *  text,
uint8_t *  dst,
int32_t  numBytes 
)

Decode string with base64 protocol. Normally, this is used for SMTP or something.

Parameters
textString to decode
dstThe buffer in which decoded string will enter
numBytesDst buffer size
Returns
Decoded string size

Definition at line 366 of file util.c.

int32_t base64_encode ( int8_t *  text,
int32_t  numBytes,
int8_t *  encodedText 
)

Encode string with base64 protocol. Normally, this is used for SMTP or something.

Parameters
textString to encode
numBytesencodedText buffer size
encodedTextThe buffer in which encoded string will enter
Returns
always return 0

Definition at line 418 of file util.c.