aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/ref.cpp
diff options
context:
space:
mode:
authorsandello <sandello@yandex-team.ru>2022-02-10 16:49:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:52 +0300
commit9541fc30d6f0877db9ff199a16f7fc2505d46a5c (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/yt/memory/ref.cpp
parent0cdbcf332f1f329f0a3d6759462ad71e7867ac08 (diff)
downloadydb-9541fc30d6f0877db9ff199a16f7fc2505d46a5c.tar.gz
Restoring authorship annotation for <sandello@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/memory/ref.cpp')
-rw-r--r--library/cpp/yt/memory/ref.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp
index 1ac4d4e99e..e8ff42e976 100644
--- a/library/cpp/yt/memory/ref.cpp
+++ b/library/cpp/yt/memory/ref.cpp
@@ -271,10 +271,10 @@ TSharedMutableRef TSharedMutableRef::MakeCopy(TRef ref, TRefCountedTypeCookie ta
TString ToString(TRef ref)
{
- return TString(ref.Begin(), ref.End());
+ return TString(ref.Begin(), ref.End());
}
-TString ToString(const TMutableRef& ref)
+TString ToString(const TMutableRef& ref)
{
return ToString(TRef(ref));
}
@@ -284,17 +284,17 @@ TString ToString(const TSharedRef& ref)
return ToString(TRef(ref));
}
-TString ToString(const TSharedMutableRef& ref)
+TString ToString(const TSharedMutableRef& ref)
{
return ToString(TRef(ref));
}
-size_t GetPageSize()
-{
- static const size_t PageSize = NSystemInfo::GetPageSize();
- return PageSize;
-}
-
+size_t GetPageSize()
+{
+ static const size_t PageSize = NSystemInfo::GetPageSize();
+ return PageSize;
+}
+
size_t RoundUpToPage(size_t bytes)
{
static const size_t PageSize = NSystemInfo::GetPageSize();