discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] about the work function and memory


From: Josh Blum
Subject: [Discuss-gnuradio] about the work function and memory
Date: Fri, 26 Feb 2010 14:05:45 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100217 Shredder/3.0.3pre

Here is a typical work function:
int work(int noutput_items,
                       gr_vector_const_void_star &input_items,
                       gr_vector_void_star &output_items)

output_items seems to be a pointer to a pointer into some pre-allocated memory. What is stopping me from managing my own memory, pointing the output items pointer into my memory, and returning an arbitrary noutput_items?

Is it possible? What are the limitations?

Thanks,
-Josh




reply via email to

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