kubo / snzip

Snzip, a compression/decompression tool based on snappy
Other
217 stars 30 forks source link

support official framing format #3

Closed jehiah closed 12 years ago

jehiah commented 12 years ago

This snzip utility has been fantastic (I've been using it for a while) but i would love to see it implement the standard framing format agreed on in issue #34 of the snappy project.

Since that format also describes using the ".sz" instead of ".snz" and it uses a different file header, it should be possible to keep backwards compatibility for those of us that are already using snzip.

jehiah commented 12 years ago

I didn't notice before but the code does have comment-43-format.c which is close to the finalized format so i'll try to make what appear to be minor changes to finish that up (ie: change magic header, update find_stream_format_by_first_byte to check the full magic header, update file extension, etc).