06fc4cadbe
When attempting to decode a base64 string, while there is a way to calculate the maximum possible decode length, there isn't a way to calculate the exact decode length without duplicating some base64 specific logic located in spdk_base64_decode. With this change, the spdk_base64_decode function can now optionally calculate the exact decode length without actually performing the decode by passing NULL in as the dst argument. Change-Id: Ice83db979f86a6fe9f39d236d3083102ca37ec68 Signed-off-by: Mike Carlin <mikefcarlin@protonmail.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/479479 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
||
---|---|---|
.. | ||
base64_neon.c | ||
base64.c | ||
bit_array.c | ||
cpuset.c | ||
crc16.c | ||
crc32_ieee.c | ||
crc32.c | ||
crc32c.c | ||
dif.c | ||
fd.c | ||
file.c | ||
iov.c | ||
Makefile | ||
math.c | ||
pipe.c | ||
strerror_tls.c | ||
string.c | ||
uuid.c |