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:
parent
046a9faeb3
commit
d12036132e
2 changed files with 14 additions and 3 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue