sfparse_base64decode¶
Synopsis¶
#include <sfparse.h>
-
void sfparse_base64decode(sfparse_vec *dest, const sfparse_vec *src)¶
sfparse_base64decode()decodes Base64 encoded string src and writes the result into dest. src should be the pointer tosfparse_value.vecof typesfparse_type.SFPARSE_TYPE_BYTESEQproduced by eithersfparse_parser_dict(),sfparse_parser_list(),sfparse_parser_inner_list(),sfparse_parser_item(), orsfparse_parser_param(), otherwise the behavior is undefined.dest->basemust point to the buffer that has sufficient space to store the decoded byte string.This function sets the length of decoded byte string to
dest->len.