Zero-Copy transfer support for non-plain [13306] #2393
-
is the latest release of fast-dds support Zero-Copy transfer support for non-plain? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
when i use take _instance for non-plain type data, after a few moment the subscriber stop the callback of on_data_available. |
Beta Was this translation helpful? Give feedback.
-
Hi @handler1224mother ,
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).
Yes, you should be able to use In any case, if these are two separe questions, I'd appreciate if you could open two different tickets to help us track them better. |
Beta Was this translation helpful? Give feedback.
-
Does Zero-Copy support sequence? |
Beta Was this translation helpful? Give feedback.
-
What are the reasons for the plain and bounded type constraints? I suspect it might be to facilitate the use of a Pre-allocated PayloadPool? It seems to me that implement loaning is also possible for dynamically allocated PayloadPools (i'm not so sure). Or maybe there are other reasons for the constraints? ---- edit ---- |
Beta Was this translation helpful? Give feedback.
Hi @handler1224mother ,
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).
Yes, you should be able to use
DataReader::take_instance
for non-plain data as well. What do you mean bythe 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…