aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/length.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/stream/length.cpp
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/length.cpp')
-rw-r--r--util/stream/length.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/util/stream/length.cpp b/util/stream/length.cpp
index 1ab3c6aadf..9907fe2ac9 100644
--- a/util/stream/length.cpp
+++ b/util/stream/length.cpp
@@ -27,21 +27,21 @@ size_t TCountingInput::DoSkip(size_t len) {
Count_ += ret;
return ret;
}
-
+
size_t TCountingInput::DoReadTo(TString& st, char ch) {
- const size_t ret = Slave_->ReadTo(st, ch);
- Count_ += ret;
- return ret;
-}
-
+ const size_t ret = Slave_->ReadTo(st, ch);
+ Count_ += ret;
+ return ret;
+}
+
ui64 TCountingInput::DoReadAll(IOutputStream& out) {
- const ui64 ret = Slave_->ReadAll(out);
- Count_ += ret;
- return ret;
-}
-
-void TCountingOutput::DoWrite(const void* buf, size_t len) {
- Slave_->Write(buf, len);
-
- Count_ += len;
-}
+ const ui64 ret = Slave_->ReadAll(out);
+ Count_ += ret;
+ return ret;
+}
+
+void TCountingOutput::DoWrite(const void* buf, size_t len) {
+ Slave_->Write(buf, len);
+
+ Count_ += len;
+}