#include <revolution/cx.h> CXCompressionHeader CXGetCompressionHeader( const void* srcp );
| srcp | Source address where compressed data is stored |
|---|
Gets the header information of the compressed data.
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.
Reads the header in the first 8 bytes of data, converts the data's endian method and returns the correct header information.
CXUncompressLZ, CXUncompressHuffman, CXUncompressRL, CXUnfilterDiff, CXGetUncompressedSize
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