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.