buffer: more constness

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-04-25 09:16:55 +08:00
parent 66dac9d28a
commit f558f7300a

View File

@ -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);
}
};