![]() |
Feathercoin
0.5.0
P2P Digital Currency
|
#include <log_reader.h>
Classes | |
class | Reporter |
Public Member Functions | |
Reader (SequentialFile *file, Reporter *reporter, bool checksum, uint64_t initial_offset) | |
~Reader () | |
bool | ReadRecord (Slice *record, std::string *scratch) |
uint64_t | LastRecordOffset () |
Private Types | |
enum | { kEof = kMaxRecordType + 1, kBadRecord = kMaxRecordType + 2 } |
Private Member Functions | |
bool | SkipToInitialBlock () |
unsigned int | ReadPhysicalRecord (Slice *result) |
void | ReportCorruption (size_t bytes, const char *reason) |
void | ReportDrop (size_t bytes, const Status &reason) |
Reader (const Reader &) | |
void | operator= (const Reader &) |
Private Attributes | |
SequentialFile *const | file_ |
Reporter *const | reporter_ |
bool const | checksum_ |
char *const | backing_store_ |
Slice | buffer_ |
bool | eof_ |
uint64_t | last_record_offset_ |
uint64_t | end_of_buffer_offset_ |
uint64_t const | initial_offset_ |
Definition at line 20 of file log_reader.h.
|
private |
Enumerator | |
---|---|
kEof | |
kBadRecord |
Definition at line 77 of file log_reader.h.
leveldb::log::Reader::Reader | ( | SequentialFile * | file, |
Reporter * | reporter, | ||
bool | checksum, | ||
uint64_t | initial_offset | ||
) |
Definition at line 18 of file log_reader.cc.
leveldb::log::Reader::~Reader | ( | ) |
Definition at line 31 of file log_reader.cc.
|
private |
uint64_t leveldb::log::Reader::LastRecordOffset | ( | ) |
Definition at line 164 of file log_reader.cc.
|
private |
|
private |
Definition at line 179 of file log_reader.cc.
bool leveldb::log::Reader::ReadRecord | ( | Slice * | record, |
std::string * | scratch | ||
) |
Definition at line 59 of file log_reader.cc.
|
private |
Definition at line 168 of file log_reader.cc.
|
private |
Definition at line 172 of file log_reader.cc.
|
private |
Definition at line 35 of file log_reader.cc.
|
private |
Definition at line 64 of file log_reader.h.
|
private |
Definition at line 65 of file log_reader.h.
|
private |
Definition at line 63 of file log_reader.h.
|
private |
Definition at line 71 of file log_reader.h.
|
private |
Definition at line 66 of file log_reader.h.
|
private |
Definition at line 61 of file log_reader.h.
|
private |
Definition at line 74 of file log_reader.h.
|
private |
Definition at line 69 of file log_reader.h.
|
private |
Definition at line 62 of file log_reader.h.