RDK Documentation (Open Sourced RDK Components)
_base64.h File Reference

base64 source Encoder/Decoder More...

#include <stddef.h>
Include dependency graph for _base64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * base64_Encode (const unsigned char *src, size_t len)
 convert blob of binary data to ascii base64-encoded equivalent More...
 
unsigned char * base64_Decode (const char *src, size_t *len)
 decode base64 encoded data to binary equivalent More...
 
unsigned char * base64_Decode (const char *src, size_t *len, size_t srcLen)
 decode base64 encoded data to binary equivalent More...
 

yes

base64 source Encoder/Decoder

Definition in file _base64.h.

Function Documentation

◆ base64_Encode()

char* base64_Encode ( const unsigned char *  src,
size_t  len 
)

convert blob of binary data to ascii base64-encoded equivalent

Return values
pointerto malloc'd cstring containing base64 encoded version of string
NULLif insufficient memory to allocate base64-encoded copy
Note
caller responsible for freeing returned cstring

Definition at line 37 of file _base64.cpp.

◆ base64_Decode() [1/2]

unsigned char* base64_Decode ( const char *  src,
size_t *  len 
)

decode base64 encoded data to binary equivalent

Return values
pointerto malloc'd memory containing decoded binary data
NULLif insufficient memory to allocate base64-decoded data
Note
caller responsible for freeing returned data

Definition at line 172 of file _base64.cpp.

◆ base64_Decode() [2/2]

unsigned char* base64_Decode ( const char *  src,
size_t *  len,
size_t  srcLen 
)

decode base64 encoded data to binary equivalent

Return values
returnvalue from base64_Decode value

Definition at line 91 of file _base64.cpp.