thin-provisioning-tools/checksum.h

23 lines
372 B
C
Raw Normal View History

2011-09-12 16:19:42 +05:30
#ifndef CHECKSUM_H
#define CHECKSUM_H
#include <stdint.h>
//----------------------------------------------------------------
namespace base {
class crc32 {
crc32(uint32_t seed);
void append(void const *buffer, unsigned len);
uint32_t get_sum() const;
private:
uint32_t sum_;
};
}
//----------------------------------------------------------------
#endif