libgpac  0.5.0
Functions
base coding

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 More...
 
u32 gf_base64_decode (char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size)
 base64 decoder More...
 
u32 gf_base16_encode (char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size)
 base16 encoder More...
 
u32 gf_base16_decode (char *in_buffer, u32 in_buffer_size, char *out_buffer, u32 out_buffer_size)
 base16 decoder More...
 

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_bufferinput data buffer
in_buffer_sizeinput data buffer size
out_bufferoutput Base64 buffer location
out_buffer_sizeoutput 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_bufferinput Base64 buffer
in_buffer_sizeinput Base64 buffer size
out_bufferoutput data buffer location
out_buffer_sizeoutput 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_bufferinput data buffer
in_buffer_sizeinput data buffer size
out_bufferoutput Base16 buffer location
out_buffer_sizeoutput 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_bufferinput Base16 buffer
in_buffer_sizeinput Base16 buffer size
out_bufferoutput data buffer location
out_buffer_sizeoutput data buffer allocated size
Returns
size of the decoded buffer