LibDap
This library contains the basic modules that are used in the products of the family DAP
Macros | Typedefs | Enumerations | Functions
dap_enc_base64.h File Reference
#include <stddef.h>

Go to the source code of this file.

Macros

#define DAP_ENC_BASE64_ENCODE_SIZE(in_size)   (((4 * (size_t)in_size / 3) + 3) & ~3)
 

Typedefs

typedef enum dap_enc_b64_standard dap_enc_b64_standard_t
 

Enumerations

enum  dap_enc_b64_standard { DAP_ENC_STANDARD_B64, DAP_ENC_STANDARD_B64_URLSAFE }
 

Functions

size_t dap_enc_base64_decode (const char *in, size_t in_size, void *out, dap_enc_b64_standard_t standard)
 dap_enc_base64_decode Function of reverse transformation of base64 algorithm More...
 
size_t dap_enc_base64_encode (const void *in, size_t in_size, char *out, dap_enc_b64_standard_t standard)
 dap_enc_base64_encode The function encodes the array according to the base64 algorithm More...
 

Macro Definition Documentation

#define DAP_ENC_BASE64_ENCODE_SIZE (   in_size)    (((4 * (size_t)in_size / 3) + 3) & ~3)

Typedef Documentation

Enumeration Type Documentation

Enumerator
DAP_ENC_STANDARD_B64 
DAP_ENC_STANDARD_B64_URLSAFE 

Function Documentation

size_t dap_enc_base64_decode ( const char *  in,
size_t  in_size,
void *  out,
dap_enc_b64_standard_t  standard 
)

dap_enc_base64_decode Function of reverse transformation of base64 algorithm

Parameters
[in]inPointer to an array with incoming data
[in]in_sizeSize of the array with outgoing data
[out]outPointer to an array with outgoing data
Returns
Size of the array with outgoing data
size_t dap_enc_base64_encode ( const void *  a_in,
size_t  a_in_size,
char *  a_out,
dap_enc_b64_standard_t  standard 
)

dap_enc_base64_encode The function encodes the array according to the base64 algorithm

Parameters
[in]a_inArray with incoming data
[in]a_in_sizeThe size of the deviance array in the a_in parameter
[out]a_outA pointer to an array in which the data will be after encoding
Returns
Size of the array with outgoing data