1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>CXGetCompressionHeader</title> 9<LINK rel="stylesheet" href="../CSS/revolution.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">CXGetCompressionHeader</h1> 15<h2>C Specification</h2> 16 17<dl> 18 <dd> 19<CODE>#include <revolution/cx.h></CODE><BR> <BR> <CODE>CXCompressionHeader CXGetCompressionHeader( const void* srcp );</CODE></dd> 20</dl> 21<h2>Arguments</h2> 22<TABLE border="1" width="100%"> 23 <TBODY> 24 <TR> 25<TD width="13%"><EM><STRONG>srcp</STRONG></EM></TD> 26<TD width="87%">Source address where the compressed data is stored.</TD> 27 </TR> 28 </TBODY> 29</TABLE> 30 31<h2>Return Values</h2> 32<p>Gets the header information of the compressed data.</p> 33 34<H2>Description</H2> 35<P>This function reads the first 4 bytes of the compressed data and gets the header information of the compressed data.</P> 36<P>It is compatible with all compression formats supported by the CX library.</P> 37<P>The <A href="CXCompressionHeader.html">CXCompressionHeader</A> structure of the returned value is used to initialize context for decompression by the CXInitUncompContextRL, CXInitUncompContextLZ, and CXInitUncompContextHuffman functions.</P> 38<h2>Internal Operation</h2> 39<P>Reads the header in the first 4 bytes of data, converts the data's endian method and returns the correct header information.</P> 40 41<h2>See Also</h2> 42<p><CODE><A href="CXUncompressLZ.html">CXUncompressLZ</A>, <A href="CXUncompressHuffman.html">CXUncompressHuffman</A>, <A href="CXUncompressRL.html">CXUncompressRL</A>, <A href="CXUnfilterDiff.html">CXUnfilterDiff</A><BR> <A href="CXGetUncompressedSize.html">CXGetUncompressedSize</A><br></CODE></p> 43 44<H2>Revision History</H2> 45<P>07/06/2006 Initial version.</P> 46<hr> 47<P>CONFIDENTIAL</p> 48</BODY> 49</HTML> 50