lua-xxhash:lua 的 xxHash 绑定

时间:2021-06-26 00:12:56
【文件属性】:
文件名称:lua-xxhash:lua 的 xxHash 绑定
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-26 00:12:56
C lua-xxhash xxHash绑定 安装 luarocks install xxhash --from=http://mah0x211.github.io/rocks/ 功能接口 val:int = xxhash.xxh32( data:string, seed:uint ) 用法 local xxhash = require ( ' xxhash ' ); local res = xxhash. xxh32 ( ' abc ' , 0x5bd1e995 ); print (res); -- 3185488385 面向对象接口 xh:table = xxhash.init( seed:uint ) xh:update( data:string ) res:uint = xh:digest() xh:reset( [seed:uint] ) 用法 local xxhash =
【文件预览】:
lua-xxhash-master
----test()
--------test.lua(378B)
----LICENSE(3KB)
----src()
--------xxhash_bind.c(4KB)
--------xxhash.c(12KB)
--------xxhash.h(6KB)
----README.md(794B)
----rockspecs()
--------xxhash-1.0.0-1.rockspec(522B)
--------xxhash-scm-1.rockspec(500B)

网友评论