diff options
author | cerevra <cerevra@yandex-team.ru> | 2022-02-10 16:45:58 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:58 +0300 |
commit | bf41dd01f6c920583e9faae7cd55ed25e547e052 (patch) | |
tree | ec7c8c285ffa648a5c5efeff453787a15ab811ac /util/stream | |
parent | e2c3e3004f7cd68441cefcfa4aaccd3d8051c846 (diff) | |
download | ydb-bf41dd01f6c920583e9faae7cd55ed25e547e052.tar.gz |
Restoring authorship annotation for <cerevra@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r-- | util/stream/buffered.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/stream/buffered.cpp b/util/stream/buffered.cpp index a00e592e1c..570dbfb7bb 100644 --- a/util/stream/buffered.cpp +++ b/util/stream/buffered.cpp @@ -63,8 +63,8 @@ public: } inline size_t ReadTo(TString& st, char to) { - st.clear(); - + st.clear(); + TString s_tmp; size_t ret = 0; @@ -81,14 +81,14 @@ public: } const size_t a_len(MemInput_.Avail()); - size_t s_len = 0; - if (st.empty()) { - ret += MemInput_.ReadTo(st, to); - s_len = st.length(); + size_t s_len = 0; + if (st.empty()) { + ret += MemInput_.ReadTo(st, to); + s_len = st.length(); } else { - ret += MemInput_.ReadTo(s_tmp, to); - s_len = s_tmp.length(); - st.append(s_tmp); + ret += MemInput_.ReadTo(s_tmp, to); + s_len = s_tmp.length(); + st.append(s_tmp); } if (s_len != a_len) { |