|
wavelength 1.0.0
|
Writer of a version 2 archive from the files below a directory. More...
#include <arkwriter.h>
Static Public Member Functions | |
| static std::expected< std::size_t, Error > | write (const std::filesystem::path &root, const std::vector< std::string > &order, const std::filesystem::path &output) |
| Write the archive. | |
Writer of a version 2 archive from the files below a directory.
Each file is stored at its path relative to the directory. The names of the directories and of the files share one string block and one hash table, with a slot for each name the game's HashString gives, or the next free slot. The data follows the directory without padding. A gzip file records the size from its trailer as its inflated size.
|
static |
Write the archive.
| root | Directory with the files. |
| order | Paths to place first, in order. A path missing from the directory is skipped, and the remaining files follow in byte order of their paths. |
| output | The archive to write. |