feature/implemented_serialization_for_more_array_types#513
feature/implemented_serialization_for_more_array_types#513TijlJappens wants to merge 4 commits intos2e-systems:mainfrom
Conversation
…ro to keep code bloat managable.
|
The failed test is strange, somehow, when running it locally I don't get the same problem (or maybe I get it occasionally), any idea how this is possible? I will investigate the failed interopability test locally. |
|
I have no idea if the interoperability test failure is a result of my changes. |
It most likely is since the failure seems to be consistent. You probably changed the way data is serialized without intending it. If the message is different then the compatibility is gone. |
|
I ran the interoperability test on my own fork: https://github.com/TijlJappens/dust-dds/actions/runs/22725408000/job/65899122931 and there the FastDDS interoperability succeeded, so it does seem to be something intermittent... |
…ectly (which looks cleaner to me).
stkimmer
left a comment
There was a problem hiding this comment.
Thanks, looks good to me, except the macro
dds/src/xtypes/dynamic_type.rs
Outdated
| .insert(id, DataStorage::SequenceComplexValue(value)); | ||
| Ok(()) | ||
| } | ||
| impl_get_sequence_values!(get_int32_values, SequenceInt32, i32); |
There was a problem hiding this comment.
Can that be done without a macro? Macros generally lower code understanding (macros need to learned first)
There was a problem hiding this comment.
I made a new commit without a macro but it does involve a bit more code repetition and a new trait.
|
Great work! |
I am a bit confused about the way that Enums are handled currently so I don't dare to touch it. I mean, why does all enum parsing go through the deserialize_structure function? I would think enums are just numbers and that the deserialization would call an integer deserialization but it does: ? I mean that eventually goes through the struct parsing which will turn it into it into a number but I find the design a bit strange. Could we not just call something like: |
I implemented serialization for more array types and introduced a macro to keep code bloat manageable.