GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > ZLIB / V2-0-3

Constituent: zcompress     Tag: linux-gcc


Interface   Compound List   File List   Compound Members   File Members  

ZLIB_file_compress.h File Reference

ZLIB file compression utility library. More...

#include "ZLIB/ZLIB_msg.h"

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.


Detailed Description

ZLIB file compression utility library.

Author:
D.L. Wood

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.


Generated on Thu May 13 13:10:45 2004 by doxygen 1.3.3