GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > ZLIB / V2-0-3
Constituent: zlib_file_compress     Tag: rad750
#include "ZLIB/ZLIB_msg.h"
Include dependency graph for ZLIB_file_compress.h:
This graph shows which files directly or indirectly include this file:
Functions | |
unsigned int | ZLIB_fileCompressFromFile (int in, int out, unsigned int bufSize) |
Compress a file into an output file. | |
unsigned int | ZLIB_fileCompressFromMem (int in, void *out, unsigned int inSize, unsigned int bufSize) |
Compress a memory region into an output file. |
This library provides a slightly higher level interface to the ZLIB compression utility than does the deflate() interface. One advantage is that the user does not need to worry about the details of the ZLIB stream structure. Another goal of this library is to minimize the amount of temporary buffer storage required to compress large files. This is particulary important when compressing one file into another. In cases where a file handle is needed as a function parameter, the user is resposible for opening (or creating) the handle before calling the function and for closing the handle after completion.
When compressing file data, the functions in this library prefix a 32-bit, big-endian word to the head of the output stream. This word contains the size in bytes of the original file. This is used by the zlib_file_inflate library functions. Following the 32-bit size word is the standard ZLIB compressed data stream.
On VxWorks platforms, the PBS/MBA facility must be initialized.
|
Compress a file into an output file. This function uses the ZLIB memory to memory inflation library to compress an input file to an output file. Temporary buffer storage of the streams is minimized. The in and out file handles must already have been opened. This function will not close the file handles, and may leave the file pointers at an offset within the file. The out file offset should point to the place where the compression record starts within the output file.
|
Here is the call graph for this function: