Skip to content

Commit 2cbbdb1

Browse files
committed
fdsdump: add record_size method to retrieve size of a record to View
1 parent 89ce243 commit 2cbbdb1

File tree

1 file changed

+2
-0
lines changed
  • src/tools/fdsdump/src/aggregator

1 file changed

+2
-0
lines changed

src/tools/fdsdump/src/aggregator/view.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ class View {
342342
/**
343343
* @brief Get the field definitions the view consists of
344344
*/
345+
size_t record_size(const uint8_t *ptr) const { return key_size(ptr) + value_size(); }
346+
345347
const std::vector<std::unique_ptr<Field>> &fields() const { return m_fields; }
346348

347349
/**

0 commit comments

Comments
 (0)