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

Test for compressing 0-length data #207

Open
nemequ opened this issue Aug 11, 2016 · 0 comments
Open

Test for compressing 0-length data #207

nemequ opened this issue Aug 11, 2016 · 0 comments

Comments

@nemequ
Copy link
Member

nemequ commented Aug 11, 2016

I was just looking at lz4/lz4#157. We probably need to figure something out for 0-length data. If we find an issue, we should talk to upstreams about whether or not they want to allow compressing 0 bytes. For those who don't, we could add an option flag to Squash to indicate that and just return SQUASH_OK with 0-bytes of output for both compression and decompression… it wouldn't really be compatible with other tools, but it's probably better than nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant