diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/stream/length.h | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/length.h')
-rw-r--r-- | util/stream/length.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/length.h b/util/stream/length.h index fd7aa18799..4d508ae24d 100644 --- a/util/stream/length.h +++ b/util/stream/length.h @@ -22,7 +22,7 @@ public: ~TLengthLimitedInput() override = default; - inline ui64 Left() const noexcept { + inline ui64 Left() const noexcept { return Length_; } @@ -52,14 +52,14 @@ public: * \returns The total number of characters read from * this stream. */ - inline ui64 Counter() const noexcept { + inline ui64 Counter() const noexcept { return Count_; } 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; + size_t DoReadTo(TString& st, char ch) override; ui64 DoReadAll(IOutputStream& out) override; private: @@ -80,14 +80,14 @@ public: ~TCountingOutput() override = default; - TCountingOutput(TCountingOutput&&) noexcept = default; - TCountingOutput& operator=(TCountingOutput&&) noexcept = default; - + TCountingOutput(TCountingOutput&&) noexcept = default; + TCountingOutput& operator=(TCountingOutput&&) noexcept = default; + /** * \returns The total number of characters written * into this stream. */ - inline ui64 Counter() const noexcept { + inline ui64 Counter() const noexcept { return Count_; } |