discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Is it safe to modify input buffers in general_wor


From: Michael Dickens
Subject: Re: [Discuss-gnuradio] Is it safe to modify input buffers in general_work()?
Date: Sat, 10 Nov 2018 20:01:00 -0500

Former: so, the vector of pointers provided to "work" or "general_work". You 
can manipulate them to your heart's content! The vector is refreshed with each 
call to "work" (etc), and the best you can do with the pointers is use them 
just like any other pointers -- just not update the "parent" variables; that's 
done by the scheduler itself.

Glad this helped! - MLD

On Sat, Nov 10, 2018, at 4:21 PM, rear1019 wrote:
> On Fri, 09 Nov 2018 at 16:07:53 -0500, Michael Dickens wrote:
> > Depends on what you mean by "modify input buffers" ... You can read
> > and write to the buffers via the provided pointers. But the provided
> > pointers do not allow you to modify the actual gr::buffer in any way
> > ... they just point to where data is located. - MLD
> 
> I am referring to the former, not gr::buffer. Thanks for the answer.
> 
> _______________________________________________
> 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]