mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Split sync disk loop to support batched hashing
This commit is contained in:
parent
ef4bed47e4
commit
1dd3439fe8
3 changed files with 91 additions and 42 deletions
|
|
@ -232,6 +232,12 @@ const char* memhashname(unsigned kind);
|
|||
*/
|
||||
void memhash(unsigned kind, const unsigned char* seed, void* digest, const void* src, size_t size);
|
||||
|
||||
/**
|
||||
* Compute the HASH of multiple memory blocks at the same time.
|
||||
* Seed is a 128 bit vector.
|
||||
*/
|
||||
void memhash_multi(unsigned kind, const unsigned char* seed, void** digest, const void** src, const size_t* size, unsigned count);
|
||||
|
||||
/**
|
||||
* Return the hash name.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue