aboutsummaryrefslogtreecommitdiff
path: root/src/hash/adler.h
blob: 747fe19fba67bfcfdc26f7de2cf9243d0687a05e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "../lua.h"
#include <stdint.h>

/**
 * calculates a adler hash of (len) bytes
 *
 * @param {uint8_t*} input bytes
 * @param {size_t} input length
 * @return {uint32_t} 32 bit hash
*/
uint32_t i_adler32(uint8_t*, size_t);

int l_adler32(lua_State*);