1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:57:46 +00:00

AK: Allow passing an offset to CircularBuffer::next_read_span()

This commit is contained in:
Tim Schumacher 2023-06-01 23:39:05 +02:00 committed by Linus Groh
parent 046a9faeb3
commit d12036132e
2 changed files with 14 additions and 3 deletions

View file

@ -50,7 +50,7 @@ protected:
[[nodiscard]] bool is_wrapping_around() const;
[[nodiscard]] Bytes next_write_span();
[[nodiscard]] ReadonlyBytes next_read_span() const;
[[nodiscard]] ReadonlyBytes next_read_span(size_t offset = 0) const;
[[nodiscard]] ReadonlyBytes next_read_span_with_seekback(size_t distance) const;
ByteBuffer m_buffer {};