Sha256: 55188a2a9197316c1478ce124d84a49171e18030711bf796201f8d113eef0d18

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

#ifndef MURMURHASH_INCLUDED
#  define MURMURHASH_INCLUDED

#include "ruby.h"

#define MURMURHASH_MAGIC 0x5bd1e995

/* should be same type structure to digest/stringbuffer */
typedef struct {
	char* buffer;
	char* p;
	size_t memsize;
} buffer_t;

#define MURMURHASH(self, name) \
	buffer_t* name; \
	Data_Get_Struct(self, buffer_t, name); \
	if (name == NULL) { \
		rb_raise(rb_eArgError, "NULL found for " # name " when shouldn't be.'"); \
	}

#endif /* ifndef MURMURHASH_INCLUDED */

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
digest-murmurhash-0.2.1 ext/digest/murmurhash/murmurhash.h