aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/multi.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
commit863a59a65247c24db7cb06789bc5cf79d04da32f (patch)
tree139dc000c8cd4a40f5659e421b7c75135d080307 /util/stream/multi.cpp
parentf64e95a9eb9ab03240599eb9581c5a9102426a96 (diff)
downloadydb-863a59a65247c24db7cb06789bc5cf79d04da32f.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/stream/multi.cpp')
-rw-r--r--util/stream/multi.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/stream/multi.cpp b/util/stream/multi.cpp
index b2354298a0..a6d19c71a9 100644
--- a/util/stream/multi.cpp
+++ b/util/stream/multi.cpp
@@ -21,7 +21,7 @@ size_t TMultiInput::DoRead(void* buf, size_t len) {
return C_->Read(buf, len);
}
-
+
size_t TMultiInput::DoReadTo(TString& st, char ch) {
size_t ret = C_->ReadTo(st, ch);
if (ret == st.size() + 1) { // found a symbol, not eof
@@ -42,15 +42,15 @@ size_t TMultiInput::DoReadTo(TString& st, char ch) {
return ret;
}
-size_t TMultiInput::DoSkip(size_t len) {
- const size_t ret = C_->Skip(len);
-
- if (ret) {
- return ret;
- }
-
- C_ = N_;
- N_ = &Cnull;
-
- return C_->Skip(len);
-}
+size_t TMultiInput::DoSkip(size_t len) {
+ const size_t ret = C_->Skip(len);
+
+ if (ret) {
+ return ret;
+ }
+
+ C_ = N_;
+ N_ = &Cnull;
+
+ return C_->Skip(len);
+}