summaryrefslogtreecommitdiffstats
path: root/library/cpp/deprecated/mapped_file/mapped_file.h
diff options
context:
space:
mode:
authorsomov <[email protected]>2022-02-10 16:45:49 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:49 +0300
commit7489e4682331202b9c7d863c0898eb83d7b12c2b (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /library/cpp/deprecated/mapped_file/mapped_file.h
parenta5950576e397b1909261050b8c7da16db58f10b1 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/deprecated/mapped_file/mapped_file.h')
-rw-r--r--library/cpp/deprecated/mapped_file/mapped_file.h12
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 93fd9cf000f..45859ed65a0 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_);
- }
+ }
};