C# Class Methods.ExpressionHash.DynamicHasher

Runtime description of a simple hashing algorithm.
Afficher le fichier Open project: Strilanc/Methods Class Usage Examples

Méthodes publiques

Свойство Type Description
InitialState int[]
Steps Step[]

Méthodes publiques

Méthode Description
Interpret ( IntStream data ) : int

The result of applying this hash function to the given data, by interpreting the operations in the inner loop.

Specialize ( ) : int>>.Expression

A compilable expression containing specialized code for applying this hash function.

Method Details

Interpret() public méthode

The result of applying this hash function to the given data, by interpreting the operations in the inner loop.
public Interpret ( IntStream data ) : int
data IntStream
Résultat int

Specialize() public méthode

A compilable expression containing specialized code for applying this hash function.
public Specialize ( ) : int>>.Expression
Résultat int>>.Expression

Property Details

InitialState public_oe property

The initial state of the hash function, before any data is processed. Also implicitly determines the size of the state (which input/output indexes are valid). Index 0 is always overwritten with the current input. The output of the hash function is last state value once all data has been processed.
public int[] InitialState
Résultat int[]

Steps public_oe property

The steps to apply to the current state for each value in a data stream.
public Step[] Steps
Résultat Step[]