diff options
author | iseg <iseg@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
commit | 8b71ce88bea710a9663bb143e4916f961c57212e (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/filemap.h | |
parent | f828a15ab90e9ca8e848f83caf95c95f06be46e7 (diff) | |
download | ydb-8b71ce88bea710a9663bb143e4916f961c57212e.tar.gz |
Restoring authorship annotation for <iseg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r-- | util/system/filemap.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/filemap.h b/util/system/filemap.h index bbcabc4ec01..11be64bff47 100644 --- a/util/system/filemap.h +++ b/util/system/filemap.h @@ -1,5 +1,5 @@ #pragma once - + #include "file.h" #include "align.h" #include "yassert.h" @@ -47,7 +47,7 @@ struct TMemoryMapCommon { Reset(); } }; - + enum EOpenModeFlag { oRdOnly = 1, oRdWr = 2, @@ -105,7 +105,7 @@ private: class TImpl; TSimpleIntrusivePtr<TImpl> Impl_; }; - + class TFileMap: public TMemoryMapCommon { public: TFileMap(const TMemoryMap& map) noexcept; @@ -141,7 +141,7 @@ public: inline i64 Length() const noexcept { return Map_.Length(); } - + inline bool IsOpen() const noexcept { return Map_.IsOpen(); } @@ -182,7 +182,7 @@ private: TMemoryMap Map_; TMapResult Region_; }; - + template <class T> class TFileMappedArray { private: @@ -325,7 +325,7 @@ private: bool Shared_ = false; #ifdef _win_ void* Mapping_ = nullptr; -#endif +#endif }; template <class T> |