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<h2>C Specification</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;revolution/cx.h&gt;</CODE><BR> <BR> <CODE>s32 CXSecureUncompressAny( const void* srcp, u32 srcSize, void* destp );</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    <TR>
29<TD width="13%"><EM><STRONG>srcSize</STRONG></EM></TD>
30<TD width="87%">Source data size</TD>
31    </TR>
32    <TR>
33<TD width="13%"><EM><STRONG>destp</STRONG></EM></TD>
34<TD width="87%">Destination address for decompression.</TD>
35    </TR>
36  </TBODY>
37</TABLE>
38
39<h2>Return Values</h2>
40<TABLE border="1" width="100%">
41  <TBODY>
42    <TR>
43<TD width="13%"><EM><STRONG>CX_ERR_SUCCESS</STRONG></EM></TD>
44<TD width="87%">Function completes successfully.</TD>
45    </TR>
46    <TR>
47<TD width="13%"><EM><STRONG>CX_ERR_UNSUPPORTED</STRONG></EM></TD>
48<TD width="87%">Unsupported compression data type</TD>
49    </TR>
50    <TR>
51<TD width="13%"><EM><STRONG>CX_ERR_SRC_SHORTAGE</STRONG></EM></TD>
52<TD width="87%">The source data size is too small</TD>
53    </TR>
54    <TR>
55<TD width="13%"><EM><STRONG>CX_ERR_SRC_REMAINDER</STRONG></EM></TD>
56<TD width="87%">The source data size is too large</TD>
57    </TR>
58    <TR>
59<TD width="13%"><EM><STRONG>CX_ERR_DEST_OVERRUN</STRONG></EM></TD>
60<TD width="87%">Buffer overrun for the destination for the extraction  (buffer overrun)</TD>
61    </TR>
62    <TR>
63<TD width="13%"><EM><STRONG>CX_ERR_ILLEGAL_TABLE</STRONG></EM></TD>
64<TD width="87%">There is an error in the Huffman table</TD>
65    </TR>
66  </TBODY>
67</TABLE>
68
69<H2>Description</H2>
70<P>
71Detects the compression format from the data header and executes the appropriate decompression process.
72</P>
73<P>
74The 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.
75</P>
76
77<h2>See Also</h2>
78<p><CODE><A href="CXSecureUncompressRL.html">CXSecureUncompressRL</A>, <A href="CXSecureUncompressLZ.html">CXSecureUncompressLZ</A>, <A href="CXSecureUncompressHuffman.html">CXSecureUncompressHuffman</A>, <A href="CXSecureUnfilterDiff.html">CXSecureUnfilterDiff</A></CODE></p>
79
80<H2>Revision History</H2>
81<P>2007/05/24 Initial version.</P>
82</body>
83</html>
84