mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 11:02:53 +00:00
AK: Expose the seekback limit of CircularBuffer
This commit is contained in:
parent
e62183f0ba
commit
52d9fc92f1
Notes:
sideshowbarker
2024-07-17 01:28:15 +09:00
Author: https://github.com/timschumi
Commit: 52d9fc92f1
Pull-request: https://github.com/SerenityOS/serenity/pull/17884
2 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,11 @@ size_t CircularBuffer::capacity() const
|
|||
return m_buffer.size();
|
||||
}
|
||||
|
||||
size_t CircularBuffer::seekback_limit() const
|
||||
{
|
||||
return m_seekback_limit;
|
||||
}
|
||||
|
||||
bool CircularBuffer::is_wrapping_around() const
|
||||
{
|
||||
return capacity() <= m_reading_head + m_used_space;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue