]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer.h: added some consts 4650/head
authorMichal Jarzabek <stiopa@gmail.com>
Wed, 13 May 2015 18:59:27 +0000 (19:59 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Wed, 13 May 2015 19:00:49 +0000 (20:00 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/include/buffer.h

index 7f3fa645aad9992de4d62bdaf1da6de9ba2604af..9af95ae9a06b6f99c9686b56a5acccc044317b4b 100644 (file)
@@ -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();
       }