fasthash
| Kind | ffi-zig |
|---|---|
| Categories | algorithms cryptography ffi |
| Keywords | hash hashing xxhash performance zig-ffi |
High-performance hashing functions written in Zig
Files
| File | Description |
|---|---|
kit.toml | Package manifest with metadata and dependencies |
src/main.kit | FNV-1a, DJB2, SDBM, rolling, and XOR hash functions |
zig/hash.zig | Hash algorithm implementations in Zig |
zig/kit_ffi.zig | Kit FFI helper functions |
tests/fasthash.test.kit | API structure and dispatch function tests |
LICENSE | MIT license file |
Dependencies
No Kit package dependencies.
Installation
kit add gitlab.com/kit-lang/packages/kit-fasthash.gitUsage
import Kit.FasthashLicense
MIT License - see LICENSE for details.
Exported Functions & Types
fnv1a
String -> Int
rolling
String -> Int
djb2
String -> Int
sdbm
String -> Int
xor
String -> Int
combine
Int -> Int -> Int
version
() -> Int
hash
String -> String -> Int