Class foreign_storage::ArchiveWrapper

class ArchiveWrapper

Public Functions

ArchiveWrapper(const std::string &file_path)
void skipToEntry(int entry_number)

Skip to entry in archive

bool nextEntry()
bool currentEntryFinished() const
size_t currentEntryDataAvailable() const
void consumeDataFromCurrentEntry(size_t size, char *dest_buffer = nullptr)
char peekNextChar()
int getCurrentEntryIndex() const
void resetArchive()
std::string entryName()

Private Functions

void fetchBlock()

Get the next block from the current archive file

Private Members

std::unique_ptr<Archive> arch_
const void *current_block_
size_t block_chars_remaining_
int current_entry_
std::string file_path_