C# 클래스 CK.Core.Util.Hash

Provides methods to combine hash values: use StartValue and then chain calls to the M:Combine methods. Based on Daniel J. Bernstein algorithm (http://cr.yp.to/cdb/cdb.txt).
파일 보기 프로젝트 열기: Invenietis/ck-core

공개 메소드들

메소드 설명
Combine ( System.Int64 hash, int value ) : long

Combines an existing hash value with a new one.

Combine ( long hash ) : long

Combines an existing hash value with multiples object's written directly as parameters.

Combine ( long hash, IEnumerable c ) : long

Combines an existing hash value with multiples object's hash.

Combine ( long hash, object o ) : long

Combines an existing hash value with an object's hash (object can be null).

메소드 상세

Combine() 공개 정적인 메소드

Combines an existing hash value with a new one.
public static Combine ( System.Int64 hash, int value ) : long
hash System.Int64 Current hash.
value int Value to combine.
리턴 long

Combine() 공개 정적인 메소드

Combines an existing hash value with multiples object's written directly as parameters.
public static Combine ( long hash ) : long
hash long Current hash.
리턴 long

Combine() 공개 정적인 메소드

Combines an existing hash value with multiples object's hash.
public static Combine ( long hash, IEnumerable c ) : long
hash long Current hash.
c IEnumerable Multiple objects. Can be null.
리턴 long

Combine() 공개 정적인 메소드

Combines an existing hash value with an object's hash (object can be null).
public static Combine ( long hash, object o ) : long
hash long Current hash.
o object Object whose hash must be combined (can be null).
리턴 long