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 [email protected] 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to