buf_ref.into() can be const now

pull/913/head
Aaron Miller 1 year ago committed by AT
parent ee3469ba6c
commit 840e011b75

@ -88,7 +88,7 @@ struct buf_ref {
uint32_t offset : 20; uint32_t offset : 20;
uint32_t length : 12; uint32_t length : 12;
std::string_view into(const char* buf) { std::string_view into(const char* buf) const {
return std::string_view(&buf[offset], length); return std::string_view(&buf[offset], length);
} }
}; };

Loading…
Cancel
Save