diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /library/cpp/deprecated/mapped_file/mapped_file.h | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/deprecated/mapped_file/mapped_file.h')
-rw-r--r-- | library/cpp/deprecated/mapped_file/mapped_file.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/deprecated/mapped_file/mapped_file.h b/library/cpp/deprecated/mapped_file/mapped_file.h index 45859ed65a..93fd9cf000 100644 --- a/library/cpp/deprecated/mapped_file/mapped_file.h +++ b/library/cpp/deprecated/mapped_file/mapped_file.h @@ -18,9 +18,9 @@ class TMappedFile { private: TFileMap* Map_; -private: +private: TMappedFile(TFileMap* map, const char* dbgName); - + public: TMappedFile() { Map_ = nullptr; @@ -36,11 +36,11 @@ public: } TMappedFile(const TFile& file, TFileMap::EOpenMode om = TFileMap::oRdOnly, const char* dbgName = "unknown"); - + void init(const TString& name); void init(const TString& name, TFileMap::EOpenMode om); - + void init(const TString& name, size_t length, TFileMap::EOpenMode om); void init(const TFile&, TFileMap::EOpenMode om = TFileMap::oRdOnly, const char* dbgName = "unknown"); @@ -65,8 +65,8 @@ public: } void precharge(size_t pos = 0, size_t size = (size_t)-1) const; - + void swap(TMappedFile& file) noexcept { DoSwap(Map_, file.Map_); - } + } }; |