Example #1
0
 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");
     }
 }
Example #2
0
 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");
     }
 }
Example #3
0
 public Hasher(HashType hashtype)
 {
     this.hash_ids = (uint)hashtype;
     this.ptr      = Bindings.rhash_init(hash_ids);
 }