mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 21:00:16 -05:00
On data error, prints the number of different bits
This commit is contained in:
parent
167d1edfec
commit
3bf691ff7d
6 changed files with 41 additions and 14 deletions
|
|
@ -123,6 +123,11 @@ void memhash(unsigned kind, const unsigned char* seed, void* digest, const void*
|
|||
*/
|
||||
const char* hash_config_name(unsigned kind);
|
||||
|
||||
/**
|
||||
* Count the number of different bits in the two buffers.
|
||||
*/
|
||||
unsigned memdiff(const unsigned char* data1, const unsigned char* data2, size_t size);
|
||||
|
||||
/****************************************************************************/
|
||||
/* lock */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue