mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Generalize footer reading from file
Summary: Generalizing this process will help us to re-use the code for plain table Test Plan: ran ./table_test
This commit is contained in:
@@ -98,6 +98,11 @@ class Footer {
|
||||
const uint64_t kTableMagicNumber;
|
||||
};
|
||||
|
||||
// Read the footer from file
|
||||
Status ReadFooterFromFile(RandomAccessFile* file,
|
||||
uint64_t file_size,
|
||||
Footer* footer);
|
||||
|
||||
// 1-byte type + 32-bit crc
|
||||
static const size_t kBlockTrailerSize = 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user