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

Support for lzip? #184

Closed
jskeet opened this issue Sep 30, 2016 · 2 comments
Closed

Support for lzip? #184

jskeet opened this issue Sep 30, 2016 · 2 comments

Comments

@jskeet
Copy link
Contributor

jskeet commented Sep 30, 2016

LZIP is an LZMA-based stream format, used in conjunction with things like tar for archives.
(My own interest is in the IANA time zone distribution; a new format uses LZIP.)

I've looked at the LZMA support in SharpCompress and I don't think I can just use it out of the box - mostly due to how the dictionary size is specified. It's entirely possible that I've missed something, however.

The file format is documented here.

I'd be happy to start working on a pull request if this sounds like something you'd welcome - but I'll wait for confirmation that it's actually sensible before doing so.

(I'm not sure whether it would be easy to write an lzip compressor - that's not something I personally need. I quite understand if you'd rather not support decompression without compression though.)

@adamhathcock
Copy link
Owner

This is definitely something to include if you need it..

Looks like you'll need a LZipReader as it's a forward-only format. It does look like you'll need to make something custom for the compression using LZMA as a base. I'm not an expert in this stuff so I'm not sure how much help I'll be if you can't get it working :)

It's fine just to do the decompression. I can probably backfill a compressor if there's demand based on what you create.

Thanks!

@jskeet
Copy link
Contributor Author

jskeet commented Sep 30, 2016

Righto. Will prototype something in order to get any idea of whether it's even feasible without actually understanding the compression deeply. If that goes well, I'll start working it into a proper PR. Thanks for the quick response :)

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