source: Vago/Libs/quazip-0.7.2/doc/html/classQuaAdler32.html@ 1058

Last change on this file since 1058 was 1050, checked in by s10k, 8 years ago
File size: 9.6 KB
RevLine 
[1050]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: QuaAdler32 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&#160;<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&#160;Page</span></a></li>
26 <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
35 <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
36 <li><a href="functions.html"><span>Class&#160;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">QuaAdler32 Class Reference</div> </div>
45</div>
46<div class="contents">
47<!-- doxytag: class="QuaAdler32" --><!-- doxytag: inherits="QuaChecksum32" -->
48<p>Adler32 checksum.
49 <a href="classQuaAdler32.html#details">More...</a></p>
50
51<p><code>#include &lt;<a class="el" href="quaadler32_8h_source.html">quazip/quaadler32.h</a>&gt;</code></p>
52<div class="dynheader">
53Inheritance diagram for QuaAdler32:</div>
54<div class="dyncontent">
55<div class="center"><img src="classQuaAdler32__inherit__graph.png" border="0" usemap="#QuaAdler32_inherit__map" alt="Inheritance graph"/></div>
56<map name="QuaAdler32_inherit__map" id="QuaAdler32_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">
61Collaboration diagram for QuaAdler32:</div>
62<div class="dyncontent">
63<div class="center"><img src="classQuaAdler32__coll__graph.png" border="0" usemap="#QuaAdler32_coll__map" alt="Collaboration graph"/></div>
64<map name="QuaAdler32_coll__map" id="QuaAdler32_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="classQuaAdler32-members.html">List of all members.</a></p>
70<table class="memberdecls">
71<tr><td colspan="2"><h2><a name="pub-methods"></a>
72Public Member Functions</h2></td></tr>
73<tr><td class="memItemLeft" align="right" valign="top">quint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaAdler32.html#a350e84fd000ebfa3c33503336a7b21bb">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> &amp;data)</td></tr>
74<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the checksum for data. <a href="#a350e84fd000ebfa3c33503336a7b21bb"></a><br/></td></tr>
75<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2fe6ac9eb289bafda6a9fd20e6472ab5"></a><!-- doxytag: member="QuaAdler32::reset" ref="a2fe6ac9eb289bafda6a9fd20e6472ab5" args="()" -->
76void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaAdler32.html#a2fe6ac9eb289bafda6a9fd20e6472ab5">reset</a> ()</td></tr>
77<tr><td class="mdescLeft">&#160;</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&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaAdler32.html#aba24f7b16aa0cdc26f81a9ad687fc653">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> &amp;buf)</td></tr>
79<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the calculated checksum for the stream. <a href="#aba24f7b16aa0cdc26f81a9ad687fc653"></a><br/></td></tr>
80<tr><td class="memItemLeft" align="right" valign="top">quint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQuaAdler32.html#a2022e1db95c23cef220b335e44d74fb1">value</a> ()</td></tr>
81<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Value of the checksum calculated for the stream passed throw <a class="el" href="classQuaAdler32.html#aba24f7b16aa0cdc26f81a9ad687fc653" title="Updates the calculated checksum for the stream.">update()</a>. <a href="#a2022e1db95c23cef220b335e44d74fb1"></a><br/></td></tr>
82</table>
83<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
84<div class="textblock"><p>Adler32 checksum. </p>
85<p>This class wrappers the adler32 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="a350e84fd000ebfa3c33503336a7b21bb"></a><!-- doxytag: member="QuaAdler32::calculate" ref="a350e84fd000ebfa3c33503336a7b21bb" args="(const QByteArray &amp;data)" -->
88<div class="memitem">
89<div class="memproto">
90 <table class="memname">
91 <tr>
92 <td class="memname">quint32 QuaAdler32::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> &amp;&#160;</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="classQuaAdler32.html#a2022e1db95c23cef220b335e44d74fb1" 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="aba24f7b16aa0cdc26f81a9ad687fc653"></a><!-- doxytag: member="QuaAdler32::update" ref="aba24f7b16aa0cdc26f81a9ad687fc653" args="(const QByteArray &amp;buf)" -->
114<div class="memitem">
115<div class="memproto">
116 <table class="memname">
117 <tr>
118 <td class="memname">void QuaAdler32::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> &amp;&#160;</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="a2022e1db95c23cef220b335e44d74fb1"></a><!-- doxytag: member="QuaAdler32::value" ref="a2022e1db95c23cef220b335e44d74fb1" args="()" -->
138<div class="memitem">
139<div class="memproto">
140 <table class="memname">
141 <tr>
142 <td class="memname">quint32 QuaAdler32::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="classQuaAdler32.html#aba24f7b16aa0cdc26f81a9ad687fc653" 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="quaadler32_8h_source.html">quaadler32.h</a></li>
160<li>quazip/quaadler32.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&#160;
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>
Note: See TracBrowser for help on using the repository browser.