aboutsummaryrefslogtreecommitdiff
path: root/src/deflate.cpp (follow)
AgeCommit message (Collapse)Author
2012-03-25Code is all reorganized. We're about ready to release. I should write up aMike Buland
little explenation of the arrangement.
2011-10-29zlib can't really handle empty buffers, so we don't pass empty buffers to itMike Buland
now, even if the function parameters indicate that.
2011-10-25Base64 does line wrapping correctly on write, and also doesn't try to flush theMike Buland
write buffer when reading is done. It's...strange, but yeah, it was doing that. Deflate also defaults to zlib compression now, which means you can compress & decompress without using any extra params. Turns out zlib auto-detect won't decompress raw streams, so this is the safest overall option, and the easiest to work with. zlib headers are small, and includes a crc at the end so you can be sure your data is accurate, raw does not.
2011-10-24Made the encoder state opaque to the caller in Deflate and BZip2 to match Lzma.Mike Buland
That means that when you use Bu::Deflate, Bu::Bzip2, or Bu::Lzma you don't get any of the respective libraries' header files.
2011-10-23Switched ito* to synchro*, except the server, I'm thinking of takeing the coreMike Buland
in a different direction anyway. Added the Deflate class, it uses zlib, and can do raw (headerless) deflate streams, zlib format, or gzip format. It's easy to use and quite versitile.