CXGetCompressionHeader

Syntax

#include <revolution/cx.h>

CXCompressionHeader CXGetCompressionHeader( const void* srcp );

Arguments

srcp Source address where compressed data is stored

Return Values

Gets the header information of the compressed data.

Description

This function reads the first 8 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 the context for expansion with the CXInitUncompContextRL, CXInitUncompContextLZ, and CXInitUncompContextHuffman functions.

Internal Operation

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

See Also

CXUncompressLZ, CXUncompressHuffman, CXUncompressRL, CXUnfilterDiff, CXGetUncompressedSize

Revision History

2007/09/03 Added links to the functions in Description. Corrected a typo.
2006/09/12 Changed the referenced header size to 8 bytes due to expansion in the file size that can be handled.
2006/07/06 Initial version.


CONFIDENTIAL