<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>QuaZIP: QuaCrc32 Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">QuaZIP  <span id="projectnumber">quazip-0-7-6</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); </script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classQuaCrc32-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">QuaCrc32 Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>CRC32 checksum. <a href="classQuaCrc32.html#details">More...</a></p> <p><code>#include <<a class="el" href="quacrc32_8h_source.html">quazip/quacrc32.h</a>></code></p> <div class="dynheader"> Inheritance diagram for QuaCrc32:</div> <div class="dyncontent"> <div class="center"><img src="classQuaCrc32__inherit__graph.png" border="0" usemap="#QuaCrc32_inherit__map" alt="Inheritance graph"/></div> <map name="QuaCrc32_inherit__map" id="QuaCrc32_inherit__map"> <area shape="rect" id="node2" href="classQuaChecksum32.html" title="Checksum interface. " alt="" coords="5,5,157,32"/> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for QuaCrc32:</div> <div class="dyncontent"> <div class="center"><img src="classQuaCrc32__coll__graph.png" border="0" usemap="#QuaCrc32_coll__map" alt="Collaboration graph"/></div> <map name="QuaCrc32_coll__map" id="QuaCrc32_coll__map"> <area shape="rect" id="node2" href="classQuaChecksum32.html" title="Checksum interface. " alt="" coords="5,5,157,32"/> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:aaf6fdf6e36e55c97bf9eab6ec65ecb9e"><td class="memItemLeft" align="right" valign="top">quint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaCrc32.html#aaf6fdf6e36e55c97bf9eab6ec65ecb9e">calculate</a> (const QByteArray &data)</td></tr> <tr class="memdesc:aaf6fdf6e36e55c97bf9eab6ec65ecb9e"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the checksum for data. <a href="#aaf6fdf6e36e55c97bf9eab6ec65ecb9e">More...</a><br /></td></tr> <tr class="separator:aaf6fdf6e36e55c97bf9eab6ec65ecb9e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3fe7ce6cb73512c963ffaabfbbc66363"><td class="memItemLeft" align="right" valign="top"><a id="a3fe7ce6cb73512c963ffaabfbbc66363"></a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaCrc32.html#a3fe7ce6cb73512c963ffaabfbbc66363">reset</a> ()</td></tr> <tr class="memdesc:a3fe7ce6cb73512c963ffaabfbbc66363"><td class="mdescLeft"> </td><td class="mdescRight">Resets the calculation on a checksun for a stream. <br /></td></tr> <tr class="separator:a3fe7ce6cb73512c963ffaabfbbc66363"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5015d80e04afe6e6d094155b7e99888e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaCrc32.html#a5015d80e04afe6e6d094155b7e99888e">update</a> (const QByteArray &buf)</td></tr> <tr class="memdesc:a5015d80e04afe6e6d094155b7e99888e"><td class="mdescLeft"> </td><td class="mdescRight">Updates the calculated checksum for the stream. <a href="#a5015d80e04afe6e6d094155b7e99888e">More...</a><br /></td></tr> <tr class="separator:a5015d80e04afe6e6d094155b7e99888e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a957ce46a53862f75c89d6a3ac4f73389"><td class="memItemLeft" align="right" valign="top">quint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaCrc32.html#a957ce46a53862f75c89d6a3ac4f73389">value</a> ()</td></tr> <tr class="memdesc:a957ce46a53862f75c89d6a3ac4f73389"><td class="mdescLeft"> </td><td class="mdescRight">Value of the checksum calculated for the stream passed throw <a class="el" href="classQuaCrc32.html#a5015d80e04afe6e6d094155b7e99888e" title="Updates the calculated checksum for the stream. ">update()</a>. <a href="#a957ce46a53862f75c89d6a3ac4f73389">More...</a><br /></td></tr> <tr class="separator:a957ce46a53862f75c89d6a3ac4f73389"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>CRC32 checksum. </p> <p>This class wrappers the crc32 function with the <a class="el" href="classQuaChecksum32.html" title="Checksum interface. ">QuaChecksum32</a> interface. See <a class="el" href="classQuaChecksum32.html" title="Checksum interface. ">QuaChecksum32</a> for more info. </p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="aaf6fdf6e36e55c97bf9eab6ec65ecb9e"></a> <h2 class="memtitle"><span class="permalink"><a href="#aaf6fdf6e36e55c97bf9eab6ec65ecb9e">◆ </a></span>calculate()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">quint32 QuaCrc32::calculate </td> <td>(</td> <td class="paramtype">const QByteArray & </td> <td class="paramname"><em>data</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Calculates the checksum for data. </p> <p><em>data</em> source data </p><dl class="section return"><dt>Returns</dt><dd>data checksum</dd></dl> <p>This function has no efect on the value returned by <a class="el" href="classQuaCrc32.html#a957ce46a53862f75c89d6a3ac4f73389" title="Value of the checksum calculated for the stream passed throw update(). ">value()</a>. </p> <p>Implements <a class="el" href="classQuaChecksum32.html#a14d800fcfd55b2ae11ef07d3924fe0b1">QuaChecksum32</a>.</p> </div> </div> <a id="a5015d80e04afe6e6d094155b7e99888e"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5015d80e04afe6e6d094155b7e99888e">◆ </a></span>update()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void QuaCrc32::update </td> <td>(</td> <td class="paramtype">const QByteArray & </td> <td class="paramname"><em>buf</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Updates the calculated checksum for the stream. </p> <p><em>buf</em> next portion of data from the stream </p> <p>Implements <a class="el" href="classQuaChecksum32.html#a63a6ed3171f9243214d307da67557f7e">QuaChecksum32</a>.</p> </div> </div> <a id="a957ce46a53862f75c89d6a3ac4f73389"></a> <h2 class="memtitle"><span class="permalink"><a href="#a957ce46a53862f75c89d6a3ac4f73389">◆ </a></span>value()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">quint32 QuaCrc32::value </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Value of the checksum calculated for the stream passed throw <a class="el" href="classQuaCrc32.html#a5015d80e04afe6e6d094155b7e99888e" title="Updates the calculated checksum for the stream. ">update()</a>. </p> <dl class="section return"><dt>Returns</dt><dd>checksum </dd></dl> <p>Implements <a class="el" href="classQuaChecksum32.html#afd836e7534194fce08356be6a8336da7">QuaChecksum32</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>quazip/<a class="el" href="quacrc32_8h_source.html">quacrc32.h</a></li> <li>quazip/quacrc32.cpp</li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Aug 15 2018 04:31:24 for QuaZIP by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.13 </small></address> </body> </html>