base coding
[utils]

Base Coding functions. More...

Functions

u32 gf_base64_encode (char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size)
 base64 encoder
u32 gf_base64_decode (char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size)
 base64 decoder
u32 gf_base16_encode (char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size)
 base16 encoder
u32 gf_base16_decode (char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size)
 base16 decoder

Detailed Description

This section documents the base encoding and decoding functions of the GPAC framework.


Function Documentation

u32 gf_base64_encode ( char *  in_buffer,
u32  in_buffer_size,
char *  out_buffer,
u32  out_buffer_size 
)

Encodes a data buffer to Base64

Parameters:
in_buffer input data buffer
in_buffer_size input data buffer size
out_buffer output Base64 buffer location
out_buffer_size output Base64 buffer allocated size
Returns:
size of the encoded Base64 buffer
Note:
the encoded data buffer is not NULL-terminated.
u32 gf_base64_decode ( char *  in_buffer,
u32  in_buffer_size,
char *  out_buffer,
u32  out_buffer_size 
)

Decodes a Base64 buffer to data

Parameters:
in_buffer input Base64 buffer
in_buffer_size input Base64 buffer size
out_buffer output data buffer location
out_buffer_size output data buffer allocated size
Returns:
size of the decoded buffer
u32 gf_base16_encode ( char *  in_buffer,
u32  in_buffer_size,
char *  out_buffer,
u32  out_buffer_size 
)

Encodes a data buffer to Base16

Parameters:
in_buffer input data buffer
in_buffer_size input data buffer size
out_buffer output Base16 buffer location
out_buffer_size output Base16 buffer allocated size
Returns:
size of the encoded Base16 buffer
Note:
the encoded data buffer is not NULL-terminated.
u32 gf_base16_decode ( char *  in_buffer,
u32  in_buffer_size,
char *  out_buffer,
u32  out_buffer_size 
)

Decodes a Base16 buffer to data

Parameters:
in_buffer input Base16 buffer
in_buffer_size input Base16 buffer size
out_buffer output data buffer location
out_buffer_size output data buffer allocated size
Returns:
size of the decoded buffer

Generated by  doxygen 1.6.2