Add fancy hashing
This commit is contained in:
16
src/utils/hash.hpp
Normal file
16
src/utils/hash.hpp
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef HASH_HPP
|
||||
#define HASH_HPP
|
||||
|
||||
#include <xxhash.h>
|
||||
#include <string>
|
||||
|
||||
namespace dropshell {
|
||||
|
||||
XXH64_hash_t hash_file(const std::string &path);
|
||||
|
||||
XXH64_hash_t hash_directory_recursive(const std::string &path);
|
||||
|
||||
} // namespace dropshell
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user