aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/buffer.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /util/generic/buffer.h
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/buffer.h')
-rw-r--r--util/generic/buffer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/buffer.h b/util/generic/buffer.h
index 95764674049..d3cbf95a01c 100644
--- a/util/generic/buffer.h
+++ b/util/generic/buffer.h
@@ -87,7 +87,7 @@ public:
inline explicit operator bool() const noexcept {
return Size();
}
-
+
inline size_t Avail() const noexcept {
return Len_ - Pos_;
}
@@ -123,9 +123,9 @@ public:
} else {
memmove(Data_ + pos, Data_ + end, Pos_ - end);
Pos_ -= count;
- }
+ }
}
-
+
inline void ChopHead(size_t count) {
Chop(0U, count);
}
@@ -136,7 +136,7 @@ public:
}
inline void Advance(size_t len) {
- Resize(Pos_ + len);
+ Resize(Pos_ + len);
}
inline void Reserve(size_t len) {