|
| blockfile (const blockfile &)=delete |
|
| blockfile (blockfile &&)=delete |
|
blockfile & | operator= (const blockfile &)=delete |
|
blockfile & | operator= (blockfile &&)=delete |
|
void | open_for_read (const char *file_path) |
|
void | open_for_write (const char *file_path) |
|
template<typename ByteType > |
int | append_item (const ByteType *data, size_t len) |
|
int | append_item (const char *data, size_t len) |
|
void | reset_read_item () |
|
bool | next_item (memref &s) |
|
uint64_t | item_number () |
|
void | close () |
|
|
const static uint64_t | MagicNumber = MagicNumber_t |
|
const static uint64_t | BlockSizeLimit = BlockSizeLimit_t |
|
const static uint64_t | BlockNumLimit = BlockNumLimit_t |
|
|
void | read_header () |
|
void | read_all_block_info () |
|
|
std::fstream | m_file |
|
std::string | m_file_path |
|
header | m_header |
|
bool | m_is_header_valid |
|
bool | m_is_block_info_valid |
|
std::vector< block_info > | m_block_infos |
|
|
const static long int | block_start_offset |
|
◆ block_start_offset
template<uint64_t MagicNumber_t, uint64_t BlockNumLimit_t, uint64_t BlockSizeLimit_t>
const static long int ypc::blockfile< MagicNumber_t, BlockNumLimit_t, BlockSizeLimit_t >::block_start_offset |
|
staticprotected |
Initial value:=
sizeof(header) + sizeof(block_info) * BlockNumLimit
The documentation for this class was generated from the following file: