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

Investigate difference between gzip/zlib #77

Closed
LivInTheLookingGlass opened this issue Jul 21, 2016 · 1 comment
Closed

Investigate difference between gzip/zlib #77

LivInTheLookingGlass opened this issue Jul 21, 2016 · 1 comment
Assignees
Milestone

Comments

@LivInTheLookingGlass
Copy link
Collaborator

LivInTheLookingGlass commented Jul 21, 2016

No description provided.

@LivInTheLookingGlass
Copy link
Collaborator Author

Okay, C++ is making this difference very obvious. C++ will likely support gzip but not zlib initially, as gzip will take less guesswork to implement. For zlib you need to repeatedly guess at the size (from what I can tell in the zlib library).

To determine the size of a gzip encoded text, feed the last four characters in reverse order into unpack_value. This should work for anything <4GiB. If it returns the error code, then the fallback would be to progressively add a bit until things work.

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