Jump to content

  • Log In with Google      Sign In   
  • Create Account


need implementations of DEFLATE compression and decompression


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 jwezorek   Crossbones+   -  Reputation: 1596

Like
0Likes
Like

Posted 07 December 2012 - 03:33 PM

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.

Sponsor:

#2 ApochPiQ   Moderators   -  Reputation: 12400

Like
3Likes
Like

Posted 07 December 2012 - 06:36 PM

First Google hit for "deflate open source implementation" :-)

Edited by ApochPiQ, 07 December 2012 - 06:36 PM.


#3 jwezorek   Crossbones+   -  Reputation: 1596

Like
0Likes
Like

Posted 09 December 2012 - 12:07 PM

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.

#4 Martins Mozeiko   Crossbones+   -  Reputation: 1413

Like
0Likes
Like

Posted 09 December 2012 - 03:30 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS