diff options
author | yazevnul <yazevnul@yandex-team.ru> | 2022-02-10 16:46:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:46 +0300 |
commit | 8cbc307de0221f84c80c42dcbe07d40727537e2c (patch) | |
tree | 625d5a673015d1df891e051033e9fcde5c7be4e5 /util/stream/length.h | |
parent | 30d1ef3941e0dc835be7609de5ebee66958f215a (diff) | |
download | ydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz |
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/length.h')
-rw-r--r-- | util/stream/length.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/stream/length.h b/util/stream/length.h index 4d508ae24d..79eb59e2e0 100644 --- a/util/stream/length.h +++ b/util/stream/length.h @@ -12,9 +12,9 @@ * This can be useful for breaking up the slave stream into small chunks and * treat these as separate streams. */ -class TLengthLimitedInput: public IInputStream { +class TLengthLimitedInput: public IInputStream { public: - inline TLengthLimitedInput(IInputStream* slave, ui64 length) noexcept + inline TLengthLimitedInput(IInputStream* slave, ui64 length) noexcept : Slave_(slave) , Length_(length) { @@ -31,16 +31,16 @@ private: size_t DoSkip(size_t len) override; private: - IInputStream* Slave_; + IInputStream* Slave_; ui64 Length_; }; /** * Proxy input stream that counts the number of characters read. */ -class TCountingInput: public IInputStream { +class TCountingInput: public IInputStream { public: - inline TCountingInput(IInputStream* slave) noexcept + inline TCountingInput(IInputStream* slave) noexcept : Slave_(slave) , Count_() { @@ -60,19 +60,19 @@ private: size_t DoRead(void* buf, size_t len) override; size_t DoSkip(size_t len) override; size_t DoReadTo(TString& st, char ch) override; - ui64 DoReadAll(IOutputStream& out) override; + ui64 DoReadAll(IOutputStream& out) override; private: - IInputStream* Slave_; + IInputStream* Slave_; ui64 Count_; }; /** * Proxy output stream that counts the number of characters written. */ -class TCountingOutput: public IOutputStream { +class TCountingOutput: public IOutputStream { public: - inline TCountingOutput(IOutputStream* slave) noexcept + inline TCountingOutput(IOutputStream* slave) noexcept : Slave_(slave) , Count_() { @@ -95,6 +95,6 @@ private: void DoWrite(const void* buf, size_t len) override; private: - IOutputStream* Slave_; + IOutputStream* Slave_; ui64 Count_; }; |