1 |
\section{QuaAdler32 Class Reference} |
2 |
\label{classQuaAdler32}\index{QuaAdler32@{QuaAdler32}} |
3 |
|
4 |
|
5 |
Adler32 checksum. |
6 |
|
7 |
|
8 |
|
9 |
|
10 |
{\ttfamily \#include $<$quazip/quaadler32.h$>$} |
11 |
|
12 |
|
13 |
|
14 |
Inheritance diagram for QuaAdler32: |
15 |
\nopagebreak |
16 |
\begin{figure}[H] |
17 |
\begin{center} |
18 |
\leavevmode |
19 |
\includegraphics[width=136pt]{classQuaAdler32__inherit__graph} |
20 |
\end{center} |
21 |
\end{figure} |
22 |
|
23 |
|
24 |
Collaboration diagram for QuaAdler32: |
25 |
\nopagebreak |
26 |
\begin{figure}[H] |
27 |
\begin{center} |
28 |
\leavevmode |
29 |
\includegraphics[width=136pt]{classQuaAdler32__coll__graph} |
30 |
\end{center} |
31 |
\end{figure} |
32 |
\subsection*{Public Member Functions} |
33 |
\begin{DoxyCompactItemize} |
34 |
\item |
35 |
quint32 {\bf calculate} (const {\bf QByteArray} \&data) |
36 |
\begin{DoxyCompactList}\small\item\em Calculates the checksum for data. \end{DoxyCompactList}\item |
37 |
void {\bf reset} ()\label{classQuaAdler32_a2fe6ac9eb289bafda6a9fd20e6472ab5} |
38 |
|
39 |
\begin{DoxyCompactList}\small\item\em Resets the calculation on a checksun for a stream. \end{DoxyCompactList}\item |
40 |
void {\bf update} (const {\bf QByteArray} \&buf) |
41 |
\begin{DoxyCompactList}\small\item\em Updates the calculated checksum for the stream. \end{DoxyCompactList}\item |
42 |
quint32 {\bf value} () |
43 |
\begin{DoxyCompactList}\small\item\em Value of the checksum calculated for the stream passed throw \doxyref{update()}{p.}{classQuaAdler32_aba24f7b16aa0cdc26f81a9ad687fc653}. \end{DoxyCompactList}\end{DoxyCompactItemize} |
44 |
|
45 |
|
46 |
\subsection{Detailed Description} |
47 |
Adler32 checksum. |
48 |
|
49 |
This class wrappers the adler32 function with the \doxyref{QuaChecksum32}{p.}{classQuaChecksum32} interface. See \doxyref{QuaChecksum32}{p.}{classQuaChecksum32} for more info. |
50 |
|
51 |
\subsection{Member Function Documentation} |
52 |
\index{QuaAdler32@{QuaAdler32}!calculate@{calculate}} |
53 |
\index{calculate@{calculate}!QuaAdler32@{QuaAdler32}} |
54 |
\subsubsection[{calculate}]{\setlength{\rightskip}{0pt plus 5cm}quint32 QuaAdler32::calculate ( |
55 |
\begin{DoxyParamCaption} |
56 |
\item[{const {\bf QByteArray} \&}]{data} |
57 |
\end{DoxyParamCaption} |
58 |
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classQuaAdler32_a350e84fd000ebfa3c33503336a7b21bb} |
59 |
|
60 |
|
61 |
Calculates the checksum for data. |
62 |
|
63 |
{\itshape data\/} source data \begin{DoxyReturn}{Returns} |
64 |
data checksum |
65 |
\end{DoxyReturn} |
66 |
This function has no efect on the value returned by \doxyref{value()}{p.}{classQuaAdler32_a2022e1db95c23cef220b335e44d74fb1}. |
67 |
|
68 |
Implements {\bf QuaChecksum32} \doxyref{}{p.}{classQuaChecksum32_a14d800fcfd55b2ae11ef07d3924fe0b1}. |
69 |
|
70 |
|
71 |
|
72 |
References QByteArray::data(), and QByteArray::size(). |
73 |
|
74 |
\index{QuaAdler32@{QuaAdler32}!update@{update}} |
75 |
\index{update@{update}!QuaAdler32@{QuaAdler32}} |
76 |
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}void QuaAdler32::update ( |
77 |
\begin{DoxyParamCaption} |
78 |
\item[{const {\bf QByteArray} \&}]{buf} |
79 |
\end{DoxyParamCaption} |
80 |
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classQuaAdler32_aba24f7b16aa0cdc26f81a9ad687fc653} |
81 |
|
82 |
|
83 |
Updates the calculated checksum for the stream. |
84 |
|
85 |
{\itshape buf\/} next portion of data from the stream |
86 |
|
87 |
Implements {\bf QuaChecksum32} \doxyref{}{p.}{classQuaChecksum32_a63a6ed3171f9243214d307da67557f7e}. |
88 |
|
89 |
|
90 |
|
91 |
References QByteArray::data(), and QByteArray::size(). |
92 |
|
93 |
\index{QuaAdler32@{QuaAdler32}!value@{value}} |
94 |
\index{value@{value}!QuaAdler32@{QuaAdler32}} |
95 |
\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}quint32 QuaAdler32::value ( |
96 |
\begin{DoxyParamCaption} |
97 |
{} |
98 |
\end{DoxyParamCaption} |
99 |
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classQuaAdler32_a2022e1db95c23cef220b335e44d74fb1} |
100 |
|
101 |
|
102 |
Value of the checksum calculated for the stream passed throw \doxyref{update()}{p.}{classQuaAdler32_aba24f7b16aa0cdc26f81a9ad687fc653}. |
103 |
|
104 |
\begin{DoxyReturn}{Returns} |
105 |
checksum |
106 |
\end{DoxyReturn} |
107 |
|
108 |
|
109 |
Implements {\bf QuaChecksum32} \doxyref{}{p.}{classQuaChecksum32_afd836e7534194fce08356be6a8336da7}. |
110 |
|
111 |
|
112 |
|
113 |
The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} |
114 |
\item |
115 |
quazip/quaadler32.h\item |
116 |
quazip/quaadler32.cpp\end{DoxyCompactItemize} |