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

How to use multivolume archives #25

Closed
daiyangyang945 opened this issue Aug 18, 2023 · 2 comments
Closed

How to use multivolume archives #25

daiyangyang945 opened this issue Aug 18, 2023 · 2 comments

Comments

@daiyangyang945
Copy link

I found that README mentioned the PLzmaSDK support 7z multivolume archives, but I don't know how to implement it. Can you give me some guidance

@OlehKulykov
Copy link
Owner

OlehKulykov commented Aug 18, 2023

Extracting/decoding

  1. Create array for adding InStreams.
  2. For each archive part, create InStream(file | mem) and add to array from step 1.
  3. Create InStream with array from step 1.
  4. Create decoder with InStream from step 3.
  5. Decode.

Compressing/encoding

  1. Create OutMultiStream for archive parts and keep reference.
  2. Create encoder with OutMultiStream from step 1.
  3. Setup encoder, add files, set password etc.
  4. Encode.
  5. Take OutStreams array from OutMultiStream from step 1. Each OutStream in array is archive part.

Links

@daiyangyang945
Copy link
Author

thanks

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

No branches or pull requests

2 participants