1 2 3 4 5 6 7 8 9 10 11 12 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);