diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /util/stream/str.cpp | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/str.cpp')
-rw-r--r-- | util/stream/str.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stream/str.cpp b/util/stream/str.cpp index 13f0e8ef28..9622a1a254 100644 --- a/util/stream/str.cpp +++ b/util/stream/str.cpp @@ -5,8 +5,8 @@ static constexpr size_t MIN_BUFFER_GROW_SIZE = 16; TStringInput::~TStringInput() = default; size_t TStringInput::DoNext(const void** ptr, size_t len) { - len = Min(len, S_->size() - Pos_); - *ptr = S_->data() + Pos_; + len = Min(len, S_->size() - Pos_); + *ptr = S_->data() + Pos_; Pos_ += len; return len; } |