@@ -83,8 +83,17 @@ private:
8383 std::string fClassName ;
8484 std::uint16_t fCycle = 0 ;
8585 ECategory fCategory = ECategory::kInvalid ;
86+ std::uint64_t fObjLen = 0 ;
87+ std::uint64_t fObjNBytes = 0 ;
88+ std::uint64_t fKeyLen = 0 ;
89+ std::uint64_t fKeySeek = 0 ;
90+ std::uint64_t fParentDirSeek = 0 ;
91+
92+ explicit RKeyInfo (const TKey &key);
8693
8794public:
95+ RKeyInfo () = default ;
96+
8897 // / Returns the absolute path of this key, i.e. the directory part plus the object name.
8998 const std::string &GetPath () const { return fPath ; }
9099 // / Returns the base name of this key, i.e. the name of the object without the directory part.
@@ -93,6 +102,16 @@ public:
93102 const std::string &GetClassName () const { return fClassName ; }
94103 std::uint16_t GetCycle () const { return fCycle ; }
95104 ECategory GetCategory () const { return fCategory ; }
105+ // / Returns the in-memory size of the uncompressed object.
106+ std::uint64_t GetObjLen () const { return fObjLen ; }
107+ // / Returns the on-disk size of the (potentially compressed) object, excluding its key.
108+ std::uint64_t GetObjNBytes () const { return fObjNBytes ; }
109+ // / Returns the on-disk size of this object's key.
110+ std::uint64_t GetKeyLen () const { return fKeyLen ; }
111+ // / Returns the on-disk offset of this object's key.
112+ std::uint64_t GetKeySeek () const { return fKeySeek ; }
113+ // / Returns the on-disk offset of this object's parent directory key.
114+ std::uint64_t GetParentDirSeek () const { return fParentDirSeek ; }
96115};
97116
98117// / The iterable returned by RFile::ListKeys()
0 commit comments