1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 7<title>UncompressBLZ</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../nn/Overview.html">nn</a>::<a href="../../nn/cx/Overview.html">cx</a>::UncompressBLZ</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition">#include <nn/cx.h> 14 15void UncompressBLZ( 16 void * pData, 17 size_t dataSize, 18 size_t bufferSize 19); 20</pre> 21 </div> 22<h2>Parameters</h2> 23 <div class="section"> 24 <table class="arguments"> 25 <thead> 26 <tr> 27 <td width="15" /> 28<th>Name</th> 29<td>Description</td> 30 </tr> 31 </thead> 32 <tr> 33<td>in</td> 34<th>pData</th> 35<td>Pointer to the input or output data buffer</td> 36 </tr> 37 <tr> 38<td>in</td> 39<th>dataSize</th> 40<td>Input file size (bytes)</td> 41 </tr> 42 <tr> 43<td>in</td> 44<th>bufferSize</th> 45<td>Output buffer size (bytes)</td> 46 </tr> </table> 47 </div> 48<h2>Return Values</h2> 49 <div class="section"> 50None. 51 </div> 52<h2>Description</h2> 53 <div class="section"> 54<p>Decompresses LZ backward compressed (BLZ) data.</p><p> 55The expanded data overwrites the input buffer and is output. For this reason, the size of the input buffer must be allocated to be the same as the output size. The output size (in bytes) can be found using the following. 56 </p><p><pre> 57 nn::fs::FileReader reader(PATH_TO_BLZ_ARCHIVE_FILE); 58 u32 inSize = reader.GetSize(); 59 reader.Seek(-4, nn::fs::POSITION_BASE_END); 60 u32 outSize; 61 reader.Read(&outSize, 4); 62 outSize += inSize; 63</pre></p></div> 64<h2>Revision History</h2> 65 <div class="section"> 66 <dl class="history"> 67 <dt>2011/06/02</dt> 68<dd>Initial version.<br /> 69 </dd> 70 </dl> 71 </div> 72 <hr><p>CONFIDENTIAL</p></body> 73</html>