16class SourceImage final :
public Volume {
25 static std::expected<std::unique_ptr<SourceImage>,
Error>
26 open(
const std::filesystem::path &path);
29 std::expected<LocatedFile, Error>
find(
const std::string &name)
override;
40 std::expected<std::size_t, Error>
extract(
const std::filesystem::path &root);
43 std::span<std::uint8_t, kSectorData> sector)
override;
45 std::expected<std::size_t, Error>
readSectors(std::uint32_t lba,
46 std::span<std::uint8_t> sectors)
override;
52 bool isDirectory =
false;
53 std::uint32_t lba = 0;
55 bool multiExtent =
false;
57 std::uint32_t size = 0;
62 std::expected<std::vector<Record>,
Error> records(std::uint32_t lba, std::uint32_t size);
64 std::ifstream handle_;
65 std::uint32_t volumeSectors_ = 0;