FeedCompressor

Gives data to a compression engine.

Synopsis

Err FeedCompressor(Compressor *comp, void *data,uint32 numDataWords);

Description

Gives data to a compressor engine for compression. As data is compressed, the call back function supplied when the compressor was created is called for every word of compressed data generated.

Arguments

comp
An active compression handle, as obtained from CreateCompressor().
data
A pointer to the data to compress.
numDataWords
The number of words of data being given to the compressor.

Return Value

Returns >= 0 for success, or a negative error code if it fails. Possible error codes include:

COMP_ERR_BADPTR
An invalid compression handle was supplied.

Implementation

Folio call implemented in compression folio V24.

Associated Files

compression.h

See Also

CreateCompressor(), DeleteCompressor()