mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 14:27:30 -04:00
More flexible span() for mmif
This commit is contained in:
parent
6ab86245e0
commit
01a1a74bf8
@ -45,6 +45,10 @@ class mmif : public boost::noncopyable {
|
||||
return std::span(this->as<uint8_t>(offset), length);
|
||||
}
|
||||
|
||||
std::span<uint8_t const> span(file_off_t offset = 0) const {
|
||||
return span(offset, size() - offset);
|
||||
}
|
||||
|
||||
virtual void const* addr() const = 0;
|
||||
virtual size_t size() const = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user