Skip to content

Append files without overwriting previous central directory#343

Open
brainrom wants to merge 1 commit into
richgel999:masterfrom
brainrom:add-mem-reserve
Open

Append files without overwriting previous central directory#343
brainrom wants to merge 1 commit into
richgel999:masterfrom
brainrom:add-mem-reserve

Conversation

@brainrom

Copy link
Copy Markdown

This new set of mz_zip_writer_add_mem_ functions predicts size required for LOC, file body, etc, reserves it in file, write new central directory, and only after that rewrite old central directory.
In the worst case we'll get one broken file, other archive will be fine. Currently it works only with uncompressed file. Is it better to make it exclusive for uncompressed, or add "compress to RAM" feature?

…ws streaming writing without risc of central directory corruption
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant