aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/blob.h
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/memory/blob.h
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/memory/blob.h')
-rw-r--r--util/memory/blob.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/util/memory/blob.h b/util/memory/blob.h
index f0de873ea1..20c02a68df 100644
--- a/util/memory/blob.h
+++ b/util/memory/blob.h
@@ -60,9 +60,9 @@ public:
using const_pointer = const value_type*;
using const_iterator = const_pointer;
- /**
+ /**
* Constructs a null blob (data array points to nullptr).
- */
+ */
TBlob() noexcept
: S_(nullptr, 0, nullptr)
{
@@ -213,43 +213,43 @@ public:
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);
+ static TBlob FromFileSingleThreaded(const TString& path);
/// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
- static TBlob FromFile(const TString& path);
+ static TBlob FromFile(const TString& path);
/// 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);
+ static TBlob FromFileSingleThreaded(const TFile& file);
/// Creates a blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
- static TBlob FromFile(const TFile& file);
+ static TBlob FromFile(const TFile& file);
+
+ // TODO: drop Precharged* functions.
- // TODO: drop Precharged* functions.
-
/// Creates a precharged blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
- static TBlob PrechargedFromFileSingleThreaded(const TString& path);
+ static TBlob PrechargedFromFileSingleThreaded(const TString& path);
/// Creates a precharged blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
- static TBlob PrechargedFromFile(const TString& path);
+ static TBlob PrechargedFromFile(const TString& path);
/// Creates a precharged blob with a single-threaded (non atomic) refcounter. It maps the file content as data.
- static TBlob PrechargedFromFileSingleThreaded(const TFile& file);
+ static TBlob PrechargedFromFileSingleThreaded(const TFile& file);
/// Creates a precharged blob with a multi-threaded (atomic) refcounter. It maps the file content as data.
- static TBlob PrechargedFromFile(const TFile& file);
-
- /// Creates a locked blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
- static TBlob LockedFromFileSingleThreaded(const TString& path);
-
- /// Creates a locked blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
- static TBlob LockedFromFile(const TString& path);
-
- /// Creates a locked blob with a single-threaded (non atomic) refcounter. It maps the file content as data.
- static TBlob LockedFromFileSingleThreaded(const TFile& file);
-
- /// Creates a locked blob with a multi-threaded (atomic) refcounter. It maps the file content as data.
- static TBlob LockedFromFile(const TFile& file);
-
+ static TBlob PrechargedFromFile(const TFile& file);
+
+ /// Creates a locked blob with a single-threaded (non atomic) refcounter. It maps the file on the path as data.
+ static TBlob LockedFromFileSingleThreaded(const TString& path);
+
+ /// Creates a locked blob with a multi-threaded (atomic) refcounter. It maps the file on the path as data.
+ static TBlob LockedFromFile(const TString& path);
+
+ /// Creates a locked blob with a single-threaded (non atomic) refcounter. It maps the file content as data.
+ static TBlob LockedFromFileSingleThreaded(const TFile& file);
+
+ /// Creates a locked blob with a multi-threaded (atomic) refcounter. It maps the file content as data.
+ static TBlob LockedFromFile(const TFile& file);
+
/// Creates a locked blob with a single-threaded (non atomic) refcounter from the mapped memory.
static TBlob LockedFromMemoryMapSingleThreaded(const TMemoryMap& map, ui64 offset, size_t length);