Skip to content

Difference between WriterLoanExample and ZeroCopyExample #2933

Answered by MiguelCompany
duchengyao asked this question in Q&A
Discussion options

You must be logged in to vote

Does it means take_next_sample() copy data, but take() wont' copy data?

Correct, but incomplete.

take_next_sample will always copy data.
take will not copy data when called with empty data_values and sample_infos.

Check here and here for more information.

Replies: 4 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants