From f558f7300ae6b09df645b8ac4042b42f6f83d202 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 25 Apr 2019 09:16:55 +0800 Subject: [PATCH] buffer: more constness Signed-off-by: Kefu Chai --- src/include/buffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/buffer.h b/src/include/buffer.h index 6e354b04a56..8bbede17666 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -829,7 +829,7 @@ inline namespace v14_2_0 { pos += len; return r; } - char *get_pos() { + char *get_pos() const { return pos; } @@ -860,7 +860,7 @@ inline namespace v14_2_0 { } } - size_t get_logical_offset() { + size_t get_logical_offset() const { return out_of_band_offset + (pos - space.bp_data); } }; -- 2.39.5