Skip to content

Commit

Permalink
Support Fast CDR v2 (#141)
Browse files Browse the repository at this point in the history
* camelCase to snake_case method changes.

* Constructor constants changes.

Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany authored Mar 26, 2024
1 parent a127514 commit e11d404
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rmw_connextdds_common/src/common/rmw_type_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ rmw_ret_t RMW_Connext_MessageTypeSupport::serialize(
eprosima::fastcdr::Cdr cdr_stream(
cdr_buffer,
eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR);
cdr_stream.setDDSCdrPlFlag(
eprosima::fastcdr::Cdr::DDSCdrPlFlag::DDS_CDR_WITHOUT_PL);
eprosima::fastcdr::CdrVersion::XCDRv1);
cdr_stream.set_encoding_flag(
eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR);

RMW_CONNEXT_LOG_TRACE_A(
"[type support] %s serialize: "
Expand Down Expand Up @@ -364,7 +364,7 @@ rmw_ret_t RMW_Connext_MessageTypeSupport::serialize(
return RMW_RET_ERROR;
}

to_buffer->buffer_length = cdr_stream.getSerializedDataLength();
to_buffer->buffer_length = cdr_stream.get_serialized_data_length();

RMW_CONNEXT_LOG_DEBUG_A(
"[type support] %s serialized: "
Expand Down Expand Up @@ -392,7 +392,7 @@ RMW_Connext_MessageTypeSupport::deserialize(
eprosima::fastcdr::Cdr cdr_stream(
cdr_buffer,
eprosima::fastcdr::Cdr::DEFAULT_ENDIAN,
eprosima::fastcdr::Cdr::DDS_CDR);
eprosima::fastcdr::CdrVersion::XCDRv1);

RMW_CONNEXT_LOG_TRACE_A(
"[type support] %s deserialize: "
Expand Down Expand Up @@ -475,7 +475,7 @@ RMW_Connext_MessageTypeSupport::deserialize(
return RMW_RET_ERROR;
}

size_out = cdr_stream.getSerializedDataLength();
size_out = cdr_stream.get_serialized_data_length();

RMW_CONNEXT_LOG_DEBUG_A(
"[type support] %s deserialized: "
Expand Down

0 comments on commit e11d404

Please sign in to comment.