Luna::base85_decode
usize base85_decode(void *dst, usize dst_max_bytes, const c8 *src, usize src_size_chars=USIZE_MAX)
Decode a base85 string to binary data. The system assumes the string passed in is a valid base85 string.
Parameters
-
in dst
The binary buffer used to hold the decoded data.
-
in dst_max_bytes
The maximum bytes the
dst
buffer can hold. -
in src
The null-terminated base85 source string.
-
in src_size_chars
The maximum characters to read in the
src
string. SpecifyUSIZE_MAX
to read the full string.
Return value
Returns the number of bytes decoded into the dst
buffer.
Valid Usage
- If
src_size_bytes
is neither0
norUSIZE_MAX
,src_size_bytes
must be times of 5.