|Subject:||Re: [Discuss-gnuradio] consuming all inputs, small outputs|
|Date:||Mon, 19 Jan 2015 22:10:09 +0100|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0|
um, which tutorial block are you referring to?
noutput_items is the *maximum* number of items your work function call is allowed to produce (on output stream 0); you can produce less.
ninput_items is the number of items ready for processing (on input stream 0); you can consume less, and will be presented with the remainder plus items that might have come in in the meantime.
So the point here is that general_work of general_block doesn't make any assumptions on the relationship between the number of items you consume and produce; if you have a sync_block, for comparison, there's always a take-N-give-N relationship.
On 01/19/2015 10:05 PM, Jon West wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|