Function dai::utility::readFileInArchive

Function Documentation

std::vector<uint8_t> dai::utility::readFileInArchive(const std::filesystem::path &archivePath, const std::string &fileInArchive)

Reads a single file from an archive into memory.

Parameters:
  • archivePath – Path to the archive file to read

  • fileInArchive – Path of the file inside the archive

Returns:

File contents as a byte vector