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

Request: Generic Decompressor for all algos based on magic number header #202

Open
gabrieljones opened this issue Jun 25, 2024 · 1 comment

Comments

@gabrieljones
Copy link

A decompressor that can detect and handle any of the supported algorithms.

Algo Magic Number Source
ZStd 28 b5 2f fd https://en.wikipedia.org/wiki/Zstd
LZ4 04 22 4d 18 https://en.wikipedia.org/wiki/LZ4_(compression_algorithm)
Snappy ff 06 00 00 73 4e 61 50 70 59 https://en.wikipedia.org/wiki/Snappy_(compression)
LZO ??? https://github.com/mirror/lzop/blob/master/doc/magic
GZIP 1f 8b https://en.wikipedia.org/wiki/Gzip
Deflate ??? https://en.wikipedia.org/wiki/Deflate
BZip2 BZh https://en.wikipedia.org/wiki/Bzip2
@gabrieljones
Copy link
Author

@wendigo @dain If I made a PR that added this capability would you consider it?

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

1 participant