Macros | Functions
Base64.c File Reference
#include "Base64.h"
Include dependency graph for Base64.c:

Go to the source code of this file.

Macros

#define NV   64
 

Functions

b64_size_t Base64_decode (b64_data_t *out, b64_size_t out_len, const char *in, b64_size_t in_len)
 
b64_size_t Base64_decodeLength (const char *in, b64_size_t in_len)
 
b64_size_t Base64_encode (char *out, b64_size_t out_len, const b64_data_t *in, b64_size_t in_len)
 
b64_size_t Base64_encodeLength (const b64_data_t *in, b64_size_t in_len)
 

Macro Definition Documentation

#define NV   64

Function Documentation

b64_size_t Base64_decode ( b64_data_t out,
b64_size_t  out_len,
const char *  in,
b64_size_t  in_len 
)

Decodes base64 data

Parameters
[out]outdecoded data
[in]out_lenlength of output buffer
[in]inbase64 string to decode
[in]in_lenlength of input buffer
Returns
the amount of data decoded
See also
Base64_decodeLength
Base64_encode

Definition at line 100 of file Base64.c.

b64_size_t Base64_decodeLength ( const char *  in,
b64_size_t  in_len 
)

Size of buffer required to decode base64 data

Parameters
[in]inbase64 string to decode
[in]in_lenlength of input buffer
Returns
the size of buffer the decoded string would require
See also
Base64_decode
Base64_encodeLength

Definition at line 239 of file Base64.c.

b64_size_t Base64_encode ( char *  out,
b64_size_t  out_len,
const b64_data_t in,
b64_size_t  in_len 
)

Encodes base64 data

Parameters
[out]outencode base64 string
[in]out_lenlength of output buffer
[in]inraw data to encode
[in]in_lenlength of input buffer
Returns
the amount of data encoded
See also
Base64_decode
Base64_encodeLength

Definition at line 179 of file Base64.c.

b64_size_t Base64_encodeLength ( const b64_data_t in,
b64_size_t  in_len 
)

Size of buffer required to encode base64 data

Parameters
[in]inraw data to encode
[in]in_lenlength of input buffer
Returns
the size of buffer the encoded string would require
See also
Base64_decodeLength
Base64_encode

Definition at line 250 of file Base64.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48