Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Computes the a CRC32 checksum of a given buffer or VirtualFile. More...
#include <CRC32CheckSum.hpp>
Public Member Functions | |
| CRC32CheckSum () | |
| Constructor. | |
| unsigned int | compute (const void *buf, int length) |
| unsigned int | compute (VirtualFile *stream) |
| void | startCRC32 () |
| unsigned int | finalizeCRC32 () |
| void | continueCRC32 (unsigned char *ptr, int length) |
Protected Member Functions | |
| void | crc32_init () |
| unsigned int | reflect (unsigned int val, char ch) |
Protected Attributes | |
| unsigned int | mCRC32 |
| unsigned int | crc32_table [256] |
Computes the a CRC32 checksum of a given buffer or VirtualFile.
Definition at line 42 of file CRC32CheckSum.hpp.
| vl::CRC32CheckSum::CRC32CheckSum | ( | ) | [inline] |
| unsigned int vl::CRC32CheckSum::compute | ( | const void * | buf, |
| int | length | ||
| ) | [inline] |
Definition at line 51 of file CRC32CheckSum.hpp.
References crc32_table, and mCRC32.
Referenced by vl::VirtualFile::crc32(), and vl::ZippedFile::extract().
| unsigned int vl::CRC32CheckSum::compute | ( | VirtualFile * | stream | ) | [inline] |
Definition at line 60 of file CRC32CheckSum.hpp.
References continueCRC32(), finalizeCRC32(), vl::length(), vl::VirtualFile::read(), and startCRC32().
| void vl::CRC32CheckSum::startCRC32 | ( | ) | [inline] |
| unsigned int vl::CRC32CheckSum::finalizeCRC32 | ( | ) | [inline] |
| void vl::CRC32CheckSum::continueCRC32 | ( | unsigned char * | ptr, |
| int | length | ||
| ) | [inline] |
Definition at line 75 of file CRC32CheckSum.hpp.
References crc32_table, and mCRC32.
Referenced by compute().
| void vl::CRC32CheckSum::crc32_init | ( | ) | [inline, protected] |
Definition at line 82 of file CRC32CheckSum.hpp.
References crc32_table, mCRC32, and reflect().
Referenced by CRC32CheckSum().
| unsigned int vl::CRC32CheckSum::reflect | ( | unsigned int | val, |
| char | ch | ||
| ) | [inline, protected] |
Definition at line 95 of file CRC32CheckSum.hpp.
Referenced by crc32_init().
unsigned int vl::CRC32CheckSum::mCRC32 [protected] |
Definition at line 108 of file CRC32CheckSum.hpp.
Referenced by compute(), continueCRC32(), crc32_init(), finalizeCRC32(), and startCRC32().
unsigned int vl::CRC32CheckSum::crc32_table[256] [protected] |
Definition at line 109 of file CRC32CheckSum.hpp.
Referenced by compute(), continueCRC32(), and crc32_init().