Jump to content
  • Advertisement
Sign in to follow this  
jwezorek

need implementations of DEFLATE compression and decompression

This topic is 2136 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know of a small C or C++ implementation of both DEFLATE and INFLATE in the public domain or with a super permissive license? Yes, I know about zlib and will use it if I have to but would rather not have to have a dependency on the whole thing because I just need in memory compression and decompression of a byte buffer, not zipping and unzipping with internal file directory structure,etc.

I did this once before and used deflate.h and deflate.c from Halibut, but now I need inflate as well. Looks like i could use tinf from here , but it would be nice if someone had put both together already as four standalone source files i.e. inflate.h, inflate.c, deflate.h, and deflate.c. It seems like this should exist somewhere but, haven't found it.

Share this post


Link to post
Share on other sites
Advertisement
Thanks, I looked at that one but didn't read carefully, i.e. at all, and thought it wasn't what I need when it fact it is exactly what I need.

Share this post


Link to post
Share on other sites
Yes, I know about zlib and will use it if I have to but would rather not have to have a dependency on the whole thing because I just need in memory compression and decompression of a byte buffer, not zipping and unzipping with internal file directory structure,etc.


What are you talking about? zlib very small and does exactly that - byte buffer compression or decompression. It doesn't do anything with file or directory structure.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!