#include <Adler32.hpp>
Definition at line 44 of file Adler32.hpp.
Public Member Functions | |
| Adler32 () | |
| Default constructor. | |
| void | reset () |
| Resets the Adler32 to initial value. | |
| unsigned int | getValue () const |
| Returns the Adler32 value. | |
| void | update (const std::string &str) |
| Updates the Adler32 with specified array of bytes. | |
| void | update (const std::auto_ptr< std::string > &str) |
| Updates the Adler32 with specified array of bytes. | |
| void | update (const char *buf, unsigned int len) |
| Updates the Adler32 with specified array of bytes. | |
Protected Attributes | |
| unsigned int | a |
| The current sum. | |
| unsigned int | b |
| The current a sum. | |
Static Protected Attributes | |
| const unsigned int | mod = 65521 |
| Largest prime less that 2^16. | |
|
|
Default constructor.
Definition at line 60 of file Adler32.hpp. |
|
|
Returns the Adler32 value.
Definition at line 79 of file Adler32.hpp. Referenced by PNG::alder(). |
|
|
Resets the Adler32 to initial value.
Definition at line 69 of file Adler32.hpp. |
|
||||||||||||
|
Updates the Adler32 with specified array of bytes.
|
|
|
Updates the Adler32 with specified array of bytes.
Definition at line 99 of file Adler32.hpp. |
|
|
Updates the Adler32 with specified array of bytes.
Definition at line 89 of file Adler32.hpp. Referenced by PNG::alder(). |
|
|
The current sum.
Definition at line 51 of file Adler32.hpp. |
|
|
The current a sum.
Definition at line 54 of file Adler32.hpp. |
|
|
Largest prime less that 2^16.
Definition at line 48 of file Adler32.hpp. |
1.3.9.1