aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/blob.cpp
diff options
context:
space:
mode:
authorprime <prime@yandex-team.ru>2022-02-10 16:46:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:01 +0300
commite34f3f0e381020a427f44fbd50463d9a04089db3 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/yt/memory/blob.cpp
parent3695a7cd42b74a4987d8d5a8f2e2443556998943 (diff)
downloadydb-e34f3f0e381020a427f44fbd50463d9a04089db3.tar.gz
Restoring authorship annotation for <prime@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/memory/blob.cpp')
-rw-r--r--library/cpp/yt/memory/blob.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/yt/memory/blob.cpp b/library/cpp/yt/memory/blob.cpp
index 5b3be740bf..86000b033b 100644
--- a/library/cpp/yt/memory/blob.cpp
+++ b/library/cpp/yt/memory/blob.cpp
@@ -3,17 +3,17 @@
#include <library/cpp/ytalloc/api/ytalloc.h>
-namespace NYT {
-
-////////////////////////////////////////////////////////////////////////////////
-
+namespace NYT {
+
+////////////////////////////////////////////////////////////////////////////////
+
static constexpr size_t InitialBlobCapacity = 16;
static constexpr double BlobCapacityMultiplier = 1.5;
-TBlob::TBlob(
- TRefCountedTypeCookie tagCookie,
- size_t size,
- bool initiailizeStorage,
+TBlob::TBlob(
+ TRefCountedTypeCookie tagCookie,
+ size_t size,
+ bool initiailizeStorage,
bool pageAligned)
: PageAligned_(pageAligned)
{
@@ -29,8 +29,8 @@ TBlob::TBlob(
}
}
-TBlob::TBlob(
- TRefCountedTypeCookie tagCookie,
+TBlob::TBlob(
+ TRefCountedTypeCookie tagCookie,
TRef data,
bool pageAligned)
: PageAligned_(pageAligned)
@@ -97,8 +97,8 @@ void TBlob::Resize(size_t newSize, bool initializeStorage /*= true*/)
TBlob& TBlob::operator = (const TBlob& rhs)
{
if (this != &rhs) {
- this->~TBlob();
- new(this) TBlob(rhs);
+ this->~TBlob();
+ new(this) TBlob(rhs);
}
return *this;
}
@@ -106,8 +106,8 @@ TBlob& TBlob::operator = (const TBlob& rhs)
TBlob& TBlob::operator = (TBlob&& rhs) noexcept
{
if (this != &rhs) {
- this->~TBlob();
- new(this) TBlob(std::move(rhs));
+ this->~TBlob();
+ new(this) TBlob(std::move(rhs));
}
return *this;
}