Return virgin body after adaptation started?

Asked by koc

Hello!

I'm starting chunked content adaptation as hostx->useAdapted(adapted). But then (for some reasons) I want to stop adaptation and return the virgin body. Is it possible do it magically like: hostx->useVirgin(); abDiscard();? Or I should collect the virgin body and return it as adapted body?

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Rousskov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Rousskov (rousskov) said :
#1

Once you call useAdapted(), you cannot call useVirgin() because the host application may discard any buffered virgin body after the useAdapted() call.

We could add an eCAP API to carefully splice adapted prefix with a virgin body suffix, but it would be rather complex/risky. Since the overhead of pumping the virgin body through the adapter ought to be minimal, I doubt adding such API is a good idea.

Revision history for this message
koc (koc-q) said :
#2

Thanks Alex Rousskov, that solved my question.