Data compression and decompression subroutines  written using easy-zlib