sf_base64decode¶
Synopsis¶
#include <sfparse.h>
-
void sf_base64decode(sf_vec *dest, const sf_vec *src)¶
sf_base64decode()
decodes Base64 encoded string src and writes the result into dest. src should be the pointer tosf_value.vec
of typesf_type.SF_TYPE_BYTESEQ
produced by eithersf_parser_dict()
,sf_parser_list()
,sf_parser_inner_list()
,sf_parser_item()
, orsf_parser_param()
, otherwise the behavior is undefined.dest->base
must 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
.