Skip to content

Commit

Permalink
[C++] Fix issues with length computation.
Browse files Browse the repository at this point in the history
I had incorrectly assumed that the `Flyweight::computeLength` method
took _encoded lengths_ of groups etc., but actually it takes a
complicated structure of group counts and variable lengths. As it was
hard to build this list, I've opted for a simpler approach: do the
length calculation within the generated DTO message and its groups.

In this commit, I've also added some convenience methods for converting
between DTOs and "byte arrays".
  • Loading branch information
ZachBray committed Nov 3, 2023
1 parent 6b1488b commit 2046f06
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 99 deletions.
Loading

0 comments on commit 2046f06

Please sign in to comment.