Skip to content

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

@aklomp

Description

@aklomp

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions