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.
need implementations of DEFLATE compression and decompression
Started by jwezorek, Dec 07 2012 03:33 PM
3 replies to this topic
Ad:
#2 Moderators - Reputation: 7470
Posted 07 December 2012 - 06:36 PM
First Google hit for "deflate open source implementation" :-)
Edited by ApochPiQ, 07 December 2012 - 06:36 PM.
#4 Members - Reputation: 1148
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.






