diff options
Diffstat (limited to 'util/memory/blob.h')
-rw-r--r-- | util/memory/blob.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/memory/blob.h b/util/memory/blob.h index 3f311b9ec2..20c02a68df 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(); } |