aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/blob.h
diff options
context:
space:
mode:
authorkalabukdima <kalabukdima@yandex-team.ru>2022-02-10 16:51:42 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:42 +0300
commitf455f8d9061f47bcb74f3f4e319a5a701dbae24f (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/memory/blob.h
parentb688e76378935ca7132292872a1dc37ba410e3ec (diff)
downloadydb-f455f8d9061f47bcb74f3f4e319a5a701dbae24f.tar.gz
Restoring authorship annotation for <kalabukdima@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory/blob.h')
-rw-r--r--util/memory/blob.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/util/memory/blob.h b/util/memory/blob.h
index 272925397c..20c02a68df 100644
--- a/util/memory/blob.h
+++ b/util/memory/blob.h
@@ -10,15 +10,15 @@ class IInputStream;
class TFile;
class TBuffer;
-enum class EMappingMode {
- /// Just mmap a file allowing lazy page loading at access
- Standard,
- /// Same as previous but warmup the buffer with sequential access to it's data
- Precharged,
- /// Try to lock file in memory so that it doesn't wash away. See mlock(2)
- Locked
-};
-
+enum class EMappingMode {
+ /// Just mmap a file allowing lazy page loading at access
+ Standard,
+ /// Same as previous but warmup the buffer with sequential access to it's data
+ Precharged,
+ /// Try to lock file in memory so that it doesn't wash away. See mlock(2)
+ Locked
+};
+
/// @addtogroup BLOBs
/// @{
class TBlob {
@@ -201,18 +201,18 @@ public:
static TBlob NoCopy(const void* data, size_t length);
/// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
- static TBlob FromFileSingleThreaded(const TString& path, EMappingMode);
-
- /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
- static TBlob FromFile(const TString& path, EMappingMode);
-
- /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
- static TBlob FromFileSingleThreaded(const TFile& file, EMappingMode);
-
- /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
- static TBlob FromFile(const TFile& file, EMappingMode);
-
- /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
+ static TBlob FromFileSingleThreaded(const TString& path, EMappingMode);
+
+ /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
+ static TBlob FromFile(const TString& path, EMappingMode);
+
+ /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
+ static TBlob FromFileSingleThreaded(const TFile& file, EMappingMode);
+
+ /// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
+ static TBlob FromFile(const TFile& file, EMappingMode);
+
+ /// Creates a blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
static TBlob FromFileSingleThreaded(const TString& path);
/// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.