Sha256: 9afe516ab5db6d2bf97ad6c9ee9e00c7c5e9ec69229e10dd1e67273e252027c6
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
#include <stdlib.h> #include <errno.h> #include <ruby.h> #include "libxxhash.h" typedef struct { XXH32_state_t* state; unsigned int seed; } xxhash_xxh32_t; typedef struct { XXH64_state_t* state; unsigned int seed; } xxhash_xxh64_t; // Use this typedef to make the compiler happy when // calling rb_define_method() typedef VALUE (ruby_method)(); VALUE xxhash_xxh32(VALUE mod, VALUE input, VALUE seed); VALUE xxhash_xxh32_file(VALUE mod, VALUE filename, VALUE seed); void xxhash32_streaming_hash_free(xxhash_xxh32_t* state); VALUE xxhash32_streaming_hash_new(VALUE klass, VALUE seed); VALUE xxhash32_streaming_hash_update(VALUE self, VALUE data); VALUE xxhash32_streaming_hash_reset(VALUE self); VALUE xxhash32_streaming_hash_digest(VALUE self); VALUE xxhash_xxh64(VALUE mod, VALUE input, VALUE seed); VALUE xxhash_xxh64_file(VALUE mod, VALUE filename, VALUE seed); void xxhash64_streaming_hash_free(xxhash_xxh64_t* state); VALUE xxhash64_streaming_hash_new(VALUE klass, VALUE seed); VALUE xxhash64_streaming_hash_update(VALUE self, VALUE data); VALUE xxhash64_streaming_hash_reset(VALUE self); VALUE xxhash64_streaming_hash_digest(VALUE self); void Init_xxhash(void);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xxhash-0.5.0 | ext/xxhash/xxhash.h |