CRC32 Cyclic redundancy check implementation class. More...
#include <stx-cbtreedb.h>
Public Member Functions | |
CRC32 () | |
Initialize new CRC object. | |
void | clear () |
Clear current CRC object. | |
CRC32 & | update (const unsigned char *input, uint32_t length) |
Update this CRC value with new data. | |
CRC32 & | update (const void *input, uint32_t length) |
Update this CRC value with new data. | |
uint32_t | final () const |
Return final CRC value of this object. | |
Static Public Member Functions | |
static uint32_t | digest (const void *input, uint32_t length) |
Calculate CRC32 digest of bytes in the given range. | |
static uint32_t | digest (const std::string &input) |
Calculate CRC32 digest of a string. | |
Private Attributes | |
uint32_t | m_crc |
CRC intermediate value. |
CRC32 Cyclic redundancy check implementation class.
Copied from the Botan-1.6.4 cryptography library.
Definition at line 314 of file stx-cbtreedb.h.
stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::CRC32 | ( | ) | [inline] |
Initialize new CRC object.
Definition at line 322 of file stx-cbtreedb.h.
void stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::clear | ( | ) | [inline] |
Clear current CRC object.
Definition at line 328 of file stx-cbtreedb.h.
static uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::digest | ( | const std::string & | input | ) | [inline, static] |
Calculate CRC32 digest of a string.
Definition at line 441 of file stx-cbtreedb.h.
static uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::digest | ( | const void * | input, | |
uint32_t | length | |||
) | [inline, static] |
Calculate CRC32 digest of bytes in the given range.
Definition at line 435 of file stx-cbtreedb.h.
uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::final | ( | ) | const [inline] |
Return final CRC value of this object.
Definition at line 429 of file stx-cbtreedb.h.
CRC32& stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::update | ( | const void * | input, | |
uint32_t | length | |||
) | [inline] |
Update this CRC value with new data.
Definition at line 423 of file stx-cbtreedb.h.
CRC32& stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::update | ( | const unsigned char * | input, | |
uint32_t | length | |||
) | [inline] |
Update this CRC value with new data.
Definition at line 334 of file stx-cbtreedb.h.
uint32_t stx::CBTreeDB< _Key, _Compare, _BTreePageSize, _AppVersionId >::CRC32::m_crc [private] |
CRC intermediate value.
Definition at line 318 of file stx-cbtreedb.h.