Hello,
An other question to send data from a box. If I have not one, but many chunks to present at the output of the boxe, can I use the getOutputChunk() // markOutputAsReadyToSend() procedure sequentially - in the same box process ? Or I should send one chunk by call to the process() method of the boxe ?
Thank you,
Guillaume.
getOutputChunk() and markOutputAsReadyToSend() procedure.
Re: getOutputChunk() and markOutputAsReadyToSend() procedure.
To fulfill what glio notice :
If getOutputChunk + markOutputAsReadyToSend is used many times in a box process, does the output is the last one (they overwrite) or does they fill a queue?
In case of queue, does markOutputAsReadyToSend should be send each time or only at the end of a box process?
In the case of overwriting, does appendOutputChunkData (with getOutputChunkBuffer) is enough?
If getOutputChunk + markOutputAsReadyToSend is used many times in a box process, does the output is the last one (they overwrite) or does they fill a queue?
In case of queue, does markOutputAsReadyToSend should be send each time or only at the end of a box process?
In the case of overwriting, does appendOutputChunkData (with getOutputChunkBuffer) is enough?
Re: getOutputChunk() and markOutputAsReadyToSend() procedure.
Dear glio, dear matthieuG,
you can call the getOutputChunk / markOutputAsReadyToSend pair as many times as you want in a single process call. There is a queue so no data will be lost. As soon as you markOutputAsReadyToSend, the output chunk is taken by the kernel and a new empty chunk is ready to be filled as stated in the documentation page :
Best regards,
Yann
you can call the getOutputChunk / markOutputAsReadyToSend pair as many times as you want in a single process call. There is a queue so no data will be lost. As soon as you markOutputAsReadyToSend, the output chunk is taken by the kernel and a new empty chunk is ready to be filled as stated in the documentation page :
Hope this helps,When called, the function flushes the output chunk. Thus, after the call, the chunk size is turned to 0 and the output is ready for a new chunk when necessary...
Best regards,
Yann
Re: getOutputChunk() and markOutputAsReadyToSend() procedure.
perfect, thanks!