base64
base64 copied to clipboard
Add a macro to calculate encoded size from raw size and vice versa
As discussed somewhat in #114, this library should export a macro to simplify calculating the buffer sizes. Two cases are needed:
- Get encoded size from raw size.
- Get raw size from encoded size.
The macros should take into account the potential presence of stream terminators, and should take care when using truncating integer division.