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 &lt;revolution/cx.h&gt;</CODE><BR>
20  <BR>
21  <CODE>CXCompressionHeader CXGetCompressionHeader( const void* srcp );</CODE></dd>
22</dl>
23<h2>Arguments</h2>
24<TABLE border="1" width="100%">
25  <TBODY>
26    <TR>
27<TD width="13%"><EM><STRONG>srcp</STRONG></EM></TD>
28<TD width="87%">Source address where the compressed data is stored.</TD>
29    </TR>
30  </TBODY>
31</TABLE>
32
33<h2>Return Values</h2>
34<p>Gets the header information of the compressed data.</p>
35
36<H2>Description</H2>
37<P>This function reads the first 8 bytes of the compressed data and gets the header information of the compressed data.</P>
38<P>It is compatible with all compression formats supported by the CX library.</P>
39<P>The <A href="CXCompressionHeader.html">CXCompressionHeader</A> structure of the returned value is used to initialize context for decompression by the <CODE>CXInitUncompContextRL</CODE>, <CODE>CXInitUncompContextLZ</CODE>, and <CODE>CXInitUncompContextHuffman</CODE> functions.</P>
40<h2>Internal Operation</h2>
41<P>Reads the header in the first 8 bytes of data, converts the data's endian method and returns the correct header information.</P>
42
43<h2>See Also</h2>
44<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>
45
46<H2>Revision History</H2>
47<P>
482006/09/12 Changed the header size to be accessed to 8 bytes due to increase in the file size that can be handled.<BR> 2006/07/06 Initial version.
49</P>
50<hr>
51<P>CONFIDENTIAL</p>
52</BODY>
53</HTML>
54