Skip to content

Commit

Permalink
Call Cdr::set_dds_cdr_options() when TypeSupport encodes (#417) (#418)
Browse files Browse the repository at this point in the history
* Call Cdr::set_dds_cdr_options() when TypeSupport encodes (#417)

Signed-off-by: Ricardo González Moreno <[email protected]>
(cherry picked from commit b3cf046)

* Apply suggestion

Signed-off-by: Miguel Company <[email protected]>

---------

Signed-off-by: Miguel Company <[email protected]>
Co-authored-by: Ricardo González <[email protected]>
Co-authored-by: Miguel Company <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2024
1 parent 78fe3e2 commit 4f99253
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ bool $struct.name$PubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
#if FASTCDR_VERSION_MAJOR > 1
ser.set_dds_cdr_options({0,0});
#else
ser.setDDSCdrOptions(0);
#endif // FASTCDR_VERSION_MAJOR > 1
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down

0 comments on commit 4f99253

Please sign in to comment.