nopoll_bool nopoll_base64_encode ( const char *  content,
int  length,
char *  output,
int *  output_size 
)

Allows to encode the provided content, leaving the output on the buffer allocated by the caller.

Parameters
contentThe content to be encoded.
lengthContent byte-length to encode.
outputReference to the already allocated buffer where to place the output.
output_sizeThe buffer size.
Returns
nopoll_true if the conversion was properly done, otherwise nopoll_false is returned. The function also returns nopoll_false in the case some parameter is not defined.

References nopoll_false, and nopoll_true.