diff options
author | aavdonkin <aavdonkin@yandex-team.ru> | 2022-02-10 16:49:57 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:57 +0300 |
commit | efc32853c4263131bc59412eaf1a9e4aaae2a1f9 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/filemap.h | |
parent | fc8d3fe40009fab7705035e6ffdc3eb334307c80 (diff) | |
download | ydb-efc32853c4263131bc59412eaf1a9e4aaae2a1f9.tar.gz |
Restoring authorship annotation for <aavdonkin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r-- | util/system/filemap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/filemap.h b/util/system/filemap.h index 46c10dd897..11be64bff4 100644 --- a/util/system/filemap.h +++ b/util/system/filemap.h @@ -314,7 +314,7 @@ public: char* End() const noexcept { return Begin() + MappedSize(); } - size_t MappedSize() const { + size_t MappedSize() const { return Size_; } void swap(TMappedAllocation& with); @@ -342,7 +342,7 @@ public: } T* Create(size_t siz) { Y_ASSERT(MappedSize() == 0 && Ptr() == nullptr); - T* arr = (T*)Alloc((sizeof(T) * siz)); + T* arr = (T*)Alloc((sizeof(T) * siz)); if (!arr) return nullptr; Y_ASSERT(MappedSize() == sizeof(T) * siz); |