C# 클래스 Microsoft.CodeAnalysis.Sarif.Driver.MurmurHash

Murmur hash 3 implementation of IHashCalculator. See http://www.codeproject.com/Articles/32829/Hash-Functions-An-Empirical-Comparison http://code.google.com/p/smhasher/ http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp
This implementation is the x86_32 version. Note that we don't deal with the "tail" bits of the algorithm because we allow only integer inputs.
파일 보기 프로젝트 열기: Microsoft/sarif-sdk

공개 메소드들

메소드 설명
Add ( int item ) : void

Adds item to the calculated hash.

Add ( object item ) : void

Adds item to the calculated hash.

Equals ( object obj ) : bool

Indicates whether this instance and a specified object are equal.

GetHashCode ( ) : int

Returns the hash code for this instance.

ToString ( ) : string

Returns a human readable string describing this instance.

operator ( ) : bool

Inequality operator.

비공개 메소드들

메소드 설명
AddRange ( IEnumerable items ) : void
AddRange ( IEnumerable items ) : void
AddRange ( int items ) : void
Mix ( uint h ) : uint

Mixes the given hash value.

This function must be in an unchecked context.

RotateLeft ( uint h, byte amount ) : uint

Rotates left.

메소드 상세

Add() 공개 메소드

Adds item to the calculated hash.
public Add ( int item ) : void
item int The item to add to the calculated hash.
리턴 void

Add() 공개 메소드

Adds item to the calculated hash.
public Add ( object item ) : void
item object The item to add to the calculated hash. If this parameter is /// null, the effect will be the same as if its /// function returns 0.
리턴 void

Equals() 공개 메소드

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object Another object to compare to.
리턴 bool

GetHashCode() 공개 메소드

Returns the hash code for this instance.
public GetHashCode ( ) : int
리턴 int

ToString() 공개 메소드

Returns a human readable string describing this instance.
public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

Inequality operator.
public static operator ( ) : bool
리턴 bool