Expand SerializeIF #656
No reviewers
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Blocks
#660 New UnsignedByte Field class
fsfw/fsfw
Reference: fsfw/fsfw#656
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mueller/expand-serialize-if"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
serialize.h
composite includeserializeBe
: Calls serialize with big (network) endiannessAlso adds unit test module for the new API
I updated the methods to be able to return the serialized and deserialized size. I think this is still a very useful value to know.
On a sidenote:
If someone wants to use the new API, they have to prepend the regular method call with
SerializeIF::
. ExampleThis is relatively new for me. To make the regular
foo.serialize(...)
work, something like a base class is probably necessary, but I am not fully sure about that. From an API standpoint, I'd prefer it if one could just all.serialize
. But this is probably a topic for another issue/PRLGTM