aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/buffer.h
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.ru>2022-02-10 16:45:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:50 +0300
commit6560e4993b14d193f8c879e33a3de5e5eba6e21d (patch)
treecfd2e2baa05c3196f2caacbb63c32e1df40bc3de /util/generic/buffer.h
parent7489e4682331202b9c7d863c0898eb83d7b12c2b (diff)
downloadydb-6560e4993b14d193f8c879e33a3de5e5eba6e21d.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/buffer.h')
-rw-r--r--util/generic/buffer.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/buffer.h b/util/generic/buffer.h
index 9576467404..51f6fb20a4 100644
--- a/util/generic/buffer.h
+++ b/util/generic/buffer.h
@@ -223,17 +223,17 @@ public:
return Begin() + Size();
}
- bool operator==(const TBuffer& other) const noexcept {
- if (Empty()) {
- return other.Empty();
- }
- return Size() == other.Size() && 0 == std::memcmp(Data(), other.Data(), Size());
- }
-
- bool operator!=(const TBuffer& other) const noexcept {
- return !(*this == other);
- }
-
+ bool operator==(const TBuffer& other) const noexcept {
+ if (Empty()) {
+ return other.Empty();
+ }
+ return Size() == other.Size() && 0 == std::memcmp(Data(), other.Data(), Size());
+ }
+
+ bool operator!=(const TBuffer& other) const noexcept {
+ return !(*this == other);
+ }
+
private:
void DoReserve(size_t len);
void Realloc(size_t len);