Feat: multivolume rar support #43
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds comprehensive support for extracting multi-volume RAR archives (split archives with
.rar,.r00,.r01, etc. naming convention).Key Changes
stream-multivolume.c) that seamlessly reads across multiple physical volume filesrar_continue_volume()to parse RAR headers at volume boundaries and correctly track data segments across volumesrar_copy_stored()andbr_fill()to handle volume transitions during extraction of both stored and compressed filesOpenMultivolume()function in the Go wrapper to detect and open multi-volume RAR archives.rar(first volume).r00-.r99(volumes 0-99).s00-.s99(volumes 100-199).t00-.t99(volumes 200-299).z00-.z99(volumes 800-899)Testing
TestMultiVolumeRar()integration test that validates extraction from multi-volume RAR archivesTestGetVolumePathfor testing volume namingDocumentation
Test plan
go test -vto verify all existing tests pass