xxhash
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
:dependencies: xxhash: github: zph/xxhash version: ~> 1.0.0
-
Run
shards install
Usage
Docs: https://zph.github.io/xxhash/
require "xxhash"
XXHash.xxh32("aaaaaa") => 2653344721 : UInt32
# Available functions with 2 argument arity
XXHash.xxh64
XXHash.xxh3_64
XXHash.xxh128
Or locally
crystal docs && open docs/index.html
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
Repository
xxhash
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- over 5 years ago
- July 22, 2019
License
MIT License
Links
Synced at
Fri, 08 Nov 2024 04:40:11 GMT
Languages