mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
fahhh
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user