From bfff6baf9299a43f16090ad7a44b75644dbb9614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Tue, 5 Nov 2024 14:08:40 +0100 Subject: [PATCH] Call Cdr::set_dds_cdr_options() when TypeSupport encodes (#417) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno (cherry picked from commit b3cf04625872639421f6cfcee58b530326899ccb) --- .../com/eprosima/fastdds/idl/templates/DDSPubSubTypeSource.stg | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/eprosima/fastdds/idl/templates/DDSPubSubTypeSource.stg b/src/main/java/com/eprosima/fastdds/idl/templates/DDSPubSubTypeSource.stg index 21d39d0a..58684a5a 100644 --- a/src/main/java/com/eprosima/fastdds/idl/templates/DDSPubSubTypeSource.stg +++ b/src/main/java/com/eprosima/fastdds/idl/templates/DDSPubSubTypeSource.stg @@ -142,6 +142,7 @@ bool $struct.name$PubSubType::serialize( ser.serialize_encapsulation(); // Serialize the object. ser << *p_type; + ser.set_dds_cdr_options({0,0}); } catch (eprosima::fastcdr::exception::Exception& /*exception*/) {