Open Jackie2chen opened 5 months ago
@Jackie2chen Nested structures don't usually play well with Zero-Copy. See https://github.com/eProsima/Fast-DDS-Gen/issues/193 for a nice discussion on this
Thank you for your reply. But why is it necessary to consider the CDR specification when using zero-copy? What is the significance of this operation? Is it because OMG requires it to be implemented this way?
Is it possible to determine whether a struct in the IDL supports zero-copy through a script or other means without compiling the generated code?
I look forward to your professional response.
Byte Alignment Rule and Zero-Copy Support
Due to this byte alignment rule, case 2 does not support zero-copy, but case 1 does.
Byte Alignment Code
Case 1: Supports Zero-Copy
Case 2: Does Not Support Zero-Copy
is that a bug?