diff options
author | Josh Blum | 2012-09-10 02:57:38 -0700 |
---|---|---|
committer | Josh Blum | 2012-09-10 02:57:38 -0700 |
commit | fc54cf91b4d487ab34d8bc2f67368747c3dc7a07 (patch) | |
tree | 59d088f054b111e76f61398630059fae4764f6c8 /include/gnuradio | |
parent | 4adb2a384bb06406ffaf3ca4f5a33e42f8a74491 (diff) | |
download | sandhi-fc54cf91b4d487ab34d8bc2f67368747c3dc7a07.tar.gz sandhi-fc54cf91b4d487ab34d8bc2f67368747c3dc7a07.tar.bz2 sandhi-fc54cf91b4d487ab34d8bc2f67368747c3dc7a07.zip |
use sbuffer directly in the input queues now
Diffstat (limited to 'include/gnuradio')
-rw-r--r-- | include/gnuradio/sbuffer.hpp | 2 | ||||
-rw-r--r-- | include/gnuradio/sbuffer.ipp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/gnuradio/sbuffer.hpp b/include/gnuradio/sbuffer.hpp index 0db6c05..25c0b60 100644 --- a/include/gnuradio/sbuffer.hpp +++ b/include/gnuradio/sbuffer.hpp @@ -102,7 +102,7 @@ struct GRAS_API SBuffer : boost::intrusive_ptr<SBufferImpl> size_t get_actual_length(void) const; //! Get a pointer into valid memory - void *get(void) const; + void *get(const ptrdiff_t delta_bytes = 0) const; //! The offset into valid memory in bytes size_t offset; diff --git a/include/gnuradio/sbuffer.ipp b/include/gnuradio/sbuffer.ipp index eab576c..2872386 100644 --- a/include/gnuradio/sbuffer.ipp +++ b/include/gnuradio/sbuffer.ipp @@ -83,9 +83,9 @@ inline size_t SBuffer::get_actual_length(void) const return (*this)->config.length; } -inline void *SBuffer::get(void) const +inline void *SBuffer::get(const ptrdiff_t delta_bytes) const { - return ((char *)(*this)->config.memory) + this->offset; + return ((char *)(*this)->config.memory) + this->offset + delta_bytes; } inline Affinity SBuffer::get_affinity(void) const |