S60 Open C
libz API Specification

libz API Specification

Table of Contents

API Description
Compression Functions

 


API Description

This chapter lists information about functions which act as interface functions to Compression Library.

 


Compression Functions

This section lists functions of compression category.

Interface functions

Function

Description

adler32 Computes a running Adler-32 checksum.
adler32_combine Combine two Adler-32 checksums into one.
compress Attempts to compress source Len bytes of data in the buffer source, placing the result in the buffer dest.
compress2 Compresses data at a specified level.
compressbound Estimates the size of buffer required to compress sourceLen bytes of data using the compress() or compress2() functions.
crc32 Computes a running Cyclic Redundancy Check checksum.
crc32_combine Combine two CRC-32 check values into one.
deflate Attempts to compress data until either the input buffer is empty or the output buffer is full.
deflatebound Estimates the size of buffer required to compress sourceLen bytes of data.
deflatecopy Copies the compression state information in source to the uninitialized z_stream structure referenced by dest.
deflateend Frees all allocated state information referenced by stream.
deflateinit2 Initializes the compression system.
deflateinit Initializes the compression system.
deflateparams Alters the compression parameters for the compression stream object stream.
deflatePrime Inserts bits in the deflate output stream.
deflatereset Resets all state associated with stream.
deflatesetdictionary Initializes the compression dictionary associated with stream using the dictlen bytes referenced by dictionary.
deflateSetHeader Provides gzip header information for when a gzip stream is requested by deflateInit2().
deflateTune Fine tune deflate's internal compression parameters
get-crc-table Generates tables for a byte-wise 32-bit CRC calculation based on the polynomial.
gzclearerr Clears the error and end-of-file flags for file.
gzclose Closes the compressed file stream file.
gzdopen Attempts to associate the open file referenced by fd with a gzFile object.
gzeof Tests the compressed file stream file for end of file.
gzerror Returns a string describing the last error occurred, associated with the open compressed file stream referred to by file.
gzflush The gzflush() function shall flush pending output to the compressed file stream identified by file, which must be open for writing.
gzgetc Reads the next single character from the compressed file stream referenced by file.
gzgets Reads a string from a compressed file.
gzopen Opens the compressed file named by path.
gzprintf Formats and compresses the data.
gzputc Writes character to a compressed file.
gzputs Writes to a compressed file.
gzread Reads from a compressed file.
gzrewind Resets the file-position on a compressed file stream.
gzseek Sets the file-position indicator for the compressed file stream file.
gzsetparams Sets the compression level and compression strategy on the compressed file stream referenced by file.
gztell Returns the starting position for the next read or write operation on compressed file stream file.
gzdirect Returns 1 if file is being read directly without decompression
gzungetc Push one character back onto the stream to be read again later.
gzwrite Writes data to the compressed file referenced by file, opened in a write mode.
inflate Attempts to decompress data until either the input buffer is empty or the output buffer is full.
inflateend Frees all allocated state information referenced by stream.
inflateinit2 Initializes the decompression system.
inflateinit Initializes the decompression system.
inflateBack Does a raw inflate with a single call using a call-back interface for input and output.
inflateBackEnd All memory allocated by inflateBackInit() is freed.
inflateBackInit_ Initialize the internal stream state for decompression using inflateBack() calls.
inflateCopy Sets the destination stream as a complete copy of the source stream.
inflateGetHeader Requests that gzip header information be stored in the provided gz_header structure.
inflatePrime This function inserts bits in the inflate input stream
inflatereset Resets all state associated with stream.
inflatesetdictionary Initializes the decompression dictionary.
inflatesync Advances compression stream to next sync point.
inflatesyncpoint Tests for synchronization point.
uncompress Uncompresses the data.
zerror Translates error number to string.
zlibCompileFlags Return flags indicating compile-time options.
zlibversion Locates library version at run time.

Give feedback of this article


ŠNokia 2008

Back to top


All rights reserved. This documentation can be used in the connection with this Product to help and support the user.