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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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