Base85 encoding/decoding
Functions
-
constexpr usize base85_get_encoded_size(usize raw_size)
Get the encoded base85 string size from the raw data size.
-
constexpr usize base85_get_decoded_size(usize encoded_size)
Get the decoded binary size from the encoded base85 string size.
-
usize base85_encode(c8 dst, usize dst_max_chars, const void src, usize src_size_bytes)
Encode a binary data to a base85 string.
-
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.