| M E M _ L Z W C O M P R E S S ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English PORTA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_lzwcompress() - Super small LZW data compressor.
SYNOPSIS
pd = mem_lzwcompress(ptr, size);
struct mem_pak_data *mem_lzwcompress(UBYTE *, ULONG);
FUNCTION
This function is just ideal for compressing text or
bitmap data, where reduction on size is desired and
also code size must be kept as small as possible.
INPUTS
ptr - Pointer to memory region to be compressed.
size - Size of that region.
RETURNS
Returns pointer to memory block that may contain the
compressed data or NULL if no memory is available.
BASES
SysBase
NOTES
Always inspect 'pd_size' after compression, if it is
0 then compressing this data is pointless.
By def. 12 bit coding is being used. The header will
contain that info. See source code for details.
By default there is no checksum added to the packed
data, its up to you how and what will be checksummed.
SEE ALSO
mem_lzwdecompress(), mem_lzwfree()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |