diff options
| author | sandello <[email protected]> | 2022-02-10 16:49:52 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:52 +0300 |
| commit | 0cdbcf332f1f329f0a3d6759462ad71e7867ac08 (patch) | |
| tree | 6866207854e212f8179cb77bd1e2435e49743f66 /library/cpp/yt/memory/ref.cpp | |
| parent | 3f5911a056d3dbc4bfd724740244a3a9c11575ef (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/memory/ref.cpp')
| -rw-r--r-- | library/cpp/yt/memory/ref.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp index e8ff42e9760..1ac4d4e99ee 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(); |
