Inkscape
Vector Graphics Editor
|
#include <ziptool.h>
Public Member Functions | |
Crc32 () | |
Constructor. | |
virtual | ~Crc32 () |
Destructor. | |
void | reset () |
Reset CRC-32 checksum to initial value. | |
void | update (unsigned char b) |
void | update (char *str) |
void | update (const std::vector< unsigned char > &buf) |
unsigned long | getValue () |
Returns current checksum value. | |
Private Attributes | |
unsigned long | value |
Crc32::Crc32 | ( | ) |
|
virtualdefault |
Destructor.
unsigned long Crc32::getValue | ( | ) |
Returns current checksum value.
Definition at line 195 of file ziptool.cpp.
References value.
Referenced by ZipEntry::finish(), GzipFile::read(), ZipFile::readFileData(), and GzipFile::write().
void Crc32::reset | ( | ) |
Reset CRC-32 checksum to initial value.
Definition at line 158 of file ziptool.cpp.
References makeCrcTable(), and value.
Referenced by Crc32().
void Crc32::update | ( | char * | str | ) |
Definition at line 174 of file ziptool.cpp.
References update().
void Crc32::update | ( | const std::vector< unsigned char > & | buf | ) |
Definition at line 181 of file ziptool.cpp.
void Crc32::update | ( | unsigned char | b | ) |
Definition at line 164 of file ziptool.cpp.
References c, crc_table, and value.
Referenced by ZipEntry::finish(), GzipFile::read(), ZipFile::readFileData(), update(), update(), and GzipFile::write().
|
private |
Definition at line 99 of file ziptool.h.
Referenced by getValue(), reset(), and update().