Add support for streaming archive writing and unknown filesizes in zip files

This commit is contained in:
2023-11-14 23:42:23 +01:00
parent 6356075227
commit 966db4b452
13 changed files with 154 additions and 12 deletions

View File

@@ -74,6 +74,12 @@ namespace OpenVulkano
return m_writer->AddFile(fileName, inArchiveName);
}
ArchiveOStream MultiPartArchiveWriter::AddFileStream(const FileDescription& description)
{ //TODO handle zip splits
CheckSize(description.size);
return m_writer->AddFileStream(description);
}
void MultiPartArchiveWriter::Move(const std::filesystem::path& newDir)
{
bool hasToMove = m_archives.size() > 1 || m_writer->GetTotalWrittenBytes() > 0;