From e86a93660f6a3c79655b8e725fb86395e57048c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Fri, 29 Sep 2023 11:36:58 +0200 Subject: [PATCH] Maintain xtypes serialization to previous encoding version to maintain interop (#3893) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refs #18687. Change xtype serialization to XCDRv1 Signed-off-by: Ricardo González Moreno * Refs #18687. Not set struct_flags to maintain interop Signed-off-by: Ricardo González Moreno * Refs #18687. Fix test Signed-off-by: Ricardo González Moreno --------- Signed-off-by: Ricardo González Moreno --- .../HelloWorldTypeObject.cxx | 16 +- .../AnnotationParameterValue.cpp | 4 +- .../BuiltinAnnotationsTypeObject.cpp | 336 ++++----- .../DynamicTypeBuilderFactory.cpp | 84 +-- src/cpp/dynamic-types/TypeIdentifier.cpp | 2 +- src/cpp/dynamic-types/TypeIdentifierTypes.cpp | 22 +- src/cpp/dynamic-types/TypeObject.cpp | 166 ++--- src/cpp/dynamic-types/TypeObjectFactory.cpp | 4 +- .../fastdds/builtin/common/RPCHeadersImpl.cpp | 4 +- .../builtin/typelookup/TypeLookupManager.cpp | 4 +- .../typelookup/common/TypeLookupTypes.cpp | 24 +- .../core/policy/QosPoliciesSerializer.hpp | 15 +- test/blackbox/types/HelloWorldTypeObject.cxx | 16 +- .../TestIncludeRegression3361TypeObject.cxx | 12 +- .../types/TestRegression3361TypeObject.cxx | 16 +- .../ContentFilterTestTypeTypeObject.cxx | 60 +- .../DynamicComplexTypesTests.cpp | 2 +- .../dynamic_types/idl/BasicTypeObject.cxx | 620 ++++++++-------- .../dynamic_types/idl/TestTypeObject.cxx | 204 +++--- .../idl/new_features_4_2TypeObject.cxx | 148 ++-- test/unittest/xtypes/idl/TypesTypeObject.cxx | 692 +++++++++--------- .../xtypes/idl/WideEnumTypeObject.cxx | 60 +- test/xtypes/idl/TypesTypeObject.cxx | 692 +++++++++--------- 23 files changed, 1600 insertions(+), 1603 deletions(-) diff --git a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObject.cxx b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObject.cxx index 6eb770350b4..d321cdbf1dd 100644 --- a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObject.cxx +++ b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObject.cxx @@ -94,7 +94,7 @@ const TypeObject* GetMinimalHelloWorldObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -146,15 +146,15 @@ const TypeObject* GetMinimalHelloWorldObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -185,7 +185,7 @@ const TypeObject* GetCompleteHelloWorldObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -230,15 +230,15 @@ const TypeObject* GetCompleteHelloWorldObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/src/cpp/dynamic-types/AnnotationParameterValue.cpp b/src/cpp/dynamic-types/AnnotationParameterValue.cpp index a6b85e16400..73ae8ae2a39 100644 --- a/src/cpp/dynamic-types/AnnotationParameterValue.cpp +++ b/src/cpp/dynamic-types/AnnotationParameterValue.cpp @@ -78,7 +78,7 @@ size_t ExtendedAnnotationParameterValue::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1256,7 +1256,7 @@ size_t AnnotationParameterValue::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } diff --git a/src/cpp/dynamic-types/BuiltinAnnotationsTypeObject.cpp b/src/cpp/dynamic-types/BuiltinAnnotationsTypeObject.cpp index b0cd6998168..bb37e715cf5 100644 --- a/src/cpp/dynamic-types/BuiltinAnnotationsTypeObject.cpp +++ b/src/cpp/dynamic-types/BuiltinAnnotationsTypeObject.cpp @@ -198,14 +198,14 @@ const TypeObject* GetMinimalidObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -256,15 +256,15 @@ const TypeObject* GetCompleteidObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -338,14 +338,14 @@ const TypeObject* GetMinimalautoidObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -401,15 +401,15 @@ const TypeObject* GetCompleteautoidObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -515,14 +515,14 @@ const TypeObject* GetMinimalAutoidKindObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -597,15 +597,15 @@ const TypeObject* GetCompleteAutoidKindObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -679,14 +679,14 @@ const TypeObject* GetMinimaloptionalObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -741,15 +741,15 @@ const TypeObject* GetCompleteoptionalObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -818,15 +818,15 @@ const TypeObject* GetMinimalpositionObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -877,15 +877,15 @@ const TypeObject* GetCompletepositionObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -954,15 +954,15 @@ const TypeObject* GetMinimalvalueObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1013,15 +1013,15 @@ const TypeObject* GetCompletevalueObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1092,15 +1092,15 @@ const TypeObject* GetMinimalextensibilityObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1152,15 +1152,15 @@ const TypeObject* GetCompleteextensibilityObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1283,15 +1283,15 @@ const TypeObject* GetMinimalExtensibilityKindObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1380,15 +1380,15 @@ const TypeObject* GetCompleteExtensibilityKindObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1452,15 +1452,15 @@ const TypeObject* GetMinimalfinalObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1505,15 +1505,15 @@ const TypeObject* GetCompletefinalObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1576,15 +1576,15 @@ const TypeObject* GetMinimalappendableObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1629,15 +1629,15 @@ const TypeObject* GetCompleteappendableObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1700,15 +1700,15 @@ const TypeObject* GetMinimalmutableObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1753,15 +1753,15 @@ const TypeObject* GetCompletemutableObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1834,15 +1834,15 @@ const TypeObject* GetMinimalkeyObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1897,15 +1897,15 @@ const TypeObject* GetCompletekeyObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1979,15 +1979,15 @@ const TypeObject* GetMinimalmust_understandObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2042,15 +2042,15 @@ const TypeObject* GetCompletemust_understandObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2114,15 +2114,15 @@ const TypeObject* GetMinimaldefault_literalObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2167,15 +2167,15 @@ const TypeObject* GetCompletedefault_literalObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2244,15 +2244,15 @@ const TypeObject* GetMinimaldefaultObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2303,15 +2303,15 @@ const TypeObject* GetCompletedefaultObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2386,15 +2386,15 @@ const TypeObject* GetMinimalrangeObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2451,15 +2451,15 @@ const TypeObject* GetCompleterangeObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2528,15 +2528,15 @@ const TypeObject* GetMinimalminObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2587,15 +2587,15 @@ const TypeObject* GetCompleteminObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2664,15 +2664,15 @@ const TypeObject* GetMinimalmaxObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2723,15 +2723,15 @@ const TypeObject* GetCompletemaxObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2800,15 +2800,15 @@ const TypeObject* GetMinimalunitObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2859,15 +2859,15 @@ const TypeObject* GetCompleteunitObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2936,15 +2936,15 @@ const TypeObject* GetMinimalbit_boundObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2995,15 +2995,15 @@ const TypeObject* GetCompletebit_boundObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3076,15 +3076,15 @@ const TypeObject* GetMinimalexternalObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3139,15 +3139,15 @@ const TypeObject* GetCompleteexternalObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3220,15 +3220,15 @@ const TypeObject* GetMinimalnestedObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3283,15 +3283,15 @@ const TypeObject* GetCompletenestedObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3381,15 +3381,15 @@ const TypeObject* GetMinimalverbatimObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3461,15 +3461,15 @@ const TypeObject* GetCompleteverbatimObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3640,15 +3640,15 @@ const TypeObject* GetMinimalPlacementKindObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3779,15 +3779,15 @@ const TypeObject* GetCompletePlacementKindObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3861,15 +3861,15 @@ const TypeObject* GetMinimalserviceObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3924,15 +3924,15 @@ const TypeObject* GetCompleteserviceObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4005,15 +4005,15 @@ const TypeObject* GetMinimalonewayObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4068,15 +4068,15 @@ const TypeObject* GetCompleteonewayObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4149,15 +4149,15 @@ const TypeObject* GetMinimalamiObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4212,15 +4212,15 @@ const TypeObject* GetCompleteamiObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4294,15 +4294,15 @@ const TypeObject* GetMinimalnon_serializedObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4357,15 +4357,15 @@ const TypeObject* GetCompletenon_serializedObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().annotation_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/src/cpp/dynamic-types/DynamicTypeBuilderFactory.cpp b/src/cpp/dynamic-types/DynamicTypeBuilderFactory.cpp index 0cb7ce59708..809eb3d8c0e 100644 --- a/src/cpp/dynamic-types/DynamicTypeBuilderFactory.cpp +++ b/src/cpp/dynamic-types/DynamicTypeBuilderFactory.cpp @@ -1479,15 +1479,15 @@ void DynamicTypeBuilderFactory::build_alias_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << object; @@ -1535,15 +1535,15 @@ void DynamicTypeBuilderFactory::build_alias_type_code( TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << object; @@ -1597,7 +1597,7 @@ void DynamicTypeBuilderFactory::build_enum_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.complete().enumerated_type(), @@ -1605,8 +1605,8 @@ void DynamicTypeBuilderFactory::build_enum_type_code( eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << object; @@ -1643,7 +1643,7 @@ void DynamicTypeBuilderFactory::build_enum_type_code( TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.minimal().enumerated_type(), @@ -1651,8 +1651,8 @@ void DynamicTypeBuilderFactory::build_enum_type_code( eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << object; @@ -1748,15 +1748,15 @@ void DynamicTypeBuilderFactory::build_struct_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.complete().struct_type(), current_alignment) + 4)); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation @@ -1841,15 +1841,15 @@ void DynamicTypeBuilderFactory::build_struct_type_code( TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.minimal().struct_type(), current_alignment) + 4)); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation @@ -1958,14 +1958,14 @@ void DynamicTypeBuilderFactory::build_union_type_code( TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << object; @@ -2060,14 +2060,14 @@ void DynamicTypeBuilderFactory::build_union_type_code( TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << object; @@ -2136,15 +2136,15 @@ void DynamicTypeBuilderFactory::build_bitset_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.complete().bitset_type(), current_alignment) + 4)); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation @@ -2203,15 +2203,15 @@ void DynamicTypeBuilderFactory::build_bitset_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.minimal().bitset_type(), current_alignment) + 4)); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation @@ -2271,15 +2271,15 @@ void DynamicTypeBuilderFactory::build_bitmask_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.complete().bitmask_type(), current_alignment) + 4)); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation @@ -2324,15 +2324,15 @@ void DynamicTypeBuilderFactory::build_bitmask_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.minimal().bitmask_type(), current_alignment) + 4)); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation @@ -2399,7 +2399,7 @@ void DynamicTypeBuilderFactory::build_annotation_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.complete().annotation_type(), @@ -2407,8 +2407,8 @@ void DynamicTypeBuilderFactory::build_annotation_type_code( // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation @@ -2465,7 +2465,7 @@ void DynamicTypeBuilderFactory::build_annotation_type_code( TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; eprosima::fastrtps::rtps::SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(object.minimal().annotation_type(), @@ -2473,8 +2473,8 @@ void DynamicTypeBuilderFactory::build_annotation_type_code( // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; // Serialize encapsulation diff --git a/src/cpp/dynamic-types/TypeIdentifier.cpp b/src/cpp/dynamic-types/TypeIdentifier.cpp index 1992ea6a055..dc6928a7875 100644 --- a/src/cpp/dynamic-types/TypeIdentifier.cpp +++ b/src/cpp/dynamic-types/TypeIdentifier.cpp @@ -1095,7 +1095,7 @@ size_t TypeIdentifier::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } diff --git a/src/cpp/dynamic-types/TypeIdentifierTypes.cpp b/src/cpp/dynamic-types/TypeIdentifierTypes.cpp index cddd396b089..d39d6239b5b 100644 --- a/src/cpp/dynamic-types/TypeIdentifierTypes.cpp +++ b/src/cpp/dynamic-types/TypeIdentifierTypes.cpp @@ -82,7 +82,7 @@ size_t StringSTypeDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -156,7 +156,7 @@ size_t StringLTypeDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -234,7 +234,7 @@ size_t PlainCollectionHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -368,7 +368,7 @@ size_t PlainSequenceSElemDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -513,7 +513,7 @@ size_t PlainSequenceLElemDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -660,7 +660,7 @@ size_t PlainArraySElemDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -818,7 +818,7 @@ size_t PlainArrayLElemDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1044,7 +1044,7 @@ size_t PlainMapSTypeDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1284,7 +1284,7 @@ size_t PlainMapLTypeDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1398,7 +1398,7 @@ size_t StronglyConnectedComponentId::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1459,7 +1459,7 @@ size_t ExtendedTypeDefn::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } diff --git a/src/cpp/dynamic-types/TypeObject.cpp b/src/cpp/dynamic-types/TypeObject.cpp index 912ca2bdaac..f2ac173f458 100644 --- a/src/cpp/dynamic-types/TypeObject.cpp +++ b/src/cpp/dynamic-types/TypeObject.cpp @@ -81,7 +81,7 @@ size_t CommonStructMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -162,7 +162,7 @@ size_t CompleteMemberDetail::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -239,7 +239,7 @@ size_t MinimalMemberDetail::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -315,7 +315,7 @@ size_t CompleteStructMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -392,7 +392,7 @@ size_t MinimalStructMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -465,7 +465,7 @@ size_t AppliedBuiltinTypeAnnotations::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -531,7 +531,7 @@ size_t MinimalTypeDetail::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -603,7 +603,7 @@ size_t CompleteTypeDetail::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -687,7 +687,7 @@ size_t CompleteStructHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -764,7 +764,7 @@ size_t MinimalStructHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -845,7 +845,7 @@ size_t CompleteStructType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -989,7 +989,7 @@ size_t MinimalStructType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1137,7 +1137,7 @@ size_t CommonUnionMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1240,7 +1240,7 @@ size_t CompleteUnionMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1317,7 +1317,7 @@ size_t MinimalUnionMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1394,7 +1394,7 @@ size_t CommonDiscriminatorMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1474,7 +1474,7 @@ size_t CompleteDiscriminatorMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1551,7 +1551,7 @@ size_t MinimalDiscriminatorMember::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1622,7 +1622,7 @@ size_t CompleteUnionHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1693,7 +1693,7 @@ size_t MinimalUnionHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1776,7 +1776,7 @@ size_t CompleteUnionType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1926,7 +1926,7 @@ size_t MinimalUnionType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2068,7 +2068,7 @@ size_t CommonAnnotationParameter::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2149,7 +2149,7 @@ size_t CompleteAnnotationParameter::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2231,7 +2231,7 @@ size_t MinimalAnnotationParameter::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2305,7 +2305,7 @@ size_t CompleteAnnotationHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2371,7 +2371,7 @@ size_t MinimalAnnotationHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2444,7 +2444,7 @@ size_t CompleteAnnotationType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2529,7 +2529,7 @@ size_t MinimalAnnotationType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2610,7 +2610,7 @@ size_t CommonAliasBody::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2688,7 +2688,7 @@ size_t CompleteAliasBody::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2763,7 +2763,7 @@ size_t MinimalAliasBody::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2832,7 +2832,7 @@ size_t CompleteAliasHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2895,7 +2895,7 @@ size_t MinimalAliasHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -2960,7 +2960,7 @@ size_t CompleteAliasType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3040,7 +3040,7 @@ size_t MinimalAliasType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3116,7 +3116,7 @@ size_t CompleteElementDetail::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3196,7 +3196,7 @@ size_t CommonCollectionElement::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3272,7 +3272,7 @@ size_t CompleteCollectionElement::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3345,7 +3345,7 @@ size_t MinimalCollectionElement::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3416,7 +3416,7 @@ size_t CommonCollectionHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3492,7 +3492,7 @@ size_t CompleteCollectionHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3565,7 +3565,7 @@ size_t MinimalCollectionHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3644,7 +3644,7 @@ size_t CompleteSequenceType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3726,7 +3726,7 @@ size_t MinimalSequenceType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3800,7 +3800,7 @@ size_t CommonArrayHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3892,7 +3892,7 @@ size_t CompleteArrayHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -3965,7 +3965,7 @@ size_t MinimalArrayHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4044,7 +4044,7 @@ size_t CompleteArrayType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4126,7 +4126,7 @@ size_t MinimalArrayType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4212,7 +4212,7 @@ size_t CompleteMapType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4300,7 +4300,7 @@ size_t MinimalMapType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4380,7 +4380,7 @@ size_t CommonEnumeratedLiteral::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4456,7 +4456,7 @@ size_t CompleteEnumeratedLiteral::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4533,7 +4533,7 @@ size_t MinimalEnumeratedLiteral::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4606,7 +4606,7 @@ size_t CommonEnumeratedHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4683,7 +4683,7 @@ size_t CompleteEnumeratedHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4756,7 +4756,7 @@ size_t MinimalEnumeratedHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4835,7 +4835,7 @@ size_t CompleteEnumeratedType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -4979,7 +4979,7 @@ size_t MinimalEnumeratedType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5119,7 +5119,7 @@ size_t CommonBitflag::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5195,7 +5195,7 @@ size_t CompleteBitflag::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5272,7 +5272,7 @@ size_t MinimalBitflag::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5345,7 +5345,7 @@ size_t CommonBitmaskHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5426,7 +5426,7 @@ size_t CompleteBitmaskType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5570,7 +5570,7 @@ size_t MinimalBitmaskType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5718,7 +5718,7 @@ size_t CommonBitfield::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5799,7 +5799,7 @@ size_t CompleteBitfield::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5876,7 +5876,7 @@ size_t MinimalBitfield::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -5957,7 +5957,7 @@ size_t CompleteBitsetHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6027,7 +6027,7 @@ size_t MinimalBitsetHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6105,7 +6105,7 @@ size_t CompleteBitsetType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6249,7 +6249,7 @@ size_t MinimalBitsetType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6379,7 +6379,7 @@ size_t CompleteExtendedType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6437,7 +6437,7 @@ size_t MinimalExtendedType::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6505,7 +6505,7 @@ size_t TypeIdentifierTypeObjectPair::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6566,7 +6566,7 @@ size_t TypeIdentifierPair::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6628,7 +6628,7 @@ size_t TypeIdentifierWithSize::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -6694,7 +6694,7 @@ size_t TypeIdentifierWithDependencies::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -7476,7 +7476,7 @@ size_t CompleteTypeObject::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -8355,7 +8355,7 @@ size_t MinimalTypeObject::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -8747,7 +8747,7 @@ size_t TypeObject::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -8826,7 +8826,7 @@ size_t TypeInformation::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } diff --git a/src/cpp/dynamic-types/TypeObjectFactory.cpp b/src/cpp/dynamic-types/TypeObjectFactory.cpp index 1bea389b952..3abfcf14d57 100644 --- a/src/cpp/dynamic-types/TypeObjectFactory.cpp +++ b/src/cpp/dynamic-types/TypeObjectFactory.cpp @@ -315,7 +315,7 @@ void TypeObjectFactory::fill_minimal_information( } else { - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; info->minimal().typeid_with_size().typeobject_serialized_size( static_cast(calculator.calculate_serialized_size(*obj, current_alignment))); @@ -585,7 +585,7 @@ void TypeObjectFactory::fill_complete_information( } else { - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; info->complete().typeid_with_size().typeobject_serialized_size( static_cast(calculator.calculate_serialized_size(*obj, current_alignment))); diff --git a/src/cpp/fastdds/builtin/common/RPCHeadersImpl.cpp b/src/cpp/fastdds/builtin/common/RPCHeadersImpl.cpp index 8795bddc115..704d877245e 100644 --- a/src/cpp/fastdds/builtin/common/RPCHeadersImpl.cpp +++ b/src/cpp/fastdds/builtin/common/RPCHeadersImpl.cpp @@ -35,7 +35,7 @@ size_t ReplyHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -56,7 +56,7 @@ size_t RequestHeader::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } diff --git a/src/cpp/fastdds/builtin/typelookup/TypeLookupManager.cpp b/src/cpp/fastdds/builtin/typelookup/TypeLookupManager.cpp index 37f1259eff7..9b69f10f57c 100644 --- a/src/cpp/fastdds/builtin/typelookup/TypeLookupManager.cpp +++ b/src/cpp/fastdds/builtin/typelookup/TypeLookupManager.cpp @@ -545,7 +545,7 @@ bool TypeLookupManager::send_request( CacheChange_t* change = builtin_request_writer_->new_change( [&req]() { - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; return static_cast(calculator.calculate_serialized_size(req, current_alignment) + 4); }, @@ -588,7 +588,7 @@ bool TypeLookupManager::send_reply( CacheChange_t* change = builtin_reply_writer_->new_change( [&rep]() { - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; return static_cast(calculator.calculate_serialized_size(rep, current_alignment) + 4); }, diff --git a/src/cpp/fastdds/builtin/typelookup/common/TypeLookupTypes.cpp b/src/cpp/fastdds/builtin/typelookup/common/TypeLookupTypes.cpp index 3bc963e5915..658b2bef365 100644 --- a/src/cpp/fastdds/builtin/typelookup/common/TypeLookupTypes.cpp +++ b/src/cpp/fastdds/builtin/typelookup/common/TypeLookupTypes.cpp @@ -188,7 +188,7 @@ size_t TypeLookup_getTypes_Result::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -209,7 +209,7 @@ size_t TypeLookup_getTypes_In::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -230,7 +230,7 @@ size_t TypeLookup_getTypes_Out::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -251,7 +251,7 @@ size_t TypeLookup_getTypeDependencies_In::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -272,7 +272,7 @@ size_t TypeLookup_getTypeDependencies_Out::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -457,7 +457,7 @@ size_t TypeLookup_getTypeDependencies_Result::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -722,7 +722,7 @@ size_t TypeLookup_Call::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -743,7 +743,7 @@ size_t TypeLookup_Request::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1008,7 +1008,7 @@ size_t TypeLookup_Return::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1029,7 +1029,7 @@ size_t TypeLookup_Reply::getCdrSerializedSize( size_t current_alignment) { size_t initial_alignment = current_alignment; - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); return eprosima::fastcdr::calculate_serialized_size(calculator, data, current_alignment) - initial_alignment; } @@ -1057,7 +1057,7 @@ bool TypeLookup_RequestTypeSupport::serialize( eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == fastdds::dds::DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion:: - XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv1); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; try @@ -1152,7 +1152,7 @@ bool TypeLookup_ReplyTypeSupport::serialize( eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, data_representation == fastdds::dds::DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion:: - XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv1); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; try diff --git a/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp b/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp index 269cbe4646f..79f9bc7dba5 100644 --- a/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp +++ b/src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp @@ -934,8 +934,7 @@ inline bool QosPoliciesSerializer::read_content_from_cdr_message( fastrtps::rtps::CDRMessage::readData(cdr_message, payload.data, parameter_length); // Object that manages the raw buffer. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv1); // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); try { @@ -1008,8 +1007,7 @@ inline bool QosPoliciesSerializer::read_content_from_cdr_message( fastrtps::rtps::CDRMessage::readData(cdr_message, payload.data, parameter_length); // Object that manages the raw buffer. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv1); // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); try { @@ -1031,7 +1029,7 @@ template<> inline uint32_t QosPoliciesSerializer::cdr_serialized_size( const xtypes::TypeInformation& qos_policy) { - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; size_t size = calculator.calculate_serialized_size(qos_policy.type_information, current_alignment) + 4; return 2 + 2 + static_cast(size); @@ -1042,7 +1040,7 @@ inline bool QosPoliciesSerializer::add_to_cdr_message( const xtypes::TypeInformation& qos_policy, fastrtps::rtps::CDRMessage_t* cdr_message) { - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; size_t size = calculator.calculate_serialized_size(qos_policy.type_information, @@ -1051,7 +1049,7 @@ inline bool QosPoliciesSerializer::add_to_cdr_message( eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser.serialize_encapsulation(); @@ -1083,8 +1081,7 @@ inline bool QosPoliciesSerializer::read_content_from_cd fastrtps::rtps::CDRMessage::readData(cdr_message, payload.data, parameter_length); // Object that manages the raw buffer. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); try { diff --git a/test/blackbox/types/HelloWorldTypeObject.cxx b/test/blackbox/types/HelloWorldTypeObject.cxx index 00cbd5da534..240e034efca 100644 --- a/test/blackbox/types/HelloWorldTypeObject.cxx +++ b/test/blackbox/types/HelloWorldTypeObject.cxx @@ -94,7 +94,7 @@ const TypeObject* GetMinimalHelloWorldObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -146,15 +146,15 @@ const TypeObject* GetMinimalHelloWorldObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -185,7 +185,7 @@ const TypeObject* GetCompleteHelloWorldObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -230,15 +230,15 @@ const TypeObject* GetCompleteHelloWorldObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/blackbox/types/TestIncludeRegression3361TypeObject.cxx b/test/blackbox/types/TestIncludeRegression3361TypeObject.cxx index a0cc69560f7..5d446dab754 100644 --- a/test/blackbox/types/TestIncludeRegression3361TypeObject.cxx +++ b/test/blackbox/types/TestIncludeRegression3361TypeObject.cxx @@ -133,15 +133,15 @@ namespace TestModule { TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -217,15 +217,15 @@ namespace TestModule { TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/blackbox/types/TestRegression3361TypeObject.cxx b/test/blackbox/types/TestRegression3361TypeObject.cxx index 226cba803c5..c4ff927c7a6 100644 --- a/test/blackbox/types/TestRegression3361TypeObject.cxx +++ b/test/blackbox/types/TestRegression3361TypeObject.cxx @@ -101,7 +101,7 @@ const TypeObject* GetMinimalTestRegression3361Object() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -134,15 +134,15 @@ const TypeObject* GetMinimalTestRegression3361Object() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -173,7 +173,7 @@ const TypeObject* GetCompleteTestRegression3361Object() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -202,15 +202,15 @@ const TypeObject* GetCompleteTestRegression3361Object() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObject.cxx b/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObject.cxx index a012e7a3cf1..f59b204fdd0 100644 --- a/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObject.cxx +++ b/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObject.cxx @@ -207,15 +207,15 @@ const TypeObject* GetMinimalColorObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -325,15 +325,15 @@ const TypeObject* GetCompleteColorObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -484,15 +484,15 @@ const TypeObject* GetMinimalMaterialObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -602,15 +602,15 @@ const TypeObject* GetCompleteMaterialObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -668,9 +668,9 @@ const TypeObject* GetMinimalStructTypeObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); - type_object->minimal().struct_type().struct_flags().IS_NESTED(true); + type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported MemberId memberId = 0; @@ -965,15 +965,15 @@ const TypeObject* GetMinimalStructTypeObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1004,9 +1004,9 @@ const TypeObject* GetCompleteStructTypeObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); - type_object->complete().struct_type().struct_flags().IS_NESTED(true); + type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported MemberId memberId = 0; @@ -1277,15 +1277,15 @@ const TypeObject* GetCompleteStructTypeObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1345,7 +1345,7 @@ const TypeObject* GetMinimalContentFilterTestTypeObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2524,15 +2524,15 @@ const TypeObject* GetMinimalContentFilterTestTypeObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2563,7 +2563,7 @@ const TypeObject* GetCompleteContentFilterTestTypeObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3549,15 +3549,15 @@ const TypeObject* GetCompleteContentFilterTestTypeObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/unittest/dynamic_types/DynamicComplexTypesTests.cpp b/test/unittest/dynamic_types/DynamicComplexTypesTests.cpp index a27a62da4c8..b64f0d71ba8 100644 --- a/test/unittest/dynamic_types/DynamicComplexTypesTests.cpp +++ b/test/unittest/dynamic_types/DynamicComplexTypesTests.cpp @@ -2295,7 +2295,7 @@ TEST_F(DynamicComplexTypesTests, TypeInformation) ASSERT_FALSE(info->minimal().typeid_with_size().type_id() == info->complete().typeid_with_size().type_id()); ASSERT_TRUE(info->complete().typeid_with_size().type_id()._d() == EK_COMPLETE); ASSERT_TRUE(info->complete().dependent_typeid_count() == 2); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; ASSERT_TRUE(info->complete().typeid_with_size().typeobject_serialized_size() == calculator.calculate_serialized_size(*compl_obj, current_alignment)); diff --git a/test/unittest/dynamic_types/idl/BasicTypeObject.cxx b/test/unittest/dynamic_types/idl/BasicTypeObject.cxx index a92e5c17c7b..8549d293964 100644 --- a/test/unittest/dynamic_types/idl/BasicTypeObject.cxx +++ b/test/unittest/dynamic_types/idl/BasicTypeObject.cxx @@ -389,15 +389,15 @@ const TypeObject* GetMinimalMyEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -481,15 +481,15 @@ const TypeObject* GetCompleteMyEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -584,15 +584,15 @@ const TypeObject* GetMinimalMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -668,15 +668,15 @@ const TypeObject* GetCompleteMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -774,15 +774,15 @@ const TypeObject* GetMinimalMyAliasAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -858,15 +858,15 @@ const TypeObject* GetCompleteMyAliasAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -927,7 +927,7 @@ const TypeObject* GetMinimalEnumStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -960,15 +960,15 @@ const TypeObject* GetMinimalEnumStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -999,7 +999,7 @@ const TypeObject* GetCompleteEnumStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1028,15 +1028,15 @@ const TypeObject* GetCompleteEnumStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1094,7 +1094,7 @@ const TypeObject* GetMinimalAliasStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1127,15 +1127,15 @@ const TypeObject* GetMinimalAliasStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1166,7 +1166,7 @@ const TypeObject* GetCompleteAliasStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1195,15 +1195,15 @@ const TypeObject* GetCompleteAliasStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1261,7 +1261,7 @@ const TypeObject* GetMinimalAliasAliasStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1294,15 +1294,15 @@ const TypeObject* GetMinimalAliasAliasStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1333,7 +1333,7 @@ const TypeObject* GetCompleteAliasAliasStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1362,15 +1362,15 @@ const TypeObject* GetCompleteAliasAliasStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1428,7 +1428,7 @@ const TypeObject* GetMinimalBoolStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1462,15 +1462,15 @@ const TypeObject* GetMinimalBoolStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1501,7 +1501,7 @@ const TypeObject* GetCompleteBoolStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1531,15 +1531,15 @@ const TypeObject* GetCompleteBoolStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1597,7 +1597,7 @@ const TypeObject* GetMinimalOctetStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1631,15 +1631,15 @@ const TypeObject* GetMinimalOctetStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1670,7 +1670,7 @@ const TypeObject* GetCompleteOctetStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1700,15 +1700,15 @@ const TypeObject* GetCompleteOctetStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1766,7 +1766,7 @@ const TypeObject* GetMinimalShortStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1800,15 +1800,15 @@ const TypeObject* GetMinimalShortStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1839,7 +1839,7 @@ const TypeObject* GetCompleteShortStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1869,15 +1869,15 @@ const TypeObject* GetCompleteShortStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1935,7 +1935,7 @@ const TypeObject* GetMinimalLongStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1969,15 +1969,15 @@ const TypeObject* GetMinimalLongStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2008,7 +2008,7 @@ const TypeObject* GetCompleteLongStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2038,15 +2038,15 @@ const TypeObject* GetCompleteLongStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2104,7 +2104,7 @@ const TypeObject* GetMinimalLongLongStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2138,15 +2138,15 @@ const TypeObject* GetMinimalLongLongStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2177,7 +2177,7 @@ const TypeObject* GetCompleteLongLongStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2207,15 +2207,15 @@ const TypeObject* GetCompleteLongLongStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2273,7 +2273,7 @@ const TypeObject* GetMinimalUShortStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2307,15 +2307,15 @@ const TypeObject* GetMinimalUShortStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2346,7 +2346,7 @@ const TypeObject* GetCompleteUShortStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2376,15 +2376,15 @@ const TypeObject* GetCompleteUShortStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2442,7 +2442,7 @@ const TypeObject* GetMinimalULongStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2476,15 +2476,15 @@ const TypeObject* GetMinimalULongStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2515,7 +2515,7 @@ const TypeObject* GetCompleteULongStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2545,15 +2545,15 @@ const TypeObject* GetCompleteULongStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2611,7 +2611,7 @@ const TypeObject* GetMinimalULongLongStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2645,15 +2645,15 @@ const TypeObject* GetMinimalULongLongStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2684,7 +2684,7 @@ const TypeObject* GetCompleteULongLongStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2714,15 +2714,15 @@ const TypeObject* GetCompleteULongLongStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2780,7 +2780,7 @@ const TypeObject* GetMinimalFloatStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2814,15 +2814,15 @@ const TypeObject* GetMinimalFloatStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2853,7 +2853,7 @@ const TypeObject* GetCompleteFloatStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2883,15 +2883,15 @@ const TypeObject* GetCompleteFloatStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2949,7 +2949,7 @@ const TypeObject* GetMinimalDoubleStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2983,15 +2983,15 @@ const TypeObject* GetMinimalDoubleStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3022,7 +3022,7 @@ const TypeObject* GetCompleteDoubleStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3052,15 +3052,15 @@ const TypeObject* GetCompleteDoubleStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3118,7 +3118,7 @@ const TypeObject* GetMinimalLongDoubleStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3152,15 +3152,15 @@ const TypeObject* GetMinimalLongDoubleStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3191,7 +3191,7 @@ const TypeObject* GetCompleteLongDoubleStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3221,15 +3221,15 @@ const TypeObject* GetCompleteLongDoubleStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3287,7 +3287,7 @@ const TypeObject* GetMinimalCharStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3321,15 +3321,15 @@ const TypeObject* GetMinimalCharStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3360,7 +3360,7 @@ const TypeObject* GetCompleteCharStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3390,15 +3390,15 @@ const TypeObject* GetCompleteCharStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3456,7 +3456,7 @@ const TypeObject* GetMinimalWCharStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3490,15 +3490,15 @@ const TypeObject* GetMinimalWCharStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3529,7 +3529,7 @@ const TypeObject* GetCompleteWCharStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3559,15 +3559,15 @@ const TypeObject* GetCompleteWCharStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3625,7 +3625,7 @@ const TypeObject* GetMinimalStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3658,15 +3658,15 @@ const TypeObject* GetMinimalStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3697,7 +3697,7 @@ const TypeObject* GetCompleteStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3726,15 +3726,15 @@ const TypeObject* GetCompleteStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3792,7 +3792,7 @@ const TypeObject* GetMinimalWStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3825,15 +3825,15 @@ const TypeObject* GetMinimalWStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3864,7 +3864,7 @@ const TypeObject* GetCompleteWStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3893,15 +3893,15 @@ const TypeObject* GetCompleteWStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3959,7 +3959,7 @@ const TypeObject* GetMinimalLargeStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3992,15 +3992,15 @@ const TypeObject* GetMinimalLargeStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4031,7 +4031,7 @@ const TypeObject* GetCompleteLargeStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4060,15 +4060,15 @@ const TypeObject* GetCompleteLargeStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4126,7 +4126,7 @@ const TypeObject* GetMinimalLargeWStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4159,15 +4159,15 @@ const TypeObject* GetMinimalLargeWStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4198,7 +4198,7 @@ const TypeObject* GetCompleteLargeWStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4227,15 +4227,15 @@ const TypeObject* GetCompleteLargeWStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4293,7 +4293,7 @@ const TypeObject* GetMinimalArraytStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4326,15 +4326,15 @@ const TypeObject* GetMinimalArraytStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4365,7 +4365,7 @@ const TypeObject* GetCompleteArraytStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4394,15 +4394,15 @@ const TypeObject* GetCompleteArraytStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4497,15 +4497,15 @@ const TypeObject* GetMinimalMyArrayObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4581,15 +4581,15 @@ const TypeObject* GetCompleteMyArrayObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4650,7 +4650,7 @@ const TypeObject* GetMinimalArrayArrayStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4683,15 +4683,15 @@ const TypeObject* GetMinimalArrayArrayStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4722,7 +4722,7 @@ const TypeObject* GetCompleteArrayArrayStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4751,15 +4751,15 @@ const TypeObject* GetCompleteArrayArrayStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4817,7 +4817,7 @@ const TypeObject* GetMinimalSequenceStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4850,15 +4850,15 @@ const TypeObject* GetMinimalSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4889,7 +4889,7 @@ const TypeObject* GetCompleteSequenceStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4918,15 +4918,15 @@ const TypeObject* GetCompleteSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4984,7 +4984,7 @@ const TypeObject* GetMinimalSequenceSequenceStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5017,15 +5017,15 @@ const TypeObject* GetMinimalSequenceSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5056,7 +5056,7 @@ const TypeObject* GetCompleteSequenceSequenceStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5085,15 +5085,15 @@ const TypeObject* GetCompleteSequenceSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5151,7 +5151,7 @@ const TypeObject* GetMinimalMapStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5184,15 +5184,15 @@ const TypeObject* GetMinimalMapStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5223,7 +5223,7 @@ const TypeObject* GetCompleteMapStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5252,15 +5252,15 @@ const TypeObject* GetCompleteMapStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5318,7 +5318,7 @@ const TypeObject* GetMinimalMapMapStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5351,15 +5351,15 @@ const TypeObject* GetMinimalMapMapStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5390,7 +5390,7 @@ const TypeObject* GetCompleteMapMapStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5419,15 +5419,15 @@ const TypeObject* GetCompleteMapMapStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5527,15 +5527,15 @@ const TypeObject* GetMinimalMyBitsetObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().bitset_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5691,15 +5691,15 @@ const TypeObject* GetCompleteMyBitsetObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().bitset_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5757,7 +5757,7 @@ const TypeObject* GetMinimalBitsetStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5790,15 +5790,15 @@ const TypeObject* GetMinimalBitsetStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5829,7 +5829,7 @@ const TypeObject* GetCompleteBitsetStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5858,15 +5858,15 @@ const TypeObject* GetCompleteBitsetStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5924,7 +5924,7 @@ const TypeObject* GetMinimalStructStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5977,15 +5977,15 @@ const TypeObject* GetMinimalStructStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6016,7 +6016,7 @@ const TypeObject* GetCompleteStructStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6062,15 +6062,15 @@ const TypeObject* GetCompleteStructStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6128,7 +6128,7 @@ const TypeObject* GetMinimalStructStructStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6180,15 +6180,15 @@ const TypeObject* GetMinimalStructStructStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6219,7 +6219,7 @@ const TypeObject* GetCompleteStructStructStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6264,15 +6264,15 @@ const TypeObject* GetCompleteStructStructStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6330,7 +6330,7 @@ const TypeObject* GetMinimalSimpleUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6395,15 +6395,15 @@ const TypeObject* GetMinimalSimpleUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6435,7 +6435,7 @@ const TypeObject* GetCompleteSimpleUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6494,15 +6494,15 @@ const TypeObject* GetCompleteSimpleUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6561,7 +6561,7 @@ const TypeObject* GetMinimalUnionUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6625,15 +6625,15 @@ const TypeObject* GetMinimalUnionUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6665,7 +6665,7 @@ const TypeObject* GetCompleteUnionUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6723,15 +6723,15 @@ const TypeObject* GetCompleteUnionUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6790,7 +6790,7 @@ const TypeObject* GetMinimalWCharUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6855,15 +6855,15 @@ const TypeObject* GetMinimalWCharUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6895,7 +6895,7 @@ const TypeObject* GetCompleteWCharUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6954,15 +6954,15 @@ const TypeObject* GetCompleteWCharUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7021,7 +7021,7 @@ const TypeObject* GetMinimalSimpleUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7054,15 +7054,15 @@ const TypeObject* GetMinimalSimpleUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7093,7 +7093,7 @@ const TypeObject* GetCompleteSimpleUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7122,15 +7122,15 @@ const TypeObject* GetCompleteSimpleUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7188,7 +7188,7 @@ const TypeObject* GetMinimalUnionUnionUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7221,15 +7221,15 @@ const TypeObject* GetMinimalUnionUnionUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7260,7 +7260,7 @@ const TypeObject* GetCompleteUnionUnionUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7289,15 +7289,15 @@ const TypeObject* GetCompleteUnionUnionUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7355,7 +7355,7 @@ const TypeObject* GetMinimalWCharUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7388,15 +7388,15 @@ const TypeObject* GetMinimalWCharUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7427,7 +7427,7 @@ const TypeObject* GetCompleteWCharUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7456,15 +7456,15 @@ const TypeObject* GetCompleteWCharUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/unittest/dynamic_types/idl/TestTypeObject.cxx b/test/unittest/dynamic_types/idl/TestTypeObject.cxx index f85d0ead507..fe78e42306c 100644 --- a/test/unittest/dynamic_types/idl/TestTypeObject.cxx +++ b/test/unittest/dynamic_types/idl/TestTypeObject.cxx @@ -239,15 +239,15 @@ const TypeObject* GetMinimalMyEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -331,15 +331,15 @@ const TypeObject* GetCompleteMyEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -434,15 +434,15 @@ const TypeObject* GetMinimalMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -518,15 +518,15 @@ const TypeObject* GetCompleteMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -624,15 +624,15 @@ const TypeObject* GetMinimalMyAliasEnum2Object() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -708,15 +708,15 @@ const TypeObject* GetCompleteMyAliasEnum2Object() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -814,15 +814,15 @@ const TypeObject* GetMinimalMyAliasEnum3Object() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -898,15 +898,15 @@ const TypeObject* GetCompleteMyAliasEnum3Object() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -967,7 +967,7 @@ const TypeObject* GetMinimalBasicStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1228,15 +1228,15 @@ const TypeObject* GetMinimalBasicStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1267,7 +1267,7 @@ const TypeObject* GetCompleteBasicStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1488,15 +1488,15 @@ const TypeObject* GetCompleteBasicStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1591,15 +1591,15 @@ const TypeObject* GetMinimalMyOctetArray500Object() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1675,15 +1675,15 @@ const TypeObject* GetCompleteMyOctetArray500Object() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1781,15 +1781,15 @@ const TypeObject* GetMinimalBSAlias5Object() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1865,15 +1865,15 @@ const TypeObject* GetCompleteBSAlias5Object() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1971,15 +1971,15 @@ const TypeObject* GetMinimalMA3Object() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2055,15 +2055,15 @@ const TypeObject* GetCompleteMA3Object() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2161,15 +2161,15 @@ const TypeObject* GetMinimalMyMiniArrayObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2245,15 +2245,15 @@ const TypeObject* GetCompleteMyMiniArrayObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2351,15 +2351,15 @@ const TypeObject* GetMinimalMySequenceLongObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2435,15 +2435,15 @@ const TypeObject* GetCompleteMySequenceLongObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2504,7 +2504,7 @@ const TypeObject* GetMinimalComplexStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2880,15 +2880,15 @@ const TypeObject* GetMinimalComplexStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2919,7 +2919,7 @@ const TypeObject* GetCompleteComplexStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3234,15 +3234,15 @@ const TypeObject* GetCompleteComplexStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3300,7 +3300,7 @@ const TypeObject* GetMinimalMyUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3364,15 +3364,15 @@ const TypeObject* GetMinimalMyUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3404,7 +3404,7 @@ const TypeObject* GetCompleteMyUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3462,15 +3462,15 @@ const TypeObject* GetCompleteMyUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3529,7 +3529,7 @@ const TypeObject* GetMinimalMyUnion2Object() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3614,15 +3614,15 @@ const TypeObject* GetMinimalMyUnion2Object() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3654,7 +3654,7 @@ const TypeObject* GetCompleteMyUnion2Object() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3730,15 +3730,15 @@ const TypeObject* GetCompleteMyUnion2Object() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3797,7 +3797,7 @@ const TypeObject* GetMinimalCompleteStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3848,15 +3848,15 @@ const TypeObject* GetMinimalCompleteStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3887,7 +3887,7 @@ const TypeObject* GetCompleteCompleteStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3931,15 +3931,15 @@ const TypeObject* GetCompleteCompleteStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3997,7 +3997,7 @@ const TypeObject* GetMinimalKeyedStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4049,15 +4049,15 @@ const TypeObject* GetMinimalKeyedStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4088,7 +4088,7 @@ const TypeObject* GetCompleteKeyedStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4155,15 +4155,15 @@ const TypeObject* GetCompleteKeyedStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/unittest/dynamic_types/idl/new_features_4_2TypeObject.cxx b/test/unittest/dynamic_types/idl/new_features_4_2TypeObject.cxx index 90f0738793c..05b3540a933 100644 --- a/test/unittest/dynamic_types/idl/new_features_4_2TypeObject.cxx +++ b/test/unittest/dynamic_types/idl/new_features_4_2TypeObject.cxx @@ -149,7 +149,7 @@ const TypeObject* GetMinimalNewAliasesObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -334,15 +334,15 @@ const TypeObject* GetMinimalNewAliasesObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -373,7 +373,7 @@ const TypeObject* GetCompleteNewAliasesObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -574,15 +574,15 @@ const TypeObject* GetCompleteNewAliasesObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -640,7 +640,7 @@ const TypeObject* GetMinimalWCharUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -705,15 +705,15 @@ const TypeObject* GetMinimalWCharUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -745,7 +745,7 @@ const TypeObject* GetCompleteWCharUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -804,15 +804,15 @@ const TypeObject* GetCompleteWCharUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -871,7 +871,7 @@ const TypeObject* GetMinimalOctetUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -936,15 +936,15 @@ const TypeObject* GetMinimalOctetUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -976,7 +976,7 @@ const TypeObject* GetCompleteOctetUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1035,15 +1035,15 @@ const TypeObject* GetCompleteOctetUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1102,7 +1102,7 @@ const TypeObject* GetMinimalInt8UnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1167,15 +1167,15 @@ const TypeObject* GetMinimalInt8UnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1207,7 +1207,7 @@ const TypeObject* GetCompleteInt8UnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1266,15 +1266,15 @@ const TypeObject* GetCompleteInt8UnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1356,15 +1356,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().bitset_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1463,15 +1463,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().bitset_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1648,15 +1648,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().bitset_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2037,15 +2037,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().bitset_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2188,15 +2188,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().bitmask_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2501,15 +2501,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().bitmask_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2567,7 +2567,7 @@ namespace bitmodule { type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2618,15 +2618,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2657,7 +2657,7 @@ namespace bitmodule { type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2701,15 +2701,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2767,7 +2767,7 @@ namespace bitmodule { type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2820,15 +2820,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2859,7 +2859,7 @@ namespace bitmodule { type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2905,15 +2905,15 @@ namespace bitmodule { TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2972,7 +2972,7 @@ const TypeObject* GetMinimalStructTestObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3042,15 +3042,15 @@ const TypeObject* GetMinimalStructTestObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3081,7 +3081,7 @@ const TypeObject* GetCompleteStructTestObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3141,15 +3141,15 @@ const TypeObject* GetCompleteStructTestObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/unittest/xtypes/idl/TypesTypeObject.cxx b/test/unittest/xtypes/idl/TypesTypeObject.cxx index 0a750aebb12..38779b7bcab 100644 --- a/test/unittest/xtypes/idl/TypesTypeObject.cxx +++ b/test/unittest/xtypes/idl/TypesTypeObject.cxx @@ -413,15 +413,15 @@ const TypeObject* GetMinimalMyEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -505,15 +505,15 @@ const TypeObject* GetCompleteMyEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -632,15 +632,15 @@ const TypeObject* GetMinimalMyBadEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -724,15 +724,15 @@ const TypeObject* GetCompleteMyBadEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -790,7 +790,7 @@ const TypeObject* GetMinimalMyEnumStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -823,15 +823,15 @@ const TypeObject* GetMinimalMyEnumStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -862,7 +862,7 @@ const TypeObject* GetCompleteMyEnumStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -891,15 +891,15 @@ const TypeObject* GetCompleteMyEnumStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -957,7 +957,7 @@ const TypeObject* GetMinimalMyBadEnumStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -990,15 +990,15 @@ const TypeObject* GetMinimalMyBadEnumStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1029,7 +1029,7 @@ const TypeObject* GetCompleteMyBadEnumStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1058,15 +1058,15 @@ const TypeObject* GetCompleteMyBadEnumStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1161,15 +1161,15 @@ const TypeObject* GetMinimalMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1245,15 +1245,15 @@ const TypeObject* GetCompleteMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1314,7 +1314,7 @@ const TypeObject* GetMinimalMyAliasEnumStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1347,15 +1347,15 @@ const TypeObject* GetMinimalMyAliasEnumStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1386,7 +1386,7 @@ const TypeObject* GetCompleteMyAliasEnumStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1415,15 +1415,15 @@ const TypeObject* GetCompleteMyAliasEnumStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1481,7 +1481,7 @@ const TypeObject* GetMinimalBasicStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1552,15 +1552,15 @@ const TypeObject* GetMinimalBasicStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1591,7 +1591,7 @@ const TypeObject* GetCompleteBasicStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1652,15 +1652,15 @@ const TypeObject* GetCompleteBasicStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1718,7 +1718,7 @@ const TypeObject* GetMinimalBasicNamesStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1789,15 +1789,15 @@ const TypeObject* GetMinimalBasicNamesStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1828,7 +1828,7 @@ const TypeObject* GetCompleteBasicNamesStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1889,15 +1889,15 @@ const TypeObject* GetCompleteBasicNamesStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1955,7 +1955,7 @@ const TypeObject* GetMinimalBasicBadStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2026,15 +2026,15 @@ const TypeObject* GetMinimalBasicBadStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2065,7 +2065,7 @@ const TypeObject* GetCompleteBasicBadStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2126,15 +2126,15 @@ const TypeObject* GetCompleteBasicBadStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2192,7 +2192,7 @@ const TypeObject* GetMinimalBasicWideStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2300,15 +2300,15 @@ const TypeObject* GetMinimalBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2339,7 +2339,7 @@ const TypeObject* GetCompleteBasicWideStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2431,15 +2431,15 @@ const TypeObject* GetCompleteBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2497,7 +2497,7 @@ const TypeObject* GetMinimalBadBasicWideStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2605,15 +2605,15 @@ const TypeObject* GetMinimalBadBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2644,7 +2644,7 @@ const TypeObject* GetCompleteBadBasicWideStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2736,15 +2736,15 @@ const TypeObject* GetCompleteBadBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2802,7 +2802,7 @@ const TypeObject* GetMinimalStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2835,15 +2835,15 @@ const TypeObject* GetMinimalStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2874,7 +2874,7 @@ const TypeObject* GetCompleteStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2903,15 +2903,15 @@ const TypeObject* GetCompleteStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2969,7 +2969,7 @@ const TypeObject* GetMinimalLargeStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3002,15 +3002,15 @@ const TypeObject* GetMinimalLargeStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3041,7 +3041,7 @@ const TypeObject* GetCompleteLargeStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3070,15 +3070,15 @@ const TypeObject* GetCompleteLargeStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3136,7 +3136,7 @@ const TypeObject* GetMinimalWStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3169,15 +3169,15 @@ const TypeObject* GetMinimalWStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3208,7 +3208,7 @@ const TypeObject* GetCompleteWStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3237,15 +3237,15 @@ const TypeObject* GetCompleteWStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3303,7 +3303,7 @@ const TypeObject* GetMinimalLargeWStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3336,15 +3336,15 @@ const TypeObject* GetMinimalLargeWStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3375,7 +3375,7 @@ const TypeObject* GetCompleteLargeWStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3404,15 +3404,15 @@ const TypeObject* GetCompleteLargeWStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3470,7 +3470,7 @@ const TypeObject* GetMinimalArrayStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3503,15 +3503,15 @@ const TypeObject* GetMinimalArrayStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3542,7 +3542,7 @@ const TypeObject* GetCompleteArrayStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3571,15 +3571,15 @@ const TypeObject* GetCompleteArrayStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3637,7 +3637,7 @@ const TypeObject* GetMinimalArrayStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3670,15 +3670,15 @@ const TypeObject* GetMinimalArrayStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3709,7 +3709,7 @@ const TypeObject* GetCompleteArrayStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3738,15 +3738,15 @@ const TypeObject* GetCompleteArrayStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3804,7 +3804,7 @@ const TypeObject* GetMinimalArrayBadStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3837,15 +3837,15 @@ const TypeObject* GetMinimalArrayBadStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3876,7 +3876,7 @@ const TypeObject* GetCompleteArrayBadStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3905,15 +3905,15 @@ const TypeObject* GetCompleteArrayBadStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3971,7 +3971,7 @@ const TypeObject* GetMinimalArrayDimensionsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4004,15 +4004,15 @@ const TypeObject* GetMinimalArrayDimensionsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4043,7 +4043,7 @@ const TypeObject* GetCompleteArrayDimensionsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4072,15 +4072,15 @@ const TypeObject* GetCompleteArrayDimensionsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4138,7 +4138,7 @@ const TypeObject* GetMinimalArraySizeStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4171,15 +4171,15 @@ const TypeObject* GetMinimalArraySizeStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4210,7 +4210,7 @@ const TypeObject* GetCompleteArraySizeStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4239,15 +4239,15 @@ const TypeObject* GetCompleteArraySizeStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4305,7 +4305,7 @@ const TypeObject* GetMinimalSequenceStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4338,15 +4338,15 @@ const TypeObject* GetMinimalSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4377,7 +4377,7 @@ const TypeObject* GetCompleteSequenceStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4406,15 +4406,15 @@ const TypeObject* GetCompleteSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4472,7 +4472,7 @@ const TypeObject* GetMinimalSequenceStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4505,15 +4505,15 @@ const TypeObject* GetMinimalSequenceStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4544,7 +4544,7 @@ const TypeObject* GetCompleteSequenceStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4573,15 +4573,15 @@ const TypeObject* GetCompleteSequenceStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4639,7 +4639,7 @@ const TypeObject* GetMinimalSequenceBadStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4672,15 +4672,15 @@ const TypeObject* GetMinimalSequenceBadStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4711,7 +4711,7 @@ const TypeObject* GetCompleteSequenceBadStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4740,15 +4740,15 @@ const TypeObject* GetCompleteSequenceBadStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4806,7 +4806,7 @@ const TypeObject* GetMinimalSequenceBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4839,15 +4839,15 @@ const TypeObject* GetMinimalSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4878,7 +4878,7 @@ const TypeObject* GetCompleteSequenceBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4907,15 +4907,15 @@ const TypeObject* GetCompleteSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4973,7 +4973,7 @@ const TypeObject* GetMinimalSequenceSequenceStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5006,15 +5006,15 @@ const TypeObject* GetMinimalSequenceSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5045,7 +5045,7 @@ const TypeObject* GetCompleteSequenceSequenceStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5074,15 +5074,15 @@ const TypeObject* GetCompleteSequenceSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5140,7 +5140,7 @@ const TypeObject* GetMinimalSequenceSequenceBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5173,15 +5173,15 @@ const TypeObject* GetMinimalSequenceSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5212,7 +5212,7 @@ const TypeObject* GetCompleteSequenceSequenceBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5241,15 +5241,15 @@ const TypeObject* GetCompleteSequenceSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5307,7 +5307,7 @@ const TypeObject* GetMinimalMapStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5340,15 +5340,15 @@ const TypeObject* GetMinimalMapStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5379,7 +5379,7 @@ const TypeObject* GetCompleteMapStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5408,15 +5408,15 @@ const TypeObject* GetCompleteMapStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5474,7 +5474,7 @@ const TypeObject* GetMinimalMapStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5507,15 +5507,15 @@ const TypeObject* GetMinimalMapStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5546,7 +5546,7 @@ const TypeObject* GetCompleteMapStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5575,15 +5575,15 @@ const TypeObject* GetCompleteMapStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5641,7 +5641,7 @@ const TypeObject* GetMinimalMapBadKeyStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5674,15 +5674,15 @@ const TypeObject* GetMinimalMapBadKeyStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5713,7 +5713,7 @@ const TypeObject* GetCompleteMapBadKeyStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5742,15 +5742,15 @@ const TypeObject* GetCompleteMapBadKeyStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5808,7 +5808,7 @@ const TypeObject* GetMinimalMapBadElemStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5841,15 +5841,15 @@ const TypeObject* GetMinimalMapBadElemStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5880,7 +5880,7 @@ const TypeObject* GetCompleteMapBadElemStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5909,15 +5909,15 @@ const TypeObject* GetCompleteMapBadElemStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5975,7 +5975,7 @@ const TypeObject* GetMinimalMapBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6008,15 +6008,15 @@ const TypeObject* GetMinimalMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6047,7 +6047,7 @@ const TypeObject* GetCompleteMapBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6076,15 +6076,15 @@ const TypeObject* GetCompleteMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6142,7 +6142,7 @@ const TypeObject* GetMinimalMapMapStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6175,15 +6175,15 @@ const TypeObject* GetMinimalMapMapStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6214,7 +6214,7 @@ const TypeObject* GetCompleteMapMapStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6243,15 +6243,15 @@ const TypeObject* GetCompleteMapMapStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6309,7 +6309,7 @@ const TypeObject* GetMinimalMapMapBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6342,15 +6342,15 @@ const TypeObject* GetMinimalMapMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6381,7 +6381,7 @@ const TypeObject* GetCompleteMapMapBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6410,15 +6410,15 @@ const TypeObject* GetCompleteMapMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6476,7 +6476,7 @@ const TypeObject* GetMinimalSimpleUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6541,15 +6541,15 @@ const TypeObject* GetMinimalSimpleUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6581,7 +6581,7 @@ const TypeObject* GetCompleteSimpleUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6640,15 +6640,15 @@ const TypeObject* GetCompleteSimpleUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6707,7 +6707,7 @@ const TypeObject* GetMinimalSimpleUnionNamesObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6772,15 +6772,15 @@ const TypeObject* GetMinimalSimpleUnionNamesObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6812,7 +6812,7 @@ const TypeObject* GetCompleteSimpleUnionNamesObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6871,15 +6871,15 @@ const TypeObject* GetCompleteSimpleUnionNamesObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6938,7 +6938,7 @@ const TypeObject* GetMinimalSimpleTypeUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7003,15 +7003,15 @@ const TypeObject* GetMinimalSimpleTypeUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7043,7 +7043,7 @@ const TypeObject* GetCompleteSimpleTypeUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7102,15 +7102,15 @@ const TypeObject* GetCompleteSimpleTypeUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7169,7 +7169,7 @@ const TypeObject* GetMinimalSimpleBadUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7234,15 +7234,15 @@ const TypeObject* GetMinimalSimpleBadUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7274,7 +7274,7 @@ const TypeObject* GetCompleteSimpleBadUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7333,15 +7333,15 @@ const TypeObject* GetCompleteSimpleBadUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7400,7 +7400,7 @@ const TypeObject* GetMinimalSimpleBadDiscUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7465,15 +7465,15 @@ const TypeObject* GetMinimalSimpleBadDiscUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7505,7 +7505,7 @@ const TypeObject* GetCompleteSimpleBadDiscUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7564,15 +7564,15 @@ const TypeObject* GetCompleteSimpleBadDiscUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7631,7 +7631,7 @@ const TypeObject* GetMinimalSimpleUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7664,15 +7664,15 @@ const TypeObject* GetMinimalSimpleUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7703,7 +7703,7 @@ const TypeObject* GetCompleteSimpleUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7732,15 +7732,15 @@ const TypeObject* GetCompleteSimpleUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7798,7 +7798,7 @@ const TypeObject* GetMinimalSimpleUnionStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7831,15 +7831,15 @@ const TypeObject* GetMinimalSimpleUnionStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7870,7 +7870,7 @@ const TypeObject* GetCompleteSimpleUnionStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7899,15 +7899,15 @@ const TypeObject* GetCompleteSimpleUnionStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7965,7 +7965,7 @@ const TypeObject* GetMinimalSimpleUnionNamesStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7998,15 +7998,15 @@ const TypeObject* GetMinimalSimpleUnionNamesStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8037,7 +8037,7 @@ const TypeObject* GetCompleteSimpleUnionNamesStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8066,15 +8066,15 @@ const TypeObject* GetCompleteSimpleUnionNamesStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8132,7 +8132,7 @@ const TypeObject* GetMinimalSimpleTypeUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8165,15 +8165,15 @@ const TypeObject* GetMinimalSimpleTypeUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8204,7 +8204,7 @@ const TypeObject* GetCompleteSimpleTypeUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8233,15 +8233,15 @@ const TypeObject* GetCompleteSimpleTypeUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8299,7 +8299,7 @@ const TypeObject* GetMinimalSimpleBadUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8332,15 +8332,15 @@ const TypeObject* GetMinimalSimpleBadUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8371,7 +8371,7 @@ const TypeObject* GetCompleteSimpleBadUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8400,15 +8400,15 @@ const TypeObject* GetCompleteSimpleBadUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8466,7 +8466,7 @@ const TypeObject* GetMinimalSimplBadDiscUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8499,15 +8499,15 @@ const TypeObject* GetMinimalSimplBadDiscUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8538,7 +8538,7 @@ const TypeObject* GetCompleteSimplBadDiscUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8567,15 +8567,15 @@ const TypeObject* GetCompleteSimplBadDiscUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/unittest/xtypes/idl/WideEnumTypeObject.cxx b/test/unittest/xtypes/idl/WideEnumTypeObject.cxx index d34633a24e4..e53965ad0e7 100644 --- a/test/unittest/xtypes/idl/WideEnumTypeObject.cxx +++ b/test/unittest/xtypes/idl/WideEnumTypeObject.cxx @@ -189,15 +189,15 @@ const TypeObject* GetMinimalMyEnumWideObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -294,15 +294,15 @@ const TypeObject* GetCompleteMyEnumWideObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -360,7 +360,7 @@ const TypeObject* GetMinimalMyEnumWideStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -393,15 +393,15 @@ const TypeObject* GetMinimalMyEnumWideStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -432,7 +432,7 @@ const TypeObject* GetCompleteMyEnumWideStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -461,15 +461,15 @@ const TypeObject* GetCompleteMyEnumWideStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -527,7 +527,7 @@ const TypeObject* GetMinimalSimpleWideUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -613,15 +613,15 @@ const TypeObject* GetMinimalSimpleWideUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -653,7 +653,7 @@ const TypeObject* GetCompleteSimpleWideUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -730,15 +730,15 @@ const TypeObject* GetCompleteSimpleWideUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -797,7 +797,7 @@ const TypeObject* GetMinimalSimpleWideUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -830,15 +830,15 @@ const TypeObject* GetMinimalSimpleWideUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -869,7 +869,7 @@ const TypeObject* GetCompleteSimpleWideUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -898,15 +898,15 @@ const TypeObject* GetCompleteSimpleWideUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; diff --git a/test/xtypes/idl/TypesTypeObject.cxx b/test/xtypes/idl/TypesTypeObject.cxx index 0a750aebb12..38779b7bcab 100644 --- a/test/xtypes/idl/TypesTypeObject.cxx +++ b/test/xtypes/idl/TypesTypeObject.cxx @@ -413,15 +413,15 @@ const TypeObject* GetMinimalMyEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -505,15 +505,15 @@ const TypeObject* GetCompleteMyEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -632,15 +632,15 @@ const TypeObject* GetMinimalMyBadEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -724,15 +724,15 @@ const TypeObject* GetCompleteMyBadEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().enumerated_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -790,7 +790,7 @@ const TypeObject* GetMinimalMyEnumStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -823,15 +823,15 @@ const TypeObject* GetMinimalMyEnumStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -862,7 +862,7 @@ const TypeObject* GetCompleteMyEnumStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -891,15 +891,15 @@ const TypeObject* GetCompleteMyEnumStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -957,7 +957,7 @@ const TypeObject* GetMinimalMyBadEnumStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -990,15 +990,15 @@ const TypeObject* GetMinimalMyBadEnumStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1029,7 +1029,7 @@ const TypeObject* GetCompleteMyBadEnumStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1058,15 +1058,15 @@ const TypeObject* GetCompleteMyBadEnumStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1161,15 +1161,15 @@ const TypeObject* GetMinimalMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1245,15 +1245,15 @@ const TypeObject* GetCompleteMyAliasEnumObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().alias_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1314,7 +1314,7 @@ const TypeObject* GetMinimalMyAliasEnumStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1347,15 +1347,15 @@ const TypeObject* GetMinimalMyAliasEnumStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1386,7 +1386,7 @@ const TypeObject* GetCompleteMyAliasEnumStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1415,15 +1415,15 @@ const TypeObject* GetCompleteMyAliasEnumStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1481,7 +1481,7 @@ const TypeObject* GetMinimalBasicStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1552,15 +1552,15 @@ const TypeObject* GetMinimalBasicStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1591,7 +1591,7 @@ const TypeObject* GetCompleteBasicStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1652,15 +1652,15 @@ const TypeObject* GetCompleteBasicStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1718,7 +1718,7 @@ const TypeObject* GetMinimalBasicNamesStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1789,15 +1789,15 @@ const TypeObject* GetMinimalBasicNamesStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1828,7 +1828,7 @@ const TypeObject* GetCompleteBasicNamesStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -1889,15 +1889,15 @@ const TypeObject* GetCompleteBasicNamesStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -1955,7 +1955,7 @@ const TypeObject* GetMinimalBasicBadStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2026,15 +2026,15 @@ const TypeObject* GetMinimalBasicBadStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2065,7 +2065,7 @@ const TypeObject* GetCompleteBasicBadStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2126,15 +2126,15 @@ const TypeObject* GetCompleteBasicBadStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2192,7 +2192,7 @@ const TypeObject* GetMinimalBasicWideStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2300,15 +2300,15 @@ const TypeObject* GetMinimalBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2339,7 +2339,7 @@ const TypeObject* GetCompleteBasicWideStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2431,15 +2431,15 @@ const TypeObject* GetCompleteBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2497,7 +2497,7 @@ const TypeObject* GetMinimalBadBasicWideStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2605,15 +2605,15 @@ const TypeObject* GetMinimalBadBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2644,7 +2644,7 @@ const TypeObject* GetCompleteBadBasicWideStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2736,15 +2736,15 @@ const TypeObject* GetCompleteBadBasicWideStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2802,7 +2802,7 @@ const TypeObject* GetMinimalStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2835,15 +2835,15 @@ const TypeObject* GetMinimalStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2874,7 +2874,7 @@ const TypeObject* GetCompleteStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -2903,15 +2903,15 @@ const TypeObject* GetCompleteStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -2969,7 +2969,7 @@ const TypeObject* GetMinimalLargeStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3002,15 +3002,15 @@ const TypeObject* GetMinimalLargeStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3041,7 +3041,7 @@ const TypeObject* GetCompleteLargeStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3070,15 +3070,15 @@ const TypeObject* GetCompleteLargeStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3136,7 +3136,7 @@ const TypeObject* GetMinimalWStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3169,15 +3169,15 @@ const TypeObject* GetMinimalWStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3208,7 +3208,7 @@ const TypeObject* GetCompleteWStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3237,15 +3237,15 @@ const TypeObject* GetCompleteWStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3303,7 +3303,7 @@ const TypeObject* GetMinimalLargeWStringStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3336,15 +3336,15 @@ const TypeObject* GetMinimalLargeWStringStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3375,7 +3375,7 @@ const TypeObject* GetCompleteLargeWStringStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3404,15 +3404,15 @@ const TypeObject* GetCompleteLargeWStringStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3470,7 +3470,7 @@ const TypeObject* GetMinimalArrayStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3503,15 +3503,15 @@ const TypeObject* GetMinimalArrayStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3542,7 +3542,7 @@ const TypeObject* GetCompleteArrayStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3571,15 +3571,15 @@ const TypeObject* GetCompleteArrayStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3637,7 +3637,7 @@ const TypeObject* GetMinimalArrayStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3670,15 +3670,15 @@ const TypeObject* GetMinimalArrayStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3709,7 +3709,7 @@ const TypeObject* GetCompleteArrayStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3738,15 +3738,15 @@ const TypeObject* GetCompleteArrayStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3804,7 +3804,7 @@ const TypeObject* GetMinimalArrayBadStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3837,15 +3837,15 @@ const TypeObject* GetMinimalArrayBadStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3876,7 +3876,7 @@ const TypeObject* GetCompleteArrayBadStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -3905,15 +3905,15 @@ const TypeObject* GetCompleteArrayBadStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -3971,7 +3971,7 @@ const TypeObject* GetMinimalArrayDimensionsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4004,15 +4004,15 @@ const TypeObject* GetMinimalArrayDimensionsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4043,7 +4043,7 @@ const TypeObject* GetCompleteArrayDimensionsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4072,15 +4072,15 @@ const TypeObject* GetCompleteArrayDimensionsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4138,7 +4138,7 @@ const TypeObject* GetMinimalArraySizeStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4171,15 +4171,15 @@ const TypeObject* GetMinimalArraySizeStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4210,7 +4210,7 @@ const TypeObject* GetCompleteArraySizeStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4239,15 +4239,15 @@ const TypeObject* GetCompleteArraySizeStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4305,7 +4305,7 @@ const TypeObject* GetMinimalSequenceStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4338,15 +4338,15 @@ const TypeObject* GetMinimalSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4377,7 +4377,7 @@ const TypeObject* GetCompleteSequenceStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4406,15 +4406,15 @@ const TypeObject* GetCompleteSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4472,7 +4472,7 @@ const TypeObject* GetMinimalSequenceStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4505,15 +4505,15 @@ const TypeObject* GetMinimalSequenceStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4544,7 +4544,7 @@ const TypeObject* GetCompleteSequenceStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4573,15 +4573,15 @@ const TypeObject* GetCompleteSequenceStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4639,7 +4639,7 @@ const TypeObject* GetMinimalSequenceBadStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4672,15 +4672,15 @@ const TypeObject* GetMinimalSequenceBadStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4711,7 +4711,7 @@ const TypeObject* GetCompleteSequenceBadStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4740,15 +4740,15 @@ const TypeObject* GetCompleteSequenceBadStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4806,7 +4806,7 @@ const TypeObject* GetMinimalSequenceBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4839,15 +4839,15 @@ const TypeObject* GetMinimalSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4878,7 +4878,7 @@ const TypeObject* GetCompleteSequenceBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -4907,15 +4907,15 @@ const TypeObject* GetCompleteSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -4973,7 +4973,7 @@ const TypeObject* GetMinimalSequenceSequenceStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5006,15 +5006,15 @@ const TypeObject* GetMinimalSequenceSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5045,7 +5045,7 @@ const TypeObject* GetCompleteSequenceSequenceStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5074,15 +5074,15 @@ const TypeObject* GetCompleteSequenceSequenceStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5140,7 +5140,7 @@ const TypeObject* GetMinimalSequenceSequenceBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5173,15 +5173,15 @@ const TypeObject* GetMinimalSequenceSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5212,7 +5212,7 @@ const TypeObject* GetCompleteSequenceSequenceBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5241,15 +5241,15 @@ const TypeObject* GetCompleteSequenceSequenceBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5307,7 +5307,7 @@ const TypeObject* GetMinimalMapStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5340,15 +5340,15 @@ const TypeObject* GetMinimalMapStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5379,7 +5379,7 @@ const TypeObject* GetCompleteMapStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5408,15 +5408,15 @@ const TypeObject* GetCompleteMapStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5474,7 +5474,7 @@ const TypeObject* GetMinimalMapStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5507,15 +5507,15 @@ const TypeObject* GetMinimalMapStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5546,7 +5546,7 @@ const TypeObject* GetCompleteMapStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5575,15 +5575,15 @@ const TypeObject* GetCompleteMapStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5641,7 +5641,7 @@ const TypeObject* GetMinimalMapBadKeyStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5674,15 +5674,15 @@ const TypeObject* GetMinimalMapBadKeyStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5713,7 +5713,7 @@ const TypeObject* GetCompleteMapBadKeyStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5742,15 +5742,15 @@ const TypeObject* GetCompleteMapBadKeyStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5808,7 +5808,7 @@ const TypeObject* GetMinimalMapBadElemStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5841,15 +5841,15 @@ const TypeObject* GetMinimalMapBadElemStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5880,7 +5880,7 @@ const TypeObject* GetCompleteMapBadElemStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -5909,15 +5909,15 @@ const TypeObject* GetCompleteMapBadElemStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -5975,7 +5975,7 @@ const TypeObject* GetMinimalMapBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6008,15 +6008,15 @@ const TypeObject* GetMinimalMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6047,7 +6047,7 @@ const TypeObject* GetCompleteMapBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6076,15 +6076,15 @@ const TypeObject* GetCompleteMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6142,7 +6142,7 @@ const TypeObject* GetMinimalMapMapStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6175,15 +6175,15 @@ const TypeObject* GetMinimalMapMapStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6214,7 +6214,7 @@ const TypeObject* GetCompleteMapMapStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6243,15 +6243,15 @@ const TypeObject* GetCompleteMapMapStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6309,7 +6309,7 @@ const TypeObject* GetMinimalMapMapBoundsStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6342,15 +6342,15 @@ const TypeObject* GetMinimalMapMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6381,7 +6381,7 @@ const TypeObject* GetCompleteMapMapBoundsStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6410,15 +6410,15 @@ const TypeObject* GetCompleteMapMapBoundsStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6476,7 +6476,7 @@ const TypeObject* GetMinimalSimpleUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6541,15 +6541,15 @@ const TypeObject* GetMinimalSimpleUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6581,7 +6581,7 @@ const TypeObject* GetCompleteSimpleUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6640,15 +6640,15 @@ const TypeObject* GetCompleteSimpleUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6707,7 +6707,7 @@ const TypeObject* GetMinimalSimpleUnionNamesObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6772,15 +6772,15 @@ const TypeObject* GetMinimalSimpleUnionNamesObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6812,7 +6812,7 @@ const TypeObject* GetCompleteSimpleUnionNamesObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -6871,15 +6871,15 @@ const TypeObject* GetCompleteSimpleUnionNamesObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -6938,7 +6938,7 @@ const TypeObject* GetMinimalSimpleTypeUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7003,15 +7003,15 @@ const TypeObject* GetMinimalSimpleTypeUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7043,7 +7043,7 @@ const TypeObject* GetCompleteSimpleTypeUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7102,15 +7102,15 @@ const TypeObject* GetCompleteSimpleTypeUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7169,7 +7169,7 @@ const TypeObject* GetMinimalSimpleBadUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7234,15 +7234,15 @@ const TypeObject* GetMinimalSimpleBadUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7274,7 +7274,7 @@ const TypeObject* GetCompleteSimpleBadUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7333,15 +7333,15 @@ const TypeObject* GetCompleteSimpleBadUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7400,7 +7400,7 @@ const TypeObject* GetMinimalSimpleBadDiscUnionObject() type_object->minimal()._d(TK_UNION); type_object->minimal().union_type().union_flags().IS_FINAL(false); - type_object->minimal().union_type().union_flags().IS_APPENDABLE(true); + type_object->minimal().union_type().union_flags().IS_APPENDABLE(false); type_object->minimal().union_type().union_flags().IS_MUTABLE(false); type_object->minimal().union_type().union_flags().IS_NESTED(false); type_object->minimal().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7465,15 +7465,15 @@ const TypeObject* GetMinimalSimpleBadDiscUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7505,7 +7505,7 @@ const TypeObject* GetCompleteSimpleBadDiscUnionObject() type_object->complete()._d(TK_UNION); type_object->complete().union_type().union_flags().IS_FINAL(false); - type_object->complete().union_type().union_flags().IS_APPENDABLE(true); + type_object->complete().union_type().union_flags().IS_APPENDABLE(false); type_object->complete().union_type().union_flags().IS_MUTABLE(false); type_object->complete().union_type().union_flags().IS_NESTED(false); type_object->complete().union_type().union_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7564,15 +7564,15 @@ const TypeObject* GetCompleteSimpleBadDiscUnionObject() TypeIdentifier* identifier = new TypeIdentifier(); identifier->_d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().union_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7631,7 +7631,7 @@ const TypeObject* GetMinimalSimpleUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7664,15 +7664,15 @@ const TypeObject* GetMinimalSimpleUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7703,7 +7703,7 @@ const TypeObject* GetCompleteSimpleUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7732,15 +7732,15 @@ const TypeObject* GetCompleteSimpleUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7798,7 +7798,7 @@ const TypeObject* GetMinimalSimpleUnionStructEqualObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7831,15 +7831,15 @@ const TypeObject* GetMinimalSimpleUnionStructEqualObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7870,7 +7870,7 @@ const TypeObject* GetCompleteSimpleUnionStructEqualObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7899,15 +7899,15 @@ const TypeObject* GetCompleteSimpleUnionStructEqualObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -7965,7 +7965,7 @@ const TypeObject* GetMinimalSimpleUnionNamesStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -7998,15 +7998,15 @@ const TypeObject* GetMinimalSimpleUnionNamesStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8037,7 +8037,7 @@ const TypeObject* GetCompleteSimpleUnionNamesStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8066,15 +8066,15 @@ const TypeObject* GetCompleteSimpleUnionNamesStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8132,7 +8132,7 @@ const TypeObject* GetMinimalSimpleTypeUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8165,15 +8165,15 @@ const TypeObject* GetMinimalSimpleTypeUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8204,7 +8204,7 @@ const TypeObject* GetCompleteSimpleTypeUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8233,15 +8233,15 @@ const TypeObject* GetCompleteSimpleTypeUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8299,7 +8299,7 @@ const TypeObject* GetMinimalSimpleBadUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8332,15 +8332,15 @@ const TypeObject* GetMinimalSimpleBadUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8371,7 +8371,7 @@ const TypeObject* GetCompleteSimpleBadUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8400,15 +8400,15 @@ const TypeObject* GetCompleteSimpleBadUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8466,7 +8466,7 @@ const TypeObject* GetMinimalSimplBadDiscUnionStructObject() type_object->minimal()._d(TK_STRUCTURE); type_object->minimal().struct_type().struct_flags().IS_FINAL(false); - type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->minimal().struct_type().struct_flags().IS_APPENDABLE(false); type_object->minimal().struct_type().struct_flags().IS_MUTABLE(false); type_object->minimal().struct_type().struct_flags().IS_NESTED(false); type_object->minimal().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8499,15 +8499,15 @@ const TypeObject* GetMinimalSimplBadDiscUnionStructObject() TypeIdentifier identifier; identifier._d(EK_MINIMAL); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->minimal().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object; @@ -8538,7 +8538,7 @@ const TypeObject* GetCompleteSimplBadDiscUnionStructObject() type_object->complete()._d(TK_STRUCTURE); type_object->complete().struct_type().struct_flags().IS_FINAL(false); - type_object->complete().struct_type().struct_flags().IS_APPENDABLE(true); + type_object->complete().struct_type().struct_flags().IS_APPENDABLE(false); type_object->complete().struct_type().struct_flags().IS_MUTABLE(false); type_object->complete().struct_type().struct_flags().IS_NESTED(false); type_object->complete().struct_type().struct_flags().IS_AUTOID_HASH(false); // Unsupported @@ -8567,15 +8567,15 @@ const TypeObject* GetCompleteSimplBadDiscUnionStructObject() TypeIdentifier identifier; identifier._d(EK_COMPLETE); - eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv2); + eprosima::fastcdr::CdrSizeCalculator calculator(eprosima::fastcdr::CdrVersion::XCDRv1); size_t current_alignment {0}; SerializedPayload_t payload(static_cast( calculator.calculate_serialized_size(type_object->complete().struct_type(), current_alignment) + 4)); eprosima::fastcdr::FastBuffer fastbuffer((char*) payload.data, payload.max_size); // Fixed endian (Page 221, EquivalenceHash definition of Extensible and Dynamic Topic Types for DDS document) eprosima::fastcdr::Cdr ser( - fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, - eprosima::fastcdr::CdrVersion::XCDRv2); // Object that serializes the data. + fastbuffer, eprosima::fastcdr::Cdr::LITTLE_ENDIANNESS, + eprosima::fastcdr::CdrVersion::XCDRv1); // Object that serializes the data. payload.encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; ser << *type_object;