discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] message buffers


From: Josh Blum
Subject: Re: [Discuss-gnuradio] message buffers
Date: Fri, 14 Jun 2013 01:25:17 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6


On 06/14/2013 01:02 AM, Yogesh Dahiya wrote:
> when taking the len of input buffer (len[0]) it shows 0 but when i am
> calling pop_input_msg(0) it return the msg object ?
> 

So an input port can have 3 types of input buffers, messages, and tags.
Think of buffers as bulk data, tags are inline messages associated with
the bulk data, and messages are just messages that are asynchronous to
the bulk data.

len(ins[0]) would be non zero if an upstream block produced a buffer

pop_input_msg(0) would return a non-null PMC if an upstream block
produced a message.

In this case, I think your block is only expecting the asynchronous
messages, so len(ins[0]) would always == 0.

-josh

> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]