summaryrefslogtreecommitdiffstats
path: root/util/memory/blob.h
diff options
context:
space:
mode:
authorAlexey Bykov <[email protected]>2022-02-10 16:47:16 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:16 +0300
commitb50730a77e0c38f2fec0ad5d53fb2034d6470221 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/memory/blob.h
parent4cadece7a57ab767e762a0bea1995a596aefeb11 (diff)
Restoring authorship annotation for Alexey Bykov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/memory/blob.h')
-rw-r--r--util/memory/blob.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/memory/blob.h b/util/memory/blob.h
index 3f311b9ec2b..20c02a68dfb 100644
--- a/util/memory/blob.h
+++ b/util/memory/blob.h
@@ -55,7 +55,7 @@ private:
};
public:
- using value_type = ui8;
+ using value_type = ui8;
using const_reference = const value_type&;
using const_pointer = const value_type*;
using const_iterator = const_pointer;
@@ -149,20 +149,20 @@ public:
* Some stl-like methods
*/
- /// Returns a const reference to the data array.
- /// result type is const ui8* which is not consistent with Data method above
- /// but it's consistent with operator[], Begin and End methods below
- /// Also it allows us to construct TArrayRef from TBlob
- inline const_pointer data() const noexcept {
- return static_cast<const_pointer>(Data());
- }
-
+ /// Returns a const reference to the data array.
+ /// result type is const ui8* which is not consistent with Data method above
+ /// but it's consistent with operator[], Begin and End methods below
+ /// Also it allows us to construct TArrayRef from TBlob
+ inline const_pointer data() const noexcept {
+ return static_cast<const_pointer>(Data());
+ }
+
+ /// Returns the size of the data array in bytes.
+ inline size_t size() const noexcept {
+ return Length();
+ }
+
/// Returns the size of the data array in bytes.
- inline size_t size() const noexcept {
- return Length();
- }
-
- /// Returns the size of the data array in bytes.
inline size_t Size() const noexcept {
return Length();
}