Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/compress_8c.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: examples/PIPS/openclibz/src/compress.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>examples/PIPS/openclibz/src/compress.c File Reference</h1>
<p><a href="compress_8c_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd2d2c635ad27877b037d99b59ae2f1f"></a><!-- doxytag: member="compress.c::GzCompress" ref="acd2d2c635ad27877b037d99b59ae2f1f" args="(FILE *in, gzFile out)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>GzCompress</b> (FILE *in, gzFile out)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7725c905f3c378b659bf92ea2afb348b"></a><!-- doxytag: member="compress.c::FileCompress" ref="a7725c905f3c378b659bf92ea2afb348b" args="(char *file, char *mode)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>FileCompress</b> (char *file, char *mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="compress_8c.html#ac31e38792dbbfc5e26d9dbccb33efe3d">StringCompress</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>In this file I use libz api's to compress file and string Here i make use of libz api which can write to compressed files. Also there is memory mapping techniqe used though mmap api of libc which can be used if buffer is large enogh. </p>

<p>Definition in file <a class="el" href="compress_8c_source.html">compress.c</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ac31e38792dbbfc5e26d9dbccb33efe3d"></a><!-- doxytag: member="compress.c::StringCompress" ref="ac31e38792dbbfc5e26d9dbccb33efe3d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StringCompress </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compresses the string This function compresses the string entered by the user and shows the compressed string and then decompressess it Actually This function will show the content on the screen and demonstarte how strings can be compressed </p>

<p>Definition at line <a class="el" href="compress_8c_source.html#l00174">174</a> of file <a class="el" href="compress_8c_source.html">compress.c</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>