[1096] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml">
|
---|
| 3 | <head>
|
---|
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
---|
| 5 | <title>QuaZIP: QuaCrc32 Class Reference</title>
|
---|
| 6 | <link href="tabs.css" rel="stylesheet" type="text/css"/>
|
---|
| 7 | <link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
---|
| 8 | </head>
|
---|
| 9 | <body>
|
---|
| 10 | <!-- Generated by Doxygen 1.7.4 -->
|
---|
| 11 | <div id="top">
|
---|
| 12 | <div id="titlearea">
|
---|
| 13 | <table cellspacing="0" cellpadding="0">
|
---|
| 14 | <tbody>
|
---|
| 15 | <tr style="height: 56px;">
|
---|
| 16 | <td style="padding-left: 0.5em;">
|
---|
| 17 | <div id="projectname">QuaZIP <span id="projectnumber">quazip-0-7-2</span></div>
|
---|
| 18 | </td>
|
---|
| 19 | </tr>
|
---|
| 20 | </tbody>
|
---|
| 21 | </table>
|
---|
| 22 | </div>
|
---|
| 23 | <div id="navrow1" class="tabs">
|
---|
| 24 | <ul class="tablist">
|
---|
| 25 | <li><a href="index.html"><span>Main Page</span></a></li>
|
---|
| 26 | <li><a href="pages.html"><span>Related Pages</span></a></li>
|
---|
| 27 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
---|
| 28 | <li><a href="files.html"><span>Files</span></a></li>
|
---|
| 29 | <li><a href="dirs.html"><span>Directories</span></a></li>
|
---|
| 30 | </ul>
|
---|
| 31 | </div>
|
---|
| 32 | <div id="navrow2" class="tabs2">
|
---|
| 33 | <ul class="tablist">
|
---|
| 34 | <li><a href="annotated.html"><span>Class List</span></a></li>
|
---|
| 35 | <li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
---|
| 36 | <li><a href="functions.html"><span>Class Members</span></a></li>
|
---|
| 37 | </ul>
|
---|
| 38 | </div>
|
---|
| 39 | </div>
|
---|
| 40 | <div class="header">
|
---|
| 41 | <div class="summary">
|
---|
| 42 | <a href="#pub-methods">Public Member Functions</a> </div>
|
---|
| 43 | <div class="headertitle">
|
---|
| 44 | <div class="title">QuaCrc32 Class Reference</div> </div>
|
---|
| 45 | </div>
|
---|
| 46 | <div class="contents">
|
---|
| 47 | <!-- doxytag: class="QuaCrc32" --><!-- doxytag: inherits="QuaChecksum32" -->
|
---|
| 48 | <p>CRC32 checksum.
|
---|
| 49 | <a href="classQuaCrc32.html#details">More...</a></p>
|
---|
| 50 |
|
---|
| 51 | <p><code>#include <<a class="el" href="quacrc32_8h_source.html">quazip/quacrc32.h</a>></code></p>
|
---|
| 52 | <div class="dynheader">
|
---|
| 53 | Inheritance diagram for QuaCrc32:</div>
|
---|
| 54 | <div class="dyncontent">
|
---|
| 55 | <div class="center"><img src="classQuaCrc32__inherit__graph.png" border="0" usemap="#QuaCrc32_inherit__map" alt="Inheritance graph"/></div>
|
---|
| 56 | <map name="QuaCrc32_inherit__map" id="QuaCrc32_inherit__map">
|
---|
| 57 | <area shape="rect" id="node2" href="classQuaChecksum32.html" title="Checksum interface." alt="" coords="5,5,128,32"/>
|
---|
| 58 | </map>
|
---|
| 59 | <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
---|
| 60 | <div class="dynheader">
|
---|
| 61 | Collaboration diagram for QuaCrc32:</div>
|
---|
| 62 | <div class="dyncontent">
|
---|
| 63 | <div class="center"><img src="classQuaCrc32__coll__graph.png" border="0" usemap="#QuaCrc32_coll__map" alt="Collaboration graph"/></div>
|
---|
| 64 | <map name="QuaCrc32_coll__map" id="QuaCrc32_coll__map">
|
---|
| 65 | <area shape="rect" id="node2" href="classQuaChecksum32.html" title="Checksum interface." alt="" coords="5,5,128,32"/>
|
---|
| 66 | </map>
|
---|
| 67 | <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
---|
| 68 |
|
---|
| 69 | <p><a href="classQuaCrc32-members.html">List of all members.</a></p>
|
---|
| 70 | <table class="memberdecls">
|
---|
| 71 | <tr><td colspan="2"><h2><a name="pub-methods"></a>
|
---|
| 72 | Public Member Functions</h2></td></tr>
|
---|
| 73 | <tr><td class="memItemLeft" align="right" valign="top">quint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaCrc32.html#aaf6fdf6e36e55c97bf9eab6ec65ecb9e">calculate</a> (const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html">QByteArray</a> &data)</td></tr>
|
---|
| 74 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates the checksum for data. <a href="#aaf6fdf6e36e55c97bf9eab6ec65ecb9e"></a><br/></td></tr>
|
---|
| 75 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3fe7ce6cb73512c963ffaabfbbc66363"></a><!-- doxytag: member="QuaCrc32::reset" ref="a3fe7ce6cb73512c963ffaabfbbc66363" args="()" -->
|
---|
| 76 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaCrc32.html#a3fe7ce6cb73512c963ffaabfbbc66363">reset</a> ()</td></tr>
|
---|
| 77 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Resets the calculation on a checksun for a stream. <br/></td></tr>
|
---|
| 78 | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaCrc32.html#a5015d80e04afe6e6d094155b7e99888e">update</a> (const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html">QByteArray</a> &buf)</td></tr>
|
---|
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Updates the calculated checksum for the stream. <a href="#a5015d80e04afe6e6d094155b7e99888e"></a><br/></td></tr>
|
---|
| 80 | <tr><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>
|
---|
| 81 | <tr><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"></a><br/></td></tr>
|
---|
| 82 | </table>
|
---|
| 83 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
---|
| 84 | <div class="textblock"><p>CRC32 checksum. </p>
|
---|
| 85 | <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>
|
---|
| 86 | </div><hr/><h2>Member Function Documentation</h2>
|
---|
| 87 | <a class="anchor" id="aaf6fdf6e36e55c97bf9eab6ec65ecb9e"></a><!-- doxytag: member="QuaCrc32::calculate" ref="aaf6fdf6e36e55c97bf9eab6ec65ecb9e" args="(const QByteArray &data)" -->
|
---|
| 88 | <div class="memitem">
|
---|
| 89 | <div class="memproto">
|
---|
| 90 | <table class="memname">
|
---|
| 91 | <tr>
|
---|
| 92 | <td class="memname">quint32 QuaCrc32::calculate </td>
|
---|
| 93 | <td>(</td>
|
---|
| 94 | <td class="paramtype">const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html">QByteArray</a> & </td>
|
---|
| 95 | <td class="paramname"><em>data</em></td><td>)</td>
|
---|
| 96 | <td><code> [virtual]</code></td>
|
---|
| 97 | </tr>
|
---|
| 98 | </table>
|
---|
| 99 | </div>
|
---|
| 100 | <div class="memdoc">
|
---|
| 101 |
|
---|
| 102 | <p>Calculates the checksum for data. </p>
|
---|
| 103 | <p><em>data</em> source data </p>
|
---|
| 104 | <dl class="return"><dt><b>Returns:</b></dt><dd>data checksum</dd></dl>
|
---|
| 105 | <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>
|
---|
| 106 |
|
---|
| 107 | <p>Implements <a class="el" href="classQuaChecksum32.html#a14d800fcfd55b2ae11ef07d3924fe0b1">QuaChecksum32</a>.</p>
|
---|
| 108 |
|
---|
| 109 | <p>References <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html#data">QByteArray::data()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html#size">QByteArray::size()</a>.</p>
|
---|
| 110 |
|
---|
| 111 | </div>
|
---|
| 112 | </div>
|
---|
| 113 | <a class="anchor" id="a5015d80e04afe6e6d094155b7e99888e"></a><!-- doxytag: member="QuaCrc32::update" ref="a5015d80e04afe6e6d094155b7e99888e" args="(const QByteArray &buf)" -->
|
---|
| 114 | <div class="memitem">
|
---|
| 115 | <div class="memproto">
|
---|
| 116 | <table class="memname">
|
---|
| 117 | <tr>
|
---|
| 118 | <td class="memname">void QuaCrc32::update </td>
|
---|
| 119 | <td>(</td>
|
---|
| 120 | <td class="paramtype">const <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html">QByteArray</a> & </td>
|
---|
| 121 | <td class="paramname"><em>buf</em></td><td>)</td>
|
---|
| 122 | <td><code> [virtual]</code></td>
|
---|
| 123 | </tr>
|
---|
| 124 | </table>
|
---|
| 125 | </div>
|
---|
| 126 | <div class="memdoc">
|
---|
| 127 |
|
---|
| 128 | <p>Updates the calculated checksum for the stream. </p>
|
---|
| 129 | <p><em>buf</em> next portion of data from the stream </p>
|
---|
| 130 |
|
---|
| 131 | <p>Implements <a class="el" href="classQuaChecksum32.html#a63a6ed3171f9243214d307da67557f7e">QuaChecksum32</a>.</p>
|
---|
| 132 |
|
---|
| 133 | <p>References <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html#data">QByteArray::data()</a>, and <a class="elRef" doxygen="qtcore.tags:http://doc.qt.io/qt-5//" href="http://doc.qt.io/qt-5/qbytearray.html#size">QByteArray::size()</a>.</p>
|
---|
| 134 |
|
---|
| 135 | </div>
|
---|
| 136 | </div>
|
---|
| 137 | <a class="anchor" id="a957ce46a53862f75c89d6a3ac4f73389"></a><!-- doxytag: member="QuaCrc32::value" ref="a957ce46a53862f75c89d6a3ac4f73389" args="()" -->
|
---|
| 138 | <div class="memitem">
|
---|
| 139 | <div class="memproto">
|
---|
| 140 | <table class="memname">
|
---|
| 141 | <tr>
|
---|
| 142 | <td class="memname">quint32 QuaCrc32::value </td>
|
---|
| 143 | <td>(</td>
|
---|
| 144 | <td class="paramname"></td><td>)</td>
|
---|
| 145 | <td><code> [virtual]</code></td>
|
---|
| 146 | </tr>
|
---|
| 147 | </table>
|
---|
| 148 | </div>
|
---|
| 149 | <div class="memdoc">
|
---|
| 150 |
|
---|
| 151 | <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>
|
---|
| 152 | <dl class="return"><dt><b>Returns:</b></dt><dd>checksum </dd></dl>
|
---|
| 153 |
|
---|
| 154 | <p>Implements <a class="el" href="classQuaChecksum32.html#afd836e7534194fce08356be6a8336da7">QuaChecksum32</a>.</p>
|
---|
| 155 |
|
---|
| 156 | </div>
|
---|
| 157 | </div>
|
---|
| 158 | <hr/>The documentation for this class was generated from the following files:<ul>
|
---|
| 159 | <li>quazip/<a class="el" href="quacrc32_8h_source.html">quacrc32.h</a></li>
|
---|
| 160 | <li>quazip/quacrc32.cpp</li>
|
---|
| 161 | </ul>
|
---|
| 162 | </div>
|
---|
| 163 | <hr class="footer"/><address class="footer"><small>Generated on Sun Apr 3 2016 08:26:25 for QuaZIP by 
|
---|
| 164 | <a href="http://www.doxygen.org/index.html">
|
---|
| 165 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
|
---|
| 166 | </body>
|
---|
| 167 | </html>
|
---|