xxhash

XXHash Bindings for Crystal Lang

xxhash

Implements Crystal lang bindings for xxhash using underlying C library. Required dependency will be downloaded and installed during shards install.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      xxhash:
        github: zph/xxhash
        version: ~> 1.0.0
    
  2. 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

  1. Fork it (https://github.com/zph/xxhash/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

xxhash

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 0
  • over 5 years ago
  • July 22, 2019
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 14:29:59 GMT

Languages