summaryrefslogtreecommitdiffstats
path: root/util/system/filemap.h
diff options
context:
space:
mode:
authoriseg <[email protected]>2022-02-10 16:49:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:39 +0300
commitf828a15ab90e9ca8e848f83caf95c95f06be46e7 (patch)
treede25241f7ec727b05ff1e5b9e1336f567f788a44 /util/system/filemap.h
parent8124e2bb214b063687e0d77c900150c727e16782 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r--util/system/filemap.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/filemap.h b/util/system/filemap.h
index 11be64bff47..bbcabc4ec01 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>