Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

set connext buffer capacity #417

Merged
merged 1 commit into from
Apr 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rmw_connext_cpp/src/rmw_take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ take(

if (!ignore_sample) {
cdr_stream->buffer_length = dds_messages[0].serialized_data.length();
cdr_stream->buffer_capacity = cdr_stream->buffer_length;
// TODO(karsten1987): This malloc has to go!
cdr_stream->buffer =
reinterpret_cast<uint8_t *>(malloc(cdr_stream->buffer_length * sizeof(uint8_t)));
Expand Down