aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/str.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/str.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/str.cpp')
-rw-r--r--util/stream/str.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/stream/str.cpp b/util/stream/str.cpp
index 13f0e8ef28..36891ea1ed 100644
--- a/util/stream/str.cpp
+++ b/util/stream/str.cpp
@@ -4,13 +4,13 @@ static constexpr size_t MIN_BUFFER_GROW_SIZE = 16;
TStringInput::~TStringInput() = default;
-size_t TStringInput::DoNext(const void** ptr, size_t len) {
+size_t TStringInput::DoNext(const void** ptr, size_t len) {
len = Min(len, S_->size() - Pos_);
*ptr = S_->data() + Pos_;
- Pos_ += len;
- return len;
-}
-
+ Pos_ += len;
+ return len;
+}
+
void TStringInput::DoUndo(size_t len) {
Y_VERIFY(len <= Pos_);
Pos_ -= len;