45 static std::expected<ArkReader, Error>
open(
const std::filesystem::path &path,
46 std::uint64_t base = 0);
53 [[nodiscard]]
const std::vector<ArkEntry> &
entries()
const;
61 [[nodiscard]] std::optional<ArkEntry>
locate(std::string_view path)
const;
77 std::expected<void, Error>
extract(
const std::filesystem::path &root);
80 ArkReader() =
default;
82 [[nodiscard]]
int slotOf(std::string_view name)
const;
85 std::filesystem::path path_;
86 std::uint64_t base_ = 0;
87 std::vector<ArkEntry> entries_;
88 std::vector<std::uint32_t> slots_;
89 std::vector<char> strings_;
90 std::vector<std::uint32_t> table_;
A file of an archive.
Definition arkreader.h:19
std::uint32_t size
Definition arkreader.h:22
std::string path
Definition arkreader.h:20
std::uint32_t uncompressedSize
Definition arkreader.h:23
std::uint32_t offset
Definition arkreader.h:21