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/pearson.h | |
| parent | d062e57c154b2bed76276d52681577028e859677 (diff) | |
header stuff
Diffstat (limited to 'src/hash/pearson.h')
| -rw-r--r-- | src/hash/pearson.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hash/pearson.h b/src/hash/pearson.h index aba89e4..646e6dd 100644 --- a/src/hash/pearson.h +++ b/src/hash/pearson.h @@ -1,4 +1,13 @@ #include "../lua.h" +#include <stdint.h> +/** + * calculates a pearson hash of (len) bytes + * + * @param {uint8_t*} input bytes + * @param {size_t} input length + * @return {uint8_t} 8 bit hash +*/ +uint8_t i_pearson(uint8_t*,size_t); int l_setpearson(lua_State* L); int l_pearson(lua_State* L); |
