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>CXSecureUncompressRL</title> 9<LINK rel="stylesheet" href="../CSS/revolution.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">CXSecureUncompressRL</h1> 15 16<h2>Syntax</h2> 17<DL><DD><PRE class="construction"> 18#include <revolution/cx.h> 19 20s32 CXSecureUncompressRL( 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 run length 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 </TBODY> 65</TABLE> 66 67<H2>Description</H2> 68<P>This function decompresses run length compressed data and writes the data to the specified region of memory. Align the source address to a 4-byte boundary.</P> 69 70<P> 71To perform streaming expansion of data, use the <A href="CXReadUncompRL.html"><CODE>CXReadUncompRL</CODE></A> function. 72</P> 73 74<h2>See Also</h2> 75<p class="reference"> 76<A href="CXGetUncompressedSize.html">CXGetUncompressedSize</A>, 77<A href="CXUncompressRL.html">CXUncompressRL</A>, 78<A href="CXInitUncompContextRL.html">CXInitUncompContextRL</A>, 79<A href="CXReadUncompRL.html">CXReadUncompRL</A>, 80<A href="CXIsFinishedUncompRL.html">CXIsFinishedUncompRL</A>, 81<A href="CXCompressRL.html">CXCompressRL</A>, 82<A href="../tools/ntcompress.html">ntcompress</A> 83</p> 84 85<H2>Revision History</H2> 86<P> 872007/09/03 Corrected error in the See Also section.<BR>2007/05/24 Initial version.<BR> 88</P> 89 90<hr><p>CONFIDENTIAL</p></body> 91</html> 92