mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
AK: Expose the seekback limit of CircularBuffer
This commit is contained in:
committed by
Andreas Kling
parent
e62183f0ba
commit
52d9fc92f1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user