SPA_Compressor
SPA_Compressor
spa
1998 12-06
CLASS
SPA_Compressor - C++ compressor
SYNOPSIS
SPA_Compressor defines an interface for compression and decompression.
Derived classes provide an compression/decompression mechanism through
specification of the functions Compress() and Decompress().
MEMBER FUNCTIONS
virtual void *Compress(unsigned long &length, void *source, unsigned long sourcelen)
Compress the buffer specified by source and sourcelen.
The pointer the the buffer is returned and is of size length.
NULL is returned on failure.
The memory for the returned buffer is allocated by this function and it is the
caller's responsibility to free it when done.
virtual void *Decompress(unsigned long &length, void *source, unsigned long sourcelen)
Compress the buffer specified by source and sourcelen.
The pointer the the buffer is returned and is of size length.
NULL is returned on failure.
The memory for the returned buffer is allocated by this function and it is the
caller's responsibility to free it when done.