xxhash
Implements Crystal lang bindings for xxhash using underlying C library. Required dependency will be downloaded and installed during shards install.
Installation
- Add the dependency to your
shard.yml
:
`yaml
dependencies:
xxhash:
github: zph/xxhash
version: ~> 1.0.0
`
- Run
shards install
Usage
require "xxhash"
XXHash.xxh32("aaaaaa") => 2653344721 : UInt32
# Available functions with 2 argument arity
XXHash.xxh64
XXHash.xxh3_64
XXHash.xxh128
Development
Fork, make deps
and code.
Contributing
- Fork it (<https://github.com/zph/xxhash/fork>)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Zander Hill - creator and maintainer