mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
AK: Let CountingStream take an initial value for the counter
This commit is contained in:
parent
3dd246a8e1
commit
6c312188dc
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace AK {
|
|||
|
||||
class CountingStream : public Stream {
|
||||
public:
|
||||
CountingStream(MaybeOwned<Stream>);
|
||||
CountingStream(MaybeOwned<Stream>, size_t offset = 0);
|
||||
|
||||
u64 read_bytes() const;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user