Zerocopy with sequence datatype #3810
ussefdesouky
started this conversation in
Support
Replies: 1 comment 3 replies
-
Thanks for the report @ussefdesouky Please, take into account the zero-copy mechanism constraints. The modification introduced in the IDL file prevents both the plain and bounded requirements to be met. Besides, the I am moving this to the support discussion forum as per Fast DDS CONTRIBUTING guidelines. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an already existing issue for this?
Expected behavior
I am using the zerocopy example, just changed the message struct and added a
sequence<octet> img;
Current behavior
The Zerocopy example totally depending on the following line of code, so if it's true it publishes the message.
ReturnCode_t::RETCODE_OK == writer_->loan_sample(sample)
Steps to reproduce
when I change the normal .idl message from
struct LoanableHelloWorld
{
unsigned long index;
unsigned long long timestamp;
char data[256];
};
to the following
struct LoanableHelloWorld { unsigned long index; unsigned long long timestamp; sequence<octet> img; };
this line of code returns false so it does not publish any data again.
Is the sequence datatype can't be used in such transport protocol?
Fast DDS version/commit
master
Platform/Architecture
Other. Please specify in Additional context section.
Transport layer
Zero copy
Additional context
No response
XML configuration file
No response
Relevant log output
Starting LoanableHelloWorld DataWriter created. LoanableHelloWorld DataWriter waiting for DataReaders. DataWriter matched.
Network traffic capture
No response
Beta Was this translation helpful? Give feedback.
All reactions