Hi Jeff and Vasil,

Thank you very much!

George

On Wed, Apr 13, 2022 at 7:21 PM Jeff Long <willco...@gmail.com> wrote:

> The C++ API gives you ninput_items explicitly, so ninput_items[0] is the
> number of items in input_items[0].
>
> On Wed, Apr 13, 2022 at 7:18 PM George Edwards <gedwards....@gmail.com>
> wrote:
>
>> Hello GNURadio Community,
>>
>> I am writing a Gnuradio C++ OOT block and need to get the number of
>> complex input data samples fed into my block by the scheduler on each
>> iteration of data delivery. I need to know this information because the
>> relationship between my input and output stream is not as simple as say a
>> one to one I/O as the "sync" block.
>>
>> In Python, it is easy, I can find the value by doing: numInputs =
>> len(input_items[0]). In the C++ general_work method which I paste below,
>> I have not been able to extract the number of input samples from any of the
>> parameters.
>> [image: image.png]
>>
>> I will appreciate any help provided.
>> Thank you!
>> George
>>
>>
>

Reply via email to