Typedefs | Functions
Base64.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef unsigned char b64_data_t
 
typedef unsigned int b64_size_t
 

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)
 

Typedef Documentation

typedef unsigned char b64_data_t

type for raw base64 data

Definition at line 23 of file Base64.h.

typedef unsigned int b64_size_t

type for size of a buffer, it saves passing around size_t (unsigned long long or unsigned long int)

Definition at line 21 of file Base64.h.

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