Skip to content

Zero-Copy transfer support for non-plain [13306] #2393

Answered by EduPonz
handler1224mother asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @handler1224mother ,

is the latest release of fast-dds support Zero-Copy transfer support for non-plain?

Unfortunately, the loaning APIs (Zero-copy is a combination of Data sharing and loans in both DataWriter and DataReader) only support plain types (see this).

when i use take _instance for non-plain type data, after a few moment the subscriber stop the callback of on_data_available.
can you help me to solve it ? thank you very much

Yes, you should be able to use DataReader::take_instance for non-plain data as well. What do you mean by the subscriber stop the callback of on_data_available? I'm afraid we would need more information to help you with your problem.

In any case, if the…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by EduPonz
Comment options

You must be logged in to vote
1 reply
@JLBuenoLopez
Comment options

Comment options

You must be logged in to vote
1 reply
@JesusPoderoso
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #2392 on January 10, 2022 11:10.