Commit 919aea0
committed
[C++] Fix issues with length computation.
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".1 parent 08d4612 commit 919aea0
File tree
2 files changed
+186
-99
lines changed- sbe-tool/src
- main/java/uk/co/real_logic/sbe/generation/cpp
- test/cpp
2 files changed
+186
-99
lines changed
0 commit comments