fasthash

High-performance hashing functions written in Zig

Files

FileDescription
.editorconfigEditor formatting configuration
.gitignoreGit ignore rules for build artifacts and dependencies
.tool-versionsasdf tool versions (Zig, Kit)
LICENSEMIT license file
README.mdThis file
examples/basic.kitBasic usage example
kit.tomlPackage manifest with metadata and dependencies
src/fasthash.kitMain module
tests/algorithm-tests.test.kitTests for algorithm-tests
tests/fasthash.test.kitTests for fasthash
zig/hash.hhash.h
zig/hash.zigZig FFI module for hash
zig/kit_ffi.zigZig FFI module for kit ffi

Dependencies

No Kit package dependencies.

Installation

kit add gitlab.com/kit-lang/packages/kit-fasthash.git

Usage

import Kit.Fasthash

License

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