diff options
author | dima-zakharov <dima-zakharov@yandex-team.ru> | 2022-02-10 16:46:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:02 +0300 |
commit | 9ab30620977aa96ae9e9da959e2f7e1370cb796d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system | |
parent | 41e8c41790ddd8d92722a09f7d4e1934aefff0c5 (diff) | |
download | ydb-9ab30620977aa96ae9e9da959e2f7e1370cb796d.tar.gz |
Restoring authorship annotation for <dima-zakharov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system')
-rw-r--r-- | util/system/filemap.cpp | 8 | ||||
-rw-r--r-- | util/system/filemap.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp index cc8f0b4889..7454a4cb94 100644 --- a/util/system/filemap.cpp +++ b/util/system/filemap.cpp @@ -431,10 +431,10 @@ bool TMemoryMap::IsWritable() const noexcept { return Impl_->IsWritable(); } -TMemoryMap::EOpenMode TMemoryMap::GetMode() const noexcept { - return Impl_->GetMode(); -} - +TMemoryMap::EOpenMode TMemoryMap::GetMode() const noexcept { + return Impl_->GetMode(); +} + TFile TMemoryMap::GetFile() const noexcept { return Impl_->GetFile(); } diff --git a/util/system/filemap.h b/util/system/filemap.h index 645e01fddc..11be64bff4 100644 --- a/util/system/filemap.h +++ b/util/system/filemap.h @@ -89,7 +89,7 @@ public: i64 Length() const noexcept; bool IsOpen() const noexcept; bool IsWritable() const noexcept; - EOpenMode GetMode() const noexcept; + EOpenMode GetMode() const noexcept; TFile GetFile() const noexcept; void SetSequential(); @@ -150,10 +150,10 @@ public: return Map_.IsWritable(); } - EOpenMode GetMode() const noexcept { - return Map_.GetMode(); - } - + EOpenMode GetMode() const noexcept { + return Map_.GetMode(); + } + inline void* Ptr() const noexcept { return Region_.MappedData(); } |