public Hasher(uint hashmask) { this.hash_ids = hashmask; this.ptr = Bindings.rhash_init(hash_ids); if (ptr == IntPtr.Zero) { throw new ArgumentException("Invalid mask of hashes", "hashmask"); } }
public Hasher(uint hashmask) { this.hash_ids = hashmask; this.ptr = Bindings.rhash_init(hash_ids); if (ptr == IntPtr.Zero) { throw new ArgumentException("Hash functions bit-mask must be non-zero", "hashmask"); } }
public Hasher(HashType hashtype) { this.hash_ids = (uint)hashtype; this.ptr = Bindings.rhash_init(hash_ids); }