This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <string>
// A simple hash function from Robert Sedgwicks Algorithms in C book.
namespace RBX {
class Hash {
public:
static unsigned int hash(const void* data, size_t bytes);
static unsigned int hash(const std::string& str);
static void hashAppend(unsigned int& currentHash, const void* data, size_t bytes);
static void hashAppend(unsigned int& currentHash, unsigned int append);
};
} // namespace