C# Class 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.
Mostra file Open project: Microsoft/sarif-sdk

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Add() public method

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

Add() public method

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.
return void

Equals() public method

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

GetHashCode() public method

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

ToString() public method

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

operator() public static method

Inequality operator.
public static operator ( ) : bool
return bool