Changes between Version 13 and Version 14 of FileCompression
- Timestamp:
- Nov 22, 2010, 9:38:03 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FileCompression
v13 v14 220 220 described above). 221 221 222 === Getting boinc_zip === 222 === Getting boinc_zip === #boinc-zip-getting 223 223 224 224 boinc_zip is no longer in the main boinc subversion "trunk" but resides in this "depends" brance: … … 243 243 }}} 244 244 245 245 246 == Client and Server Compression and Decompression using gzip (zlib) == #gzip 246 247 247 248 These basic routines may be useful if you want to compress/decompress a file using the zlib library (usually called "libz.a" and available for most platforms). Include the header file below (qcn_gzip.h) in your program, and link against libz, and you will gain two simple to use functions for gzip'ing or gunzip'ing a file. This is for simple single file or file-by-file compression or decompression (i.e. one file that is to be compressed into a .gz or decompressed back to it's original uncompressed state). You can check for boinc client status if you want the ability to quit inside an operation etc. 248 249 249 qcn_gzip.h: 250 qcn_gzip.h: #qcn-qzip-h 250 251 251 252 {{{ … … 262 263 263 264 264 qcn_gzip.cpp: 265 qcn_gzip.cpp: #qcn-qzip-cpp 265 266 266 267 {{{