AK: Let CountingStream take an initial value for the counter

This commit is contained in:
Ali Mohammad Pur 2025-05-13 12:11:12 +02:00 committed by Ali Mohammad Pur
commit 6c312188dc
Notes: github-actions[bot] 2025-06-11 16:18:05 +00:00
2 changed files with 3 additions and 2 deletions

View file

@ -8,8 +8,9 @@
namespace AK {
CountingStream::CountingStream(MaybeOwned<Stream> stream)
CountingStream::CountingStream(MaybeOwned<Stream> stream, size_t offset)
: m_stream(move(stream))
, m_read_bytes(offset)
{
}