base64 icon indicating copy to clipboard operation
base64 copied to clipboard

Add a macro to calculate encoded size from raw size and vice versa

Open aklomp opened this issue 3 years ago • 0 comments

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.

aklomp avatar Nov 03 '22 20:11 aklomp