summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/buffer.h
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2015-02-13 16:14:19 -0500
committerTom Rondeau <tom@trondeau.com>2015-02-13 16:15:35 -0500
commitbab014a9f47f1d64f47317cec683a10c02ffa462 (patch)
treede1ccea23f63d278e82d0aa4fb56441f0bd38062 /gnuradio-runtime/include/gnuradio/buffer.h
parentc990e8256dd580a72b28d138c030a112a33157f7 (diff)
runtime: added accessor to get base address of buffer. Addresses Issue #729.
Reintroduced qa_gr_block and added t2 tests to get input/output buffer size and base. Need to include buffer.h, block.h, and block_detail.h when calling these in a block's work function.
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/buffer.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnuradio-runtime/include/gnuradio/buffer.h b/gnuradio-runtime/include/gnuradio/buffer.h
index c0c9f3d39d..44d5235652 100644
--- a/gnuradio-runtime/include/gnuradio/buffer.h
+++ b/gnuradio-runtime/include/gnuradio/buffer.h
@@ -68,6 +68,11 @@ namespace gr {
int bufsize() const { return d_bufsize; }
/*!
+ * \brief return the base address of the buffer
+ */
+ char* base() const { return d_base; }
+
+ /*!
* \brief return pointer to write buffer.
*
* The return value points at space that can hold at least