//
// If "checksum" is true, verify checksums if available.
Reader(std::shared_ptr<Logger> info_log,
- // @lint-ignore TXT2 T25377293 Grandfathered in
std::unique_ptr<SequentialFileReader>&& file, Reporter* reporter,
bool checksum, uint64_t log_num);
// No copying allowed
// Undefined before the first call to ReadRecord.
uint64_t LastRecordOffset();
+ // Returns the first physical offset after the last record returned by
+ // ReadRecord, or zero before first call to ReadRecord. This can also be
+ // thought of as the "current" position in processing the file bytes.
+ uint64_t LastRecordEnd();
+
// returns true if the reader has encountered an eof condition.
bool IsEOF() {
return eof_;
class FragmentBufferedReader : public Reader {
public:
FragmentBufferedReader(std::shared_ptr<Logger> info_log,
- // @lint-ignore TXT2 T25377293 Grandfathered in
std::unique_ptr<SequentialFileReader>&& _file,
Reporter* reporter, bool checksum, uint64_t log_num)
: Reader(info_log, std::move(_file), reporter, checksum, log_num),