#include <crc32.hpp>
Inheritance diagram for CRC32:
Public Member Functions | |
CRC32 () | |
Default constructor. | |
wxUint32 | getUint32Value () const |
Returns the CRC32 value. | |
wxString | getValue (const bool hexInUpperCase=false) const |
Returns the CRC32 value in a string. | |
void | reset () |
Resets the CRC32 to initial value. | |
void | update (const wxByte *buf, unsigned int len) |
Updates the CRC32 with specified array of bytes. | |
Protected Attributes | |
wxUint32 | crc32 |
The current CRC32 value. | |
Static Protected Attributes | |
const wxUint32 | crc_table [256] |
Table used to compute the CRC32 value. |
This class is writen with the code found in cksfv and zlib code.
Using this class in very simple:<BR> Use the update method to provide to the class the bytes for computing the checksum.
The CRC-32 checksum value can be gotten by the getValue method which puts the CRC32 checksum value in a unsigned 32 bits integer.
The CRC32 checksum computing can be reseted by the reset method.
Definition at line 60 of file crc32.hpp.
|
Default constructor.
Definition at line 109 of file crc32.cpp. References reset(). |
|
Returns the CRC32 value.
Definition at line 129 of file crc32.cpp. References crc32. Referenced by getValue(). |
|
Returns the CRC32 value in a string.
Implements Checksum. Definition at line 143 of file crc32.cpp. References getUint32Value(), and getValue(). Referenced by getValue(). |
|
Resets the CRC32 to initial value.
Implements Checksum. Definition at line 119 of file crc32.cpp. References crc32. Referenced by CRC32(). |
|
Updates the CRC32 with specified array of bytes.
Implements Checksum. Definition at line 159 of file crc32.cpp. References crc32, crc_table, and update(). Referenced by update(). |
|
The current CRC32 value.
Definition at line 67 of file crc32.hpp. Referenced by getUint32Value(), reset(), and update(). |
|
Table used to compute the CRC32 value.
Definition at line 48 of file crc32.cpp. Referenced by update(). |