Base64 encoding/decoding
Functions
-
constexpr usize base64_get_encoded_size(usize raw_size)
Get the encoded base64 string size from the raw data size.
-
constexpr usize base64_get_decoded_size(usize encoded_size)
Get the decoded binary size from the encoded base64 string size.
-
usize base64_encode(c8 dst, usize dst_max_chars, const void src, usize src_size_bytes)
Encode a binary data to a base64 string.
-
usize base64_decode(void dst, usize dst_max_bytes, const c8 src, usize src_size_chars=USIZE_MAX)
Decode a base64 string to binary data. The system assumes the string passed in is a valid base64 string.