diff options
Diffstat (limited to 'host/include/uhd/transport/zero_copy.hpp')
| -rw-r--r-- | host/include/uhd/transport/zero_copy.hpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/host/include/uhd/transport/zero_copy.hpp b/host/include/uhd/transport/zero_copy.hpp index 4fc1df9de..fdc5b141c 100644 --- a/host/include/uhd/transport/zero_copy.hpp +++ b/host/include/uhd/transport/zero_copy.hpp @@ -45,7 +45,7 @@ public:       * Get the size of the underlying buffer.       * \return the number of bytes       */ -    size_t size(void){ +    size_t size(void) const{          return boost::asio::buffer_size(this->get());      } @@ -53,7 +53,7 @@ public:       * Get a pointer to the underlying buffer.       * \return a pointer into memory       */ -    template <class T> T cast(void){ +    template <class T> T cast(void) const{          return boost::asio::buffer_cast<T>(this->get());      } @@ -63,7 +63,7 @@ private:       * The buffer has a reference to memory and a size.       * \return a boost asio const buffer       */ -    virtual const boost::asio::const_buffer &get(void) = 0; +    virtual const boost::asio::const_buffer &get(void) const = 0;  };  /*! @@ -87,7 +87,7 @@ public:       * Get the size of the underlying buffer.       * \return the number of bytes       */ -    size_t size(void){ +    size_t size(void) const{          return boost::asio::buffer_size(this->get());      } @@ -95,7 +95,7 @@ public:       * Get a pointer to the underlying buffer.       * \return a pointer into memory       */ -    template <class T> T cast(void){ +    template <class T> T cast(void) const{          return boost::asio::buffer_cast<T>(this->get());      } @@ -105,7 +105,7 @@ private:       * The buffer has a reference to memory and a size.       * \return a boost asio mutable buffer       */ -    virtual const boost::asio::mutable_buffer &get(void) = 0; +    virtual const boost::asio::mutable_buffer &get(void) const = 0;  };  /*! | 
