#include "db/log_reader.h"
#include <cstdio>
#include "leveldb/env.h"
#include "util/coding.h"
#include "util/crc32c.h"
namespace leveldb {
namespace log {
Reader::Reporter::~Reporter() = default;
Reader::Reader(SequentialFile* file, Reporter* reporter, bool checksum,
uint64_t initial_offset)
: … { … }
Reader::~Reader() { … }
bool Reader::SkipToInitialBlock() { … }
bool Reader::ReadRecord(Slice* record, std::string* scratch) { … }
uint64_t Reader::LastRecordOffset() { … }
void Reader::ReportCorruption(uint64_t bytes, const char* reason) { … }
void Reader::ReportDrop(uint64_t bytes, const Status& reason) { … }
unsigned int Reader::ReadPhysicalRecord(Slice* result) { … }
}
}