[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Passing vectors as PMT
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] Passing vectors as PMT |
Date: |
Sun, 23 Dec 2012 20:13:13 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 12/23/2012 03:34 PM, Martin Braun (CEL) wrote:
> Hi,
>
> I'm passing the content of a std::vector as a pmt. Question is, do
> I do it as a blob, or do I set up a pmt vector? The latter seems
> safer, and easier accessible in Python, but it's also more
> complicated (as I can't create pmt vectors directly from
> std::vectors).
>
> Has anyone done this, and have any suggestions?
try make_blob(&vec.front(), num_bytes);
It makes a copy of whatever pointer you pass into it.
-josh
>
> MB
>
>
>
>
> _______________________________________________ Discuss-gnuradio
> mailing list address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>