C# Class Methods.ExpressionHash.DynamicHasher

Runtime description of a simple hashing algorithm.
Mostra file Open project: Strilanc/Methods Class Usage Examples

Public Properties

Property Type Description
InitialState int[]
Steps Step[]

Public Methods

Method 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 method

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
return int

Specialize() public method

A compilable expression containing specialized code for applying this hash function.
public Specialize ( ) : int>>.Expression
return 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
return int[]

Steps public_oe property

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