- /// the File Preamble, if any) of the value of the current Dicom HeaderEntry
- /// \warning offset of the *value*, not of the Dicom Header Entry
- size_t GetOffset() { return Offset; };
-
- /// \brief Returns the actual value length of the current Dicom Header Entry
- /// \warning this value is not *always* the one stored in the Dicom Header
- /// in case of well knowned bugs
- uint32_t GetLength() { return UsableLength; };
-
- /// \brief Returns the 'read length' of the current Dicom Header Entry
- /// \warning this value is the one stored in the Dicom Header but not
+ /// the File Preamble, if any) of the value of the current Dicom entry
+ /// \warning offset of the *value*, not of the Dicom entry
+ const size_t &GetOffset() const { return Offset; }
+
+ /// \brief Sets only 'Read Length' (*not* 'Usable Length') of the current
+ /// Dicom entry
+ void SetReadLength(uint32_t l) { ReadLength = l; }
+ /// \brief Returns the 'read length' of the current Dicom entry
+ /// \warning this value is the one stored in the Dicom header but not