diff options
| author | ame <[email protected]> | 2023-11-06 20:08:48 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2023-11-06 20:08:48 -0600 |
| commit | 4fc59207afdf442cd769992339b7fdea0ff2a2b8 (patch) | |
| tree | 82df02dd802224f330470b2479afe24af14b3527 /src/hash/xxh.h | |
| parent | d062e57c154b2bed76276d52681577028e859677 (diff) | |
header stuff
Diffstat (limited to 'src/hash/xxh.h')
| -rw-r--r-- | src/hash/xxh.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/hash/xxh.h b/src/hash/xxh.h index 7dc3c8b..07e7579 100644 --- a/src/hash/xxh.h +++ b/src/hash/xxh.h @@ -1,4 +1,25 @@ #include "../lua.h" +#include <stdint.h> + +/** + * calculates a xxhash32 of (len) bytes + * + * @param {uint8_t*} input bytes + * @param {uint32_t} hash seed + * @param {size_t} input length + * @return {uint32_t} 32 bit hash +*/ +uint32_t i_xxhash32(uint8_t*, uint32_t, size_t); + +/** + * calculates a xxhash64 of (len) bytes + * + * @param {uint8_t*} input bytes + * @param {uint64_t} hash seed + * @param {size_t} input length + * @return {uint64_t} 64 bit hash +*/ +uint64_t i_xxhash64(uint8_t*, uint64_t, size_t); int l_xxh32(lua_State*); int l_xxh64(lua_State*); |
