CXGetCompressionHeader

C Specification

#include <revolution/cx.h>

CXCompressionHeader CXGetCompressionHeader( const void* srcp );

Arguments

srcp Source address where the compressed data is stored.

Return Values

Gets the header information of the compressed data.

Description

This function reads the first 4 bytes of the compressed data and gets the header information of the compressed data.

It is compatible with all compression formats supported by the CX library.

The CXCompressionHeader structure of the returned value is used to initialize context for decompression by the CXInitUncompContextRL, CXInitUncompContextLZ, and CXInitUncompContextHuffman functions.

Internal Operation

Reads the header in the first 4 bytes of data, converts the data's endian method and returns the correct header information.

See Also

CXUncompressLZ, CXUncompressHuffman, CXUncompressRL, CXUnfilterDiff
CXGetUncompressedSize

Revision History

07/06/2006 Initial version.


CONFIDENTIAL