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>CXSecureUncompressAny</title>
9<LINK rel="stylesheet" href="../CSS/revolution.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">CXSecureUncompressAny</h1>
15
16<h2>Syntax</h2>
17<DL><DD><PRE class="construction">
18#include &lt;revolution/cx.h&gt;
19
20s32 CXSecureUncompressAny( const void* srcp, u32 srcSize, void* destp );
21</PRE></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1">
25  <TBODY>
26    <TR>
27<TH>srcp</TH>
28<TD>Source address where compressed data is stored</TD>
29    </TR>
30    <TR>
31<TH>srcSize</TH>
32<TD>Source data size</TD>
33    </TR>
34    <TR>
35<TH>destp</TH>
36<TD>Destination address where data is expanded</TD>
37    </TR>
38  </TBODY>
39</TABLE>
40
41<h2>Return Values</h2>
42<TABLE class="arguments" border="1">
43  <TBODY>
44    <TR>
45<TH>CX_ERR_SUCCESS</TH>
46<TD>Successful end</TD>
47    </TR>
48    <TR>
49<TH>CX_ERR_UNSUPPORTED</TH>
50<TD>Unsupported compression data type.</TD>
51    </TR>
52    <TR>
53<TH>CX_ERR_SRC_SHORTAGE</TH>
54<TD>Source data size is too small.</TD>
55    </TR>
56    <TR>
57<TH>CX_ERR_SRC_REMAINDER</TH>
58<TD>Source data size is too large.</TD>
59    </TR>
60    <TR>
61<TH>CX_ERR_DEST_OVERRUN</TH>
62<TD>The decompression destination buffer will be exceeded (buffer overrun).</TD>
63    </TR>
64    <TR>
65<TH>CX_ERR_ILLEGAL_TABLE</TH>
66<TD>The Huffman table contains mistakes.</TD>
67    </TR>
68  </TBODY>
69</TABLE>
70
71<H2>Description</H2>
72<P>
73Detects the compression format from the data header and executes the appropriate decompression process.
74</P>
75<P>
76The decompression processes for all of the compression types are linked in this function. Therefore, unless some special kind of compression is being used, it is perhaps more effective to execute the compression-type-specific function instead.
77</P>
78
79<h2>See Also</h2>
80<p class="reference">
81<A href="CXSecureUncompressRL.html">CXSecureUncompressRL</A>,
82<A href="CXSecureUncompressLZ.html">CXSecureUncompressLZ</A>,
83<A href="CXSecureUncompressHuffman.html">CXSecureUncompressHuffman</A>,
84<A href="CXSecureUnfilterDiff.html">CXSecureUnfilterDiff</A>
85</p>
86
87<H2>Revision History</H2>
88<P>
892007/05/24 Initial version.<BR>
90</P>
91
92<hr><p>CONFIDENTIAL</p></body>
93</html>
94