We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb278e1 commit c60fdbbCopy full SHA for c60fdbb
gr-blocks/include/gnuradio/blocks/vector_sink_X.h.t
@@ -41,6 +41,15 @@ namespace gr {
41
// gr::blocks::@NAME@::sptr
42
typedef boost::shared_ptr<@NAME@> sptr;
43
44
+ /*!
45
+ * \brief Make a new instance of the vector source, and return a shared pointer to it.
46
+ * \param vlen length of vector items
47
+ * \param reserve_items reserve space in the internal storage for this many items;
48
+ * the internal storage will still grow to accommodate more item
49
+ * if necessary, but setting this to a realistic value can avoid
50
+ * memory allocations during runtime, especially if you know a
51
+ * priori how many items you're going to store.
52
+ */
53
static sptr make(const int vlen = 1, const int reserve_items = 1024);
54
55
//! Clear the data and tags containers.
0 commit comments