示例#1
0
文件: Hasher.cs 项目: n0ix/SFDL.RHash
 public Hasher Update(byte[] buf)
 {
     Bindings.rhash_update(ptr, buf, buf.Length);
     return(this);
 }
示例#2
0
文件: Hasher.cs 项目: n0ix/SFDL.RHash
 public void Reset()
 {
     Bindings.rhash_reset(ptr);
 }
示例#3
0
文件: Hasher.cs 项目: n0ix/SFDL.RHash
 public Hasher(HashType hashtype)
 {
     this.hash_ids = (uint)hashtype;
     this.ptr      = Bindings.rhash_init(hash_ids);
 }
示例#4
0
文件: Hasher.cs 项目: n0ix/SFDL.RHash
 public void Finish()
 {
     Bindings.rhash_final(ptr, IntPtr.Zero);
 }