Sha256: 7c433940f25683d136b027ce341f089ea71a13b8fed36a0ff2dca254e45bfb38

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

## xxHash [![Build Status](https://travis-ci.org/nashby/xxhash.png?branch=master)](https://travis-ci.org/nashby/xxhash)

Ruby wrapper for [xxHash](http://code.google.com/p/xxhash/)

### Install

    gem install xxhash

### Usage

```ruby
require 'xxhash'

text = "test"
seed = 12345

XXhash.xxh32(text, seed) # => 3834992036
```

You can use it with `IO` objects too:

```ruby
XXhash.xxh32_stream(StringIO.new('test'), 123) # => 2758658570
```

Note that you can also pass a chunk size as third param (it's 32 bytes by default)

### Supported Ruby versions

- MRI 1.9.3
- rbx-19mode

Note: It doesn't work on JRuby as it uses C extension.

### Versioning

Version 0.2.0 is equal to [r32](https://code.google.com/p/xxhash/source/detail?r32)

## Contributing

1. Fork it
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 new Pull Request

### Copyright

Copyright (c) 2013 Vasiliy Ermolovich. See LICENSE.txt for
further details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xxhash-0.3.0 README.md
xxhash-0.2.0 README.md