archive/iso9660: simplify std::span initializer
This commit is contained in:
@@ -166,7 +166,7 @@ class Iso9660InputStream final : public InputStream {
|
|||||||
assert(fill <= data.size());
|
assert(fill <= data.size());
|
||||||
assert(position <= fill);
|
assert(position <= fill);
|
||||||
|
|
||||||
return {data.data() + position, data.data() + fill};
|
return std::span{data}.first(fill).subspan(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Consume(size_t nbytes) noexcept {
|
void Consume(size_t nbytes) noexcept {
|
||||||
|
Reference in New Issue
Block a user