From 25caea8c88eb49b930c242f247637c633117e9cd Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Wed, 13 May 2015 19:59:27 +0100 Subject: [PATCH] buffer.h: added some consts Signed-off-by: Michal Jarzabek --- src/include/buffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/buffer.h b/src/include/buffer.h index 7f3fa645aad9..9af95ae9a06b 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -285,13 +285,13 @@ public: bl(l), ls(&bl->_buffers), off(o), p(ip), p_off(po) { } /// get current iterator offset in buffer::list - unsigned get_off() { return off; } + unsigned get_off() const { return off; } /// get number of bytes remaining from iterator position to the end of the buffer::list - unsigned get_remaining() { return bl->length() - off; } + unsigned get_remaining() const { return bl->length() - off; } /// true if iterator is at the end of the buffer::list - bool end() { + bool end() const { return p == ls->end(); //return off == bl->length(); } -- 2.47.3