equal
deleted
inserted
replaced
|
1 #ifndef CRC_HASH__H__ |
|
2 #define CRC_HASH__H__ |
|
3 |
|
4 #include "misc/crc32.h" |
|
5 |
|
6 class crc_hash |
|
7 { |
|
8 public: |
|
9 unsigned operator()(const mystring& key) const |
|
10 { |
|
11 crc32_c crc; |
|
12 crc.update(key.c_str(), key.length()); |
|
13 return crc; |
|
14 } |
|
15 }; |
|
16 |
|
17 #endif |