Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New function to efficiently remove the last entries from an archive #333

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

depth42
Copy link

@depth42 depth42 commented Aug 29, 2024

Changes proposed in this PR

In this pull request, I added a new function for incrementally removing the last entries from an archive. This is very handy, when you want to remove and re-add entries add the end of an archive as you don't have to rewrite the archive in full.
The function is: Archive.removeAllEntries(fromEntry entry: Entry)

Tests performed

I implemented trhee tests for the function following the existing test pattern.

  • testRemoveFromEntryUncompressed
  • testRemoveFromEntryCompressed
  • testRemoveEntriesFromArchiveWithZIP64EOCD

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